PHP File Permission Problem
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..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement