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

falkendk’s picture

I got the same problem :(

falkendk’s picture

I found a solution there is a seperate .htacess file in the files folder remove the content of that and it works for me :)

joachim’s picture

Status: Active » Closed (won't fix)

I'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.

anikahmed’s picture

@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

halloffame’s picture

I 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 files folder 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:

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks
Buzzard’s picture

I have exact the same problem. Is there a solution yet to solve this?

Buzzard.

joachim’s picture

This is a problem with Drupal core, not this module.
Please stop commenting on this issue; go to the Troubleshooting FAQ or the forums instead.

dungkal’s picture

It worked for me. Thanks a lot!

flashy’s picture

Ok, 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

tajinder.minhas’s picture

My 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