Welcome Guest | Login

File Upload from PHP and Directory Permissions

I have just started playing around with a new deployment, which for historical reasons, utilizes one PHP file that handles file uploads, and then saves the uploaded file to a directory in public (public/images/photos). Obviously by default the Apache/PHP process does not have permission to write to the specified directory, and I had planned to change the group of photos to nobody (chgrp nobody photos) and then give the group write permission (chmod g+w photos). It seems that I don't have access to chgrp however since use of it results in an 'Operation not permitted' error.

Just to test, I gave write permissions to 'others' on the photos directory (chmod o+w photos), and everything worked perfectly. Am I going to have to allow anyone to write in the directory? Is there something else I can do?

2007-08-24 07:54 PM

You can contact the support team, who will help you to change the group ownership of the directory.

2007-08-24 08:16 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.