Hello,
I installed the latest version of MediaWiki to a sub-doman called wiki, on my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated.
Perhaps... ??
https://www.mediawiki.org/wiki/Manual:Image_administration
Chap
On 8/9/2015 5:07 PM, Brook Powers wrote:
Hello,
I installed the latest version of MediaWiki to a sub-doman called wiki, on my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I appreciate all the suggestions. I am still not able to figure it out. Here is my current LocalSettings.php with sensitive info redacted. Any suggestions appreciated.
<?php
# This file was automatically generated by the MediaWiki 1.23.9
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "MSI Wikipedia";
$wgMetaNamespace = "MSI Wikipedia";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "";
$wgScriptExtension = ".php";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://wiki.marylandshallissue.org";
## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";
## The relative URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "MSIWikiLogo.png";
## UPO means: this is also a user preference option
$wgEnableEmail = false;
$wgEnableUserEmail = false; # UPO
$wgEmergencyContact = "*********@marylandshallissue.org";
$wgPasswordSender = "*********@marylandshallissue.org";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "********";
$wgDBuser = "********";
$wgDBpassword = "***********";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from http://commons.wikimedia.org
$wgUseInstantCommons = false;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "**************************************";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "**************";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'cologneblue', 'monobook', 'vector':
$wgDefaultSkin = "vector";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once "$IP/extensions/Cite/Cite.php";
require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";
require_once "$IP/extensions/Gadgets/Gadgets.php";
require_once "$IP/extensions/ImageMap/ImageMap.php";
require_once "$IP/extensions/InputBox/InputBox.php";
require_once "$IP/extensions/Interwiki/Interwiki.php";
require_once "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php";
require_once "$IP/extensions/Nuke/Nuke.php";
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
require_once "$IP/extensions/PdfHandler/PdfHandler.php";
require_once "$IP/extensions/Poem/Poem.php";
require_once "$IP/extensions/Renameuser/Renameuser.php";
require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php";
require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";
require_once "$IP/extensions/TitleBlacklist/TitleBlacklist.php";
require_once "$IP/extensions/WikiEditor/WikiEditor.php";
# End of automatically generated settings.
# Add more configuration options below.
$wgLocaltimezone = "US/Eastern";
On Sun, Aug 9, 2015 at 5:17 PM, LCJones lcjones@jonesipedia.com wrote:
Perhaps... ??
https://www.mediawiki.org/wiki/Manual:Image_administration
Chap
On 8/9/2015 5:07 PM, Brook Powers wrote:
Hello,
I installed the latest version of MediaWiki to a sub-doman called wiki,
on
my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Unless I missed it, I didn't see
$wgFileExtensions
to allow the various file extensions such as jpg, png .... etc, etc
https://www.mediawiki.org/wiki/Manual:$wgFileExtensions
Chap ****
On 8/10/2015 10:43 AM, Brook Powers wrote:
I appreciate all the suggestions. I am still not able to figure it out. Here is my current LocalSettings.php with sensitive info redacted. Any suggestions appreciated.
Really appreciate your time and suggestions.
I added:
$wgFileExtensions[] = 'png';
and it did not seem to make a difference
On Mon, Aug 10, 2015 at 12:30 PM, LCJones lcjones@jonesipedia.com wrote:
Unless I missed it, I didn't see
$wgFileExtensions
to allow the various file extensions such as jpg, png .... etc, etc
https://www.mediawiki.org/wiki/Manual:$wgFileExtensions
Chap
On 8/10/2015 10:43 AM, Brook Powers wrote:
I appreciate all the suggestions. I am still not able to figure it out. Here is my current LocalSettings.php with sensitive info redacted. Any suggestions appreciated.
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Ok... in your /images directory you should have an .htaccess file. Make sure it's chmod to 755.
Also in your Local file... use $wgFileExtensions as an array and add both jpg and png to the list. So far all you have set is PNG and you are looking for a JPG .. (HQL.jpg)
Also, via shell access of ftp, verify the images file is there. I believe it's images/a/aa/HQL.jpg
Chap
On 8/10/2015 1:19 PM, Brook Powers wrote:
Really appreciate your time and suggestions.
I added:
$wgFileExtensions[] = 'png';
and it did not seem to make a difference
On Mon, Aug 10, 2015 at 12:30 PM, LCJones lcjones@jonesipedia.com wrote:
Unless I missed it, I didn't see
$wgFileExtensions
to allow the various file extensions such as jpg, png .... etc, etc
https://www.mediawiki.org/wiki/Manual:$wgFileExtensions
Chap
On 8/10/2015 10:43 AM, Brook Powers wrote:
I appreciate all the suggestions. I am still not able to figure it out. Here is my current LocalSettings.php with sensitive info redacted. Any suggestions appreciated.
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
The actual image load gives an 'internal server error' eg http://wiki.marylandshallissue.org/images/8/88/MHP.png
Most likely this is an issue with file permissions and the server configuration; many public hosts are set up to disallow web access to world-writable directories as a security measure, and the 'images' dirs for uploads are often set up as world-writable by default to make it easier for web and maintenance scripts to both access the files.
Try in a terminal on your wiki directory:
chmod -R 0755 images
add to your LocalSettings.php to fix future dirs:
$wgDirectoryMode = 0755;
See if that helps...
-- brion
On Sun, Aug 9, 2015 at 2:07 PM, Brook Powers lwpowers@gmail.com wrote:
Hello,
I installed the latest version of MediaWiki to a sub-doman called wiki, on my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I did check the permissions on /images and all its sub folders - they are all set to 755.
I will check the other and report back.
On Aug 9, 2015, at 7:15 PM, Brion Vibber bvibber@wikimedia.org wrote:
The actual image load gives an 'internal server error' eg http://wiki.marylandshallissue.org/images/8/88/MHP.png
Most likely this is an issue with file permissions and the server configuration; many public hosts are set up to disallow web access to world-writable directories as a security measure, and the 'images' dirs for uploads are often set up as world-writable by default to make it easier for web and maintenance scripts to both access the files.
Try in a terminal on your wiki directory:
chmod -R 0755 images
add to your LocalSettings.php to fix future dirs:
$wgDirectoryMode = 0755;
See if that helps...
-- brion
On Sun, Aug 9, 2015 at 2:07 PM, Brook Powers lwpowers@gmail.com wrote:
Hello,
I installed the latest version of MediaWiki to a sub-doman called wiki, on my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Since there's a 500 error, there should be an entry in the server error log. If you're lucky, it might even be something helpful. :) https://support.hostgator.com/articles/specialized-help/technical/apache-hta...
On Sun, Aug 9, 2015 at 7:15 PM, Brion Vibber bvibber@wikimedia.org wrote:
The actual image load gives an 'internal server error' eg http://wiki.marylandshallissue.org/images/8/88/MHP.png
Most likely this is an issue with file permissions and the server configuration; many public hosts are set up to disallow web access to world-writable directories as a security measure, and the 'images' dirs for uploads are often set up as world-writable by default to make it easier for web and maintenance scripts to both access the files.
Try in a terminal on your wiki directory:
chmod -R 0755 images
add to your LocalSettings.php to fix future dirs:
$wgDirectoryMode = 0755;
See if that helps...
-- brion
On Sun, Aug 9, 2015 at 2:07 PM, Brook Powers lwpowers@gmail.com wrote:
Hello,
I installed the latest version of MediaWiki to a sub-doman called wiki, on my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Here is the contents \wiki\images.htaccess
AddType text/plain .html .htm .shtml .php php_admin_flag engine off # Protect against bug 28235 <IfModule rewrite_module> RewriteEngine On RewriteCond %{QUERY_STRING} .[^\/:*?\x22<>|%]+(#|?|$) [nocase] RewriteRule . - [forbidden] </IfModule>
Here is a wiki page with a .png file I am using as a test: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Permit
Here are some of the logs:
[Mon Aug 10 15:45:06 2015] [alert] [client 173.13.231.44] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Permit [Mon Aug 10 15:44:56 2015] [alert] [client 173.13.231.44] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific... [Mon Aug 10 15:44:38 2015] [alert] [client 173.13.231.44] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Permit [Mon Aug 10 15:41:43 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:43 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:42 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:42 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:39:30 2015] [error] [client 204.236.136.43] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:39:30 2015] [error] [client 204.236.136.43] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:38:29 2015] [alert] [client 209.133.77.167] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration [Mon Aug 10 15:36:40 2015] [error] [client 192.227.137.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:40 2015] [error] [client 192.227.137.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:39 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=File:HQL.jpg [Mon Aug 10 15:36:39 2015] [error] [client 192.227.137.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:39 2015] [error] [client 192.227.137.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:23 2015] [error] [client 66.249.75.92] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:23 2015] [error] [client 66.249.75.92] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:35:38 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=File:HQL.jpg [Mon Aug 10 15:35:37 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=File:HQL.jpg [Mon Aug 10 15:35:37 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=File:HQL.jpg [Mon Aug 10 15:35:32 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific... [Mon Aug 10 15:28:45 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:28:45 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:33 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:33 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:32 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:32 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:32 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:32 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:15 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php, referer: http://marylandshallissue.org/wp-content/uploads/2012/03/MSI_APPLICATION_GUI... [Mon Aug 10 15:26:15 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php, referer: http://marylandshallissue.org/wp-content/uploads/2012/03/MSI_APPLICATION_GUI... [Mon Aug 10 15:26:14 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:14 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:41 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:41 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:40 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:40 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:40 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:40 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:24:36 2015] [error] [client 207.46.13.51] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:24:36 2015] [error] [client 207.46.13.51] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:21:02 2015] [error] [client 65.19.138.33] File does not exist: /home/marylandshalliss/public_html/index.php
On Mon, Aug 10, 2015 at 3:37 PM, Benjamin Lees emufarmers@gmail.com wrote:
Since there's a 500 error, there should be an entry in the server error log. If you're lucky, it might even be something helpful. :)
https://support.hostgator.com/articles/specialized-help/technical/apache-hta...
On Sun, Aug 9, 2015 at 7:15 PM, Brion Vibber bvibber@wikimedia.org wrote:
The actual image load gives an 'internal server error' eg http://wiki.marylandshallissue.org/images/8/88/MHP.png
Most likely this is an issue with file permissions and the server configuration; many public hosts are set up to disallow web access to world-writable directories as a security measure, and the 'images' dirs
for
uploads are often set up as world-writable by default to make it easier
for
web and maintenance scripts to both access the files.
Try in a terminal on your wiki directory:
chmod -R 0755 images
add to your LocalSettings.php to fix future dirs:
$wgDirectoryMode = 0755;
See if that helps...
-- brion
On Sun, Aug 9, 2015 at 2:07 PM, Brook Powers lwpowers@gmail.com wrote:
Hello,
I installed the latest version of MediaWiki to a sub-doman called wiki,
on
my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Don't use the example.com/Page_title URL scheme. It isn't supported by developers and WILL break in ways you can't foresee (and if it doesn't, it might break in the future). Some examples can be found at http://www.mediawiki.org/wiki/Manual:Wiki_in_site_root_directory#Reasons_why...
On Mon, Aug 10, 2015 at 3:48 PM, Brook Powers lwpowers@gmail.com wrote:
Here is the contents \wiki\images.htaccess
AddType text/plain .html .htm .shtml .php php_admin_flag engine off # Protect against bug 28235
<IfModule rewrite_module> RewriteEngine On RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase] RewriteRule . - [forbidden] </IfModule>
Here is a wiki page with a .png file I am using as a test: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Permit
Here are some of the logs:
[Mon Aug 10 15:45:06 2015] [alert] [client 173.13.231.44] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Permit [Mon Aug 10 15:44:56 2015] [alert] [client 173.13.231.44] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer:
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific... [Mon Aug 10 15:44:38 2015] [alert] [client 173.13.231.44] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Permit [Mon Aug 10 15:41:43 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:43 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:42 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:42 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:41:41 2015] [error] [client 157.55.39.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:39:30 2015] [error] [client 204.236.136.43] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:39:30 2015] [error] [client 204.236.136.43] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:38:29 2015] [alert] [client 209.133.77.167] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration [Mon Aug 10 15:36:40 2015] [error] [client 192.227.137.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:40 2015] [error] [client 192.227.137.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:39 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=File:HQL.jpg [Mon Aug 10 15:36:39 2015] [error] [client 192.227.137.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:39 2015] [error] [client 192.227.137.46] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:23 2015] [error] [client 66.249.75.92] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:36:23 2015] [error] [client 66.249.75.92] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:35:38 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=File:HQL.jpg [Mon Aug 10 15:35:37 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=File:HQL.jpg [Mon Aug 10 15:35:37 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://wiki.marylandshallissue.org/index.php?title=File:HQL.jpg [Mon Aug 10 15:35:32 2015] [alert] [client 96.237.166.247] /home/marylandshalliss/public_html/wiki/images/.htaccess: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration, referer:
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific... [Mon Aug 10 15:28:45 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:28:45 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:33 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:33 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:32 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:32 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:32 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:32 2015] [error] [client 185.93.187.65] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:15 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php, referer:
http://marylandshallissue.org/wp-content/uploads/2012/03/MSI_APPLICATION_GUI... [Mon Aug 10 15:26:15 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php, referer:
http://marylandshallissue.org/wp-content/uploads/2012/03/MSI_APPLICATION_GUI... [Mon Aug 10 15:26:14 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:26:14 2015] [error] [client 70.91.88.105] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:41 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:41 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:40 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:40 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:40 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:25:40 2015] [error] [client 50.76.14.116] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:24:36 2015] [error] [client 207.46.13.51] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:24:36 2015] [error] [client 207.46.13.51] File does not exist: /home/marylandshalliss/public_html/index.php [Mon Aug 10 15:21:02 2015] [error] [client 65.19.138.33] File does not exist: /home/marylandshalliss/public_html/index.php
On Mon, Aug 10, 2015 at 3:37 PM, Benjamin Lees emufarmers@gmail.com wrote:
Since there's a 500 error, there should be an entry in the server error log. If you're lucky, it might even be something helpful. :)
https://support.hostgator.com/articles/specialized-help/technical/apache-hta...
On Sun, Aug 9, 2015 at 7:15 PM, Brion Vibber bvibber@wikimedia.org wrote:
The actual image load gives an 'internal server error' eg http://wiki.marylandshallissue.org/images/8/88/MHP.png
Most likely this is an issue with file permissions and the server configuration; many public hosts are set up to disallow web access to world-writable directories as a security measure, and the 'images' dirs
for
uploads are often set up as world-writable by default to make it easier
for
web and maintenance scripts to both access the files.
Try in a terminal on your wiki directory:
chmod -R 0755 images
add to your LocalSettings.php to fix future dirs:
$wgDirectoryMode = 0755;
See if that helps...
-- brion
On Sun, Aug 9, 2015 at 2:07 PM, Brook Powers lwpowers@gmail.com
wrote:
Hello,
I installed the latest version of MediaWiki to a sub-doman called
wiki,
on
my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
OK,
So I didn't change any of the defaults when installing. I am reading the link you posted to figure out how to set it the way you advise.
On Mon, Aug 10, 2015 at 3:51 PM, John phoenixoverride@gmail.com wrote:
Don't use the example.com/Page_title URL scheme. It isn't supported by developers and WILL break in ways you can't foresee (and if it doesn't, it might break in the future). Some examples can be found at
http://www.mediawiki.org/wiki/Manual:Wiki_in_site_root_directory#Reasons_why...
I recall I reported this problem with a 1.25.1 (from 1.24.2 instance) install.
Gordo
On 11/08/15 17:28, Gordon Joly wrote:
I recall I reported this problem with a 1.25.1 (from 1.24.2 instance) install.
Gordo
I reported something similar in May 2015.
Gordo
-------- Forwarded Message -------- Subject: Re: [MediaWiki-l] MediaWiki 1.25.1 - lost images. Date: Wed, 27 May 2015 17:08:07 +0100 From: Gordon Joly gordon.joly@pobox.com Reply-To: MediaWiki announcements and site admin list mediawiki-l@lists.wikimedia.org To: mediawiki-l@lists.wikimedia.org
I did check just after the install, but it seems that the files have gone!
Gordon
On 27/05/15 11:16, John wrote:
Do you have a file with that name anywhere in the /images directory structure?
On Wednesday, May 27, 2015, Gordon Joly gordon.joly@pobox.com wrote:
I have upgraded from 1.24.2 to 1.25.1
PHP 5.4.39-0+deb7u2 (cgi-fcgi) MariaDB 10.0.19-MariaDB-1~wheezy
I moved all the files, upacked the full tarball (not the core). I then copied back the Localsettings.php and the /images/.
The images are not displayed. I ran update.php.
I tried to create a new Localsettings.php, so at least I can upload new images now.
I see "Error creating thumbnail: File missing" on the old images.
And original files seem to be missing too.
/images/0/06/Three_Mill_Lane_b1.jpg
I assume the database does not match the data in /images/
Any ideas?
Gordo
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Following this suggestion: https://www.mediawiki.org/wiki/Thread:Project:Support_desk/uploading_images I renamed the .htaccess file in the \wiki\images folder to .htaccess.old and everything works now.
Is that safe?
Thank you all very much for all the suggestions and feedback.
On Mon, Aug 10, 2015 at 3:37 PM, Benjamin Lees emufarmers@gmail.com wrote:
Since there's a 500 error, there should be an entry in the server error log. If you're lucky, it might even be something helpful. :)
https://support.hostgator.com/articles/specialized-help/technical/apache-hta...
On Sun, Aug 9, 2015 at 7:15 PM, Brion Vibber bvibber@wikimedia.org wrote:
The actual image load gives an 'internal server error' eg http://wiki.marylandshallissue.org/images/8/88/MHP.png
Most likely this is an issue with file permissions and the server configuration; many public hosts are set up to disallow web access to world-writable directories as a security measure, and the 'images' dirs
for
uploads are often set up as world-writable by default to make it easier
for
web and maintenance scripts to both access the files.
Try in a terminal on your wiki directory:
chmod -R 0755 images
add to your LocalSettings.php to fix future dirs:
$wgDirectoryMode = 0755;
See if that helps...
-- brion
On Sun, Aug 9, 2015 at 2:07 PM, Brook Powers lwpowers@gmail.com wrote:
Hello,
I installed the latest version of MediaWiki to a sub-doman called wiki,
on
my Hostgator Virtual Private Server.
In the \wiki\config.php, to allow uploads.
I can upload files, but the do not display on any of the wiki pages.
Here is an example
http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Qualific...
Any help appreciated. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org