PDA

View Full Version : Site error, can't read from directory any more...


jorizzzz
12th August 2008, 09:06
I've got a strange problem with a site of a customer of mine. This site has been on my server for a while without any problems, but lately all of the uploaded pictures on his site have disappeared.

When i check the log files, i see this error:

Directory index forbidden by Options directive: /var/www/web59/web/upload/


The directory is owned by the user with a chmod 777 so that it is world writable. The strange part is, i've never edited the index options! When i look in the apache2.conf it still is te same like before:


<Directory /var/www/*/web>
Options +Includes +Indexes
AllowOverride All
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Allow from all
</Files>
</Directory>


I've tried to add a directory options using the Apache directives window in ISPConfig, but the following didn't help either:

<Directory "/var/www/web59/web/upload">
Options Indexes FollowSymLinks MultiViews
</directory>


Does anybody have a clue what i'm doing wrong? I'm currently running apache 2.2.4

falko
13th August 2008, 16:25
Do the images exist on the server (in the correct location)?

jorizzzz
13th August 2008, 16:34
Do the images exist on the server (in the correct location)?

Hi Falko,

Yes, they do exist on the server. When i try to access them using the full path it works..

falko
14th August 2008, 19:54
Can you post the output of ls -la /var/www/web59/web/upload?

jorizzzz
16th August 2008, 13:47
Can you post the output of ls -la /var/www/web59/web/upload?

Sure, here is a small list of all the files that are in that directory:

ls -la /var/www/web59/web/upload
total 13792
drwxrwxrwx 2 web59_info web59 4096 Jun 28 16:01 .
drwxrwxr-x 9 web59_info web59 4096 Aug 12 08:58 ..
-rw-r--r-- 1 web59_info web59 145442 May 16 2007 Dscn744816050742.jpg
-rw-r--r-- 1 web59_info web59 131078 May 16 2007 Dscn745116050742.jpg
-rw-r--r-- 1 web59_info web59 123029 May 16 2007 Dscn745516050721.jpg
-rw-r--r-- 1 web59_info web59 129260 May 16 2007 Dscn745616050721.jpg
-rw-r--r-- 1 web59_info web59 142820 May 16 2007 Dscn745716050721.jpg
-rw-r--r-- 1 web59_info web59 167026 May 16 2007 Dscn745816050721.jpg
-rw-r--r-- 1 web59_info web59 155482 May 16 2007 Dscn745916050742.jpg

jorizzzz
16th August 2008, 13:49
Hmm, i think it's a different problem. When i open the site (http://www.thejaguarspecialist.nl/index2.php?page=showroom) it shows the correct images. Only when i click on a photo for a larger shot, it doesn't show..

falko
17th August 2008, 13:09
Seems to be working for me...