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