Forum Moderators: phranque

Message Too Old, No Replies

403 errors when opening up a document link

         

trimast

1:08 pm on Aug 24, 2005 (gmt 0)

10+ Year Member



Hi All,

I've just migrated a site from a shared server across to a dedicated server, after spending all morning dealing with the db and sorting out a few compatability issues mainly due to the wrong path information i've finaly get everything working except for one minor problem.

Part of the site allows a user to upload files, this works fine, however when a user goes to click on the file to open it up i get a 403 error occur.

This never used to happen before and i'm not sure as to what is actually causing the problem.

anybody any ideas?

Thanks.

Rob

Romeo

2:47 pm on Aug 24, 2005 (gmt 0)

10+ Year Member



Hi trimast,

without knowing what your web server wrote into its error_log file about this event, here is just a guess:
Could it be a file or directory permission problem?
Or a file or directory ownership problem in connection with PHP Safe_mode?
Or something totally unrelated, of course.

Regards,
R.

trimast

3:04 pm on Aug 24, 2005 (gmt 0)

10+ Year Member



Romeo,

thanks,

[Wed Aug 24 14:10:37 2005] [error] [client 172.216.213.155] (13)Permission denied: file permissions deny server

thats what the error log said. As far as i am aware the permissions are the same of the new server as they were on the previous shared hosting

permissions? if so what permissions should we be using? they are set to 755 i think currently.

Rob

Romeo

11:42 pm on Aug 24, 2005 (gmt 0)

10+ Year Member



Trimast,

files with permission 755 whould be readable for any user (also the web server, if the file owner is someone else).
Just also check the permissions of the directory in which the file is. The directory should be at least readable and executable for the web server, too (and writable for uploads), so you may try a 777 (although I don't know your environment and don't know if this is a good idea securitywise ...).

If this would not work, I am run out of ideas, sorry ...

Regards,
R.