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?
File Upload from PHP and Directory Permissions
- Marshin
- Posts: 2
- Starts: 3
- Wiki Edits: 0
- Location: San Francisco
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?
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?
- Sijin
- Posts: 122
- Starts: 0
- Wiki Edits: 4
You can contact the support team, who will help you to change the group ownership of the directory.