Re: [PHP] safe mode and file handling

2002-03-01 Thread Jim Lucas [php]

if you are on a unix system running with apache, you could modify the
virtual host block and have apache run as your user name and then change the
permissions of the docroot so you are the owner and group.

Jim Lucas
www.bend.com
- Original Message -
From: "Mika Lindqvist" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 1:21 PM
Subject: [PHP] safe mode and file handling


> I and my www space provider have fought with a problem. All
> files/directories created by PHP are owned by nobody/nobody and we want
> them to be created by my own uid/guid. How this would be solved by least
> amount of modification in the scripts.
>
> The problem is in that safe mode requires that the script and the
> directory containing the file/directory to be accessed is owned by me
> and only me. If I tell PHP to create a directory test1 under my www root
> and then change to that directory and tell it to create another
> directory for example called test2, it fails because test1 is owned by
> nobody, not me.
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] safe mode and file handling

2002-03-01 Thread Rasmus Lerdorf

The easiest way to make this work is to use open_basedir settings instead
of safe_mode.  Safe_mode is specifically created to prevent you from doing
what you are trying to do.

-Rasmus

On Fri, 1 Mar 2002, Mika Lindqvist wrote:

> I and my www space provider have fought with a problem. All
> files/directories created by PHP are owned by nobody/nobody and we want
> them to be created by my own uid/guid. How this would be solved by least
> amount of modification in the scripts.
>
> The problem is in that safe mode requires that the script and the
> directory containing the file/directory to be accessed is owned by me
> and only me. If I tell PHP to create a directory test1 under my www root
> and then change to that directory and tell it to create another
> directory for example called test2, it fails because test1 is owned by
> nobody, not me.
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] safe mode and file handling

2002-03-01 Thread Mika Lindqvist

I and my www space provider have fought with a problem. All
files/directories created by PHP are owned by nobody/nobody and we want
them to be created by my own uid/guid. How this would be solved by least
amount of modification in the scripts.
 
The problem is in that safe mode requires that the script and the
directory containing the file/directory to be accessed is owned by me
and only me. If I tell PHP to create a directory test1 under my www root
and then change to that directory and tell it to create another
directory for example called test2, it fails because test1 is owned by
nobody, not me.