Re: File upload and permissions
| From: | Charles Kline | Date: | Thu, 06 Mar 2003 22:39:37 +0000 |
| Subject: | Re: File upload and permissions | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4074@lists.php.net to get a copy of this message | ||
Thanks. How do I get this information? I have access via ssh to the server.
- ck
On Thursday, March 6, 2003, at 05:32 PM, R'twick Niceorgaw wrote:
find out under what user id/group id apache running on that server and then change ownership of your target directory to this user and group. then you can set the permission as 7XX where X is whatever you want ( I usually make it 700) ----- Original Message ----- From: "Charles Kline" <ckline@rightcode.net> To: <php-general@lists.php.net> Sent: Thursday, March 06, 2003 5:24 PM Subject: [PHP] File upload and permissionsI have a form which uploads a file to my server. The files that are uploaded will be .doc files and will need to be able to be downloaded from a web page. My script works locally - I have tested it well files upload etc., but I am moving it to a commercial web server and am not sure what permissions should be set like for this directory. I have tried my script and gotten the files to upload but when the script tries to move them to the directory where I want to keep them I get a permission denied error. I have played with it - changing permissions and the only one that works is chmod 777 - not sure if this is good or not - pretty new to unix administration stuff. What do you all suggest? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php