Forum Moderators: coopster

Message Too Old, No Replies

why all new files must have chmod permissions set.

         

blaketar

11:24 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



Trying to find out why anytime I create a new file on our server I must set the chmod permissions for the file in order for it to work in apache/php.

I must set "chmod a+rx newfilename.php" or else when I attempt to view the page in a browser I get the following error message in our php error log.

PHP Warning: Unknown(newfilename.php): failed to open stream: Permission denied in Unknown on line 0
PHP Warning: (null)(): Failed opening 'newfilename.php' for inclusion (include_path='.:') in Unknown on line 0

Must I change something in php.ini? Thanks All!

darrenG

3:27 pm on Aug 27, 2007 (gmt 0)

10+ Year Member



You can change the permissions permanently on the target directory.. not advisable though!

blaketar

12:39 am on Sep 5, 2007 (gmt 0)

10+ Year Member



How would I go about doing that? The server is on a local network.

I should point out that all new file I must do a chmod a+rx on them in order for them to work.

Thanks,