RE: mkdir permission errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
> 
> [root@localhost 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:
> 
> [root@localhost 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux