This is not limited to Image module but found while configuring the image module.
I am having trouble showing images in the drupal 6.14 showing 500 internal server error
System detail
Apache/2.2.3
(Debian)
PHP/5.2.0-8
Drupal 6.14
mysql
1).htacess as following->ALL DRUPAL PAGES 500 internal server error
==================================================
-------------------------------------
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
-----------------------------------------
2).htaccess as following drupal pages showing normally BUT images uploaded cannot be shown.
when image link is clicked 500 internal server error
================================================
-----------------------------------
# Don't show directory listings for URLs which map to a directory.
#Options -Indexes
# Follow symbolic links in this directory.
#Options +FollowSymLinks
------------------------------------
(I have intentionally commented out those above two lines)
i)When I type http://www.mydomain.com/sites/default/files/ or
http://www.mydomain.com/sites/default/files/images/xxx.jpg
in the address bar 500 internal server error is shown
The image files need to be shown for the gallery using image module or other gallery modules.
In the error.log
/var/www/sites/anik/mydomain.com/subdomains/www/html/sites/default/files/.htaccess: Option FollowSymLinks not allowed here
ii)When I type any other directories or files in the URL like
http://www.mydomain.com/modules/aggregator/aggregator.css or any other
there is no problem
I am at a loss seeing different directories behaving differently. Just to add one node I use hosting service and do not have access to httpd.conf file.
I will be glad if someone sheds light on this.
Thank you,
Anik
Comments
Comment #1
falkendk commentedI got the same problem :(
Comment #2
falkendk commentedI found a solution there is a seperate .htacess file in the files folder remove the content of that and it works for me :)
Comment #3
joachim commentedI'll mark this as closed, but the htaccess in your files folder is here for security reasons. You should get advice from your host on why it is causing this error.
Comment #4
anikahmed commented@KasperChristensen
Thank you for your reply. Just one confirmation. Do you mean that the following action should solve the problem?
i)Copy the .htaccess file to the /files folder
Thank you,
Anik
Comment #5
halloffame commentedI have a similar problem with image_field. Images not showing in Views and in my custom rotate script. Removing the Drupal (or server, which is it?) generated htaccess file inside
filesfolder solves the problem. But the .htaccess file is persistent and it keeps on coming back even after I delete it.Here's what inside the htaccess file:
Comment #6
Buzzard commentedI have exact the same problem. Is there a solution yet to solve this?
Buzzard.
Comment #7
joachim commentedThis is a problem with Drupal core, not this module.
Please stop commenting on this issue; go to the Troubleshooting FAQ or the forums instead.
Comment #8
dungkal commentedIt worked for me. Thanks a lot!
Comment #9
flashy commentedOk, those issues in Firefox have been cleared up. I've got multiple CSS sheets to make it fit for the i-pad, so I got the fonts mixed up.
Thanks again
Comment #10
tajinder.minhas commentedMy site was running from last 1 year without any issue. But suddenly yesterday it broke. I followed this conversation and changed my .htaccess file. Images started working again. But i am not able to understand what was the issue? My lamp stack and Drupal version is still the same.
I am using Drupal 7