Advertisement

PHP File Permission Problem

Started by August 04, 2003 04:03 PM
1 comment, last by Monder 21 years, 1 month ago
On my server for some reason php scripts cannot access files. For example here''s a very simple php script The permisions of /usr/local/www/data-dist/InvBoard/uploads/test.txt are -rw-rw-rw- it is owned by root and part of the www group. Apache runs using a user that is also part of the www group. Does anyone know what may be causing this? I''m using FreeBSD 5.0, Apache 2 and PHP 4
Perhaps you might need to change your permissions to include a 7 such as chmod a=rwx or chmod 777 [filename]. Its an interesting question that I have probably would have come at sooner or later but perhaps the permission to "execute" is needed for the php script to run the file and that is why you are not able to do so. chmod the file manually and test to see if that worked and then do the necessary changes to automatically have the permissions set for all files in a given directory.
Well, R2D22U2..
Advertisement
Yep it just needed an execute permission. Odd that. Thanks for the help.

[edited by - Monder on August 4, 2003 6:25:35 PM]

This topic is closed to new replies.

Advertisement