Uploaded Images give a 500 Internal Server Error

Problem:

I have Wikimedia installed and have checked proper folder and file permissions- images are uploaded OK, and I can see them in the folder on the server, yet an uploaded image gives a 500 Internal Server error when I try to view it in the web browser. 

 

Wikimedia comes with a default .htaccess file which has the +FollowSymlinks option enabled. Our servers have +FollowSymLinksIfOwnerMatch  enabled by default for security. If you try to enable +FollowSymLinks while the default is already enabled, you will get a 500 error. Checking the log file you may see:

.htaccess: Option FollowSymLinks not allowed here, referer:

In your error_log file. 

 

Solution:

Simply comment out the +FollowSymLinks directive. You may wish to add a note as well so that you don't forget why you did this.

Original (not working) .htaccess file.

<IfModule rewrite_module>
RewriteEngine On
RewriteOptions inherit
# Fix for bug T64289
Options +FollowSymLinks
</IfModule>

Modified and working .htaccess file.

<IfModule rewrite_module>
RewriteEngine On
RewriteOptions inherit
# Fix for bug T64289
#Plesk has FollowSymLinksIfOwnerMatch enabled by default, do not use below or symlinks stop working
#Options +FollowSymLinks
</IfModule>

 

  • Wikimedia, Wikimedia Images, Wikimedia 500 error
  • 1 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?