Some images not showing after PHP upgrade

lunders

Verified User
Joined
Mar 19, 2006
Messages
17
Heya guys, I updated PHP to 5 yesterday. Now for some reason images in my 'uploads' folder dont seem to show... says they are not there....

[root@server public_html]# ls -g
total 392
-rw-r--r-- 1 spbfb 379 Mar 9 16:17 chat.txt
drwxr-xr-x 20 spbfb 4096 Apr 2 11:41 forum
-rw-r--r-- 1 spbfb 594 Mar 9 16:17 image.php
drwxr-xr-x 11 spbfb 4096 Mar 19 15:20 images
drwxr-xr-x 2 spbfb 4096 Mar 17 13:10 includes
-rw-r--r-- 1 spbfb 16949 Apr 4 10:48 index.php
drwxr-xr-x 2 spbfb 4096 Mar 9 16:16 javascripts
-rw-r--r-- 1 spbfb 842 Mar 10 14:36 login.php
-rw-r--r-- 1 spbfb 281 Mar 10 14:36 logout.php
-rw-r--r-- 1 spbfb 35041 Mar 9 16:15 mediaplayer.swf
-rw-r--r-- 1 spbfb 269313 Mar 9 16:15 members.rar
drwxr-xr-x 5 spbfb 4096 Mar 9 16:17 modules
-rw-r--r-- 1 spbfb 1236 Mar 9 16:15 playlist.php
-rw-r--r-- 1 spbfb 342 Mar 9 16:15 playlist.xml
-rw-r--r-- 1 spbfb 325 Mar 9 16:15 robots.txt
drwxr-xr-x 2 spbfb 4096 Mar 9 16:17 styles
-rw-r--r-- 1 spbfb 56 Apr 7 07:50 test.php
-rw-r--r-- 1 spbfb 1121 Mar 9 16:15 upload.php
drwxr-xr-x 6 spbfb 4096 Apr 9 08:20 uploads
-rw-r--r-- 1 spbfb 2139 Mar 9 16:15 w.php

as you can see they are chmodded and ownership is ok ... so i dont know what is wrong..

When trying to view a image I get "HTTP 404 NOT FOUND..." but the image is on the server... apache logs give me this

[Tue Apr 08 20:50:11 2008] [error] [client 86.151.164.22] File does not exist: /etc/httpd/uploads, referer: http://www.spb-fb.co.uk/index.php?view=gallery
[Tue Apr 08 20:50:11 2008] [error] [client 86.151.164.22] File does not exist: /home/spbfb/domains/spb-fb.co.uk/public_html/404.shtml, referer: http://www.spb-fb.co.uk/index.php?view=gallery
[Tue Apr 08 20:50:11 2008] [error] [client 86.151.164.22] File does not exist: /etc/httpd/uploads, referer: http://www.spb-fb.co.uk/index.php?view=gallery
[Tue Apr 08 20:50:11 2008] [error] [client 86.151.164.22] File does not exist: /home/spbfb/domains/spb-fb.co.uk/public_html/404.shtml, referer: http://www.spb-fb.co.uk/index.php?view=gallery
[Tue Apr 08 20:50:11 2008] [error] [client 86.151.164.22] File does not exist: /home/spbfb/domains/spb-fb.co.uk/public_html/javascripts/dlcalendar.js, referer: http://www.spb-fb.co.uk/index.php?view=gallery
[Tue Apr 08 20:50:11 2008] [error] [client 86.151.164.22] File does not exist: /home/spbfb/domains/spb-fb.co.uk/public_html/404.shtml, referer: http://www.spb-fb.co.uk/index.php?view=gallery
[Tue Apr 08 20:50:12 2008] [error] [client 86.151.164.22] File does not exist: /home/spbfb/domains/spb-fb.co.uk/public_html/flash, referer: http://www.spb-fb.co.uk/index.php?view=gallery
[Tue Apr 08 20:50:12 2008] [error] [client 86.151.164.22] File does not exist: /home/spbfb/domains/spb-fb.co.uk/public_html/404.shtml, referer: http://www.spb-fb.co.uk/index.php?view=gallery
[Tue Apr 08 20:50:19 2008] [error] [client 86.151.164.22] File does not exist: /etc/httpd/uploads
[Tue Apr 08 20:50:19 2008] [error] [client 86.151.164.22] File does not exist: /home/spbfb/domains/spb-fb.co.uk/public_html/404.shtml
 
To me it looks like there may be an 'uploads' alias in your apache config that points to /etc/httpd/uploads. Have you looked at the apache config or .htaccess to see if this is the case?

I don't think PHP itself would have anything to do with not being able to see the images.
 
lunders, looks like you have:
Include conf/extra/httpd-dav.conf
in your /etc/httpd/conf/httpd.conf
httpd-dav.conf creates an alias to /etc/httpd/uploads.
Comment out that line and you will be fine.
 
Back
Top