Forum Moderators: phranque

Message Too Old, No Replies

chmod all new files or else 403 error

         

blaketar

3:10 pm on Sep 10, 2007 (gmt 0)

10+ Year Member



I asked this question in php group but now think it must be an Apache issue.

SUSE9.2 Apache2/PHP4. ALL new files uploaded to the www directory must be chmod a+rx in order to not receive a 403 Forbidden error in a browser. This includes images,videos,etc. Any new document.

If their a setting or directive I can place in httpd.conf so that I do not have to "chmod a+rx filename.html" everytime I upload a new file?

jdMorgan

11:53 pm on Sep 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can see where read privileges would be required, but execute privileges should not be needed unless you're using the Apache mod_include XBit hack to parse them for Server Side Includes.

In the *nix OS config shell files, there is usually a file creation mask (umask) directive to set the default privileges for files on creation, so you might want to look into that.

Jim

blaketar

1:02 am on Sep 11, 2007 (gmt 0)

10+ Year Member



Figured out the problem (in case anyone else has issues similar).

Commented out the line in vsftpd.conf

#local_umask=022

reboot xinetd....