open_basedir
| From: | dorgon | Date: | Fri, 20 Jun 2003 13:03:09 +0000 |
| Subject: | open_basedir | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152298@lists.php.net to get a copy of this message | ||
hi folks,
I just realised that open_basedir also prevents the access to /tmp.
Thus, file uploads aren't possible.
One solution would be, to use a tmp directory within open_basedir, to
give PHP the required write access.
But assume you're using a server with multiple VirtualHosts and www-dirs. You use open_basedir to limit the access of every script running in a specific VirtualHost/www-dir to its proper www-dir.
Now you would have to create a .../tmp directory for each single www-dir, which is not very pretty.
Would it be possible to limit access to open_basedir without the
exception of /tmp, to allow the uploads?
/dorgon