RE: [PHP] SAFE MODE Restriction - mkdir()
| From: | SED | Date: | Thu, 25 Nov 2004 15:48:37 +0000 |
| Subject: | RE: [PHP] SAFE MODE Restriction - mkdir() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202855@lists.php.net to get a copy of this message | ||
This answer from Mike solved this (e.g. create a CGI process for this task):
[...]
So, yes, you can create a directory which it is then impossible to access --
this is an unfortunate side-effect of safe mode when PHP runs as an Apache
module and hence as the Apache user. This is why hosted services often use
chrooted jails with PHP as a CGI -- the individual copies of PHP then run
with the appropriate uids of the host usernames.
[...]
Regards,
Summi