[PHP] creating files with same user id than the script?

2002-03-29 Thread Kai Schaetzl
One of our customers installed a CMS application scripted in PHP and it creates a lot of new files. These are all getting created under the userid of nobody (the webserver's id) instead of the user's id (the scrip's id) which makes it somewhat difficult to run the application in safemode

Re: [PHP] creating files with same user id than the script?

2002-03-29 Thread Rasmus Lerdorf
That's the way it works since Apache runs as a single user id. There is no way PHP can escape this. You might look into setting this user up with the open_basedir restriction instead of safe_mode. Under open_basedir the user's scripts can only manipulate files under the directory you specify.