Re: mkdir() makes dir, but with wrong owner

From: Date: Fri, 20 Dec 2002 16:10:37 +0000
Subject: Re: mkdir() makes dir, but with wrong owner
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129004@lists.php.net to get a copy of this message
Another option is to use ftp functions. John W. Holmes wrote:
i had a few problems with mkdir() ane uploading files using php. i have a simple script, which is making a dir. but everytime, it makes a dir with totally wrong user. chown wont work. any expirience with this?? i have found some older posts considering this, but no real answers. i think, the problem is probably in httpd.conf (apche config file), but i am not sure.
That's normal. PHP runs as the Apache user, so anything it creates will be owned by that user. Workaround is to use CGI mode or make the dir 777 so you can still access it. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/


« previous php.general (#129004) next »