Re: $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made.
| From: | Ernest E Vogelsinger | Date: | Fri, 21 Mar 2003 08:43:15 +0000 |
| Subject: | Re: $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140558@lists.php.net to get a copy of this message | ||
At 04:43 21.03.2003, Philip J. Newman said:
--------------------[snip]--------------------
>MY ERROR:
>
>Warning: mkdir(/home/newmanpj/public_html/galleries/philip/20030320223553)
>[function.mkdir]: Permission denied in
>/home/crushme/public_html/siteadmin/upload_set_step3.php on line 72
>
>MY PROBLEM:
>
>$siteGalleryUserPath when it is made by PHP dose not give 0777 access for
>$destination to be made.
--------------------[snip]--------------------
The access mode of a directory created by any webserver-run application is
dictated by the umask of the webserver process which is usually 022 or 002,
giving rw/access only to the owner (the webserver user), or to the owner
and owner group.
The error you are receiving points to a different situation though - it
seems that either the directory where your script wants to create a
subdirectory in doesn't grant "write" permission to the webserver user, or
the subdirectory below (...ies/philips) does not (yet) exist.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/