On Mon, 2008-07-14 at 16:45 -0400, Wei, Alice J. wrote:
> Hi, Wolf:
> 
>   Like I guessed, I am still defined as the root user.
> 
> [EMAIL PROTECTED] html]# php test.php
> root
> root/var/www/html
> /var/www/html
> 
> This is the output I have got from using your script.
> I have made a following quick change:
> 
> [EMAIL PROTECTED] var]# chown -R root:root .
> 
> Not surprisingly, I am still not able to make a new directory using PHP with 
> the HTTP.
> Could there be anything else I missed?

I knew who you were when you were on the shell... your ps output showed
the grep process was running as root. But as the others mentioned...
you're running the above script as root. As soon as you go to run via
the webserver things change. In fact, if you run the above as root, and
create any directories, then those will inherit the root ownerships.
Then if you run the same script via the web server, those new
directories may be causing you issues since they trunp the webserver's
permissions. You might want to go do some reading about *nix ownerships
and permissions. It's quite important that you have a thorough
understanding of those if you're going to administer the server.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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

Reply via email to