RE: mkdir permission errors

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

 



On Mon, 2008-07-14 at 15:37 -0400, Wei, Alice J. wrote:
> Hi, Rob:
> 
>   Here is the updated version from the correct command:
> 
> [root@localhost htdocs]# ps awxu | grep -E 'apache|httpd'
> root     30957  0.0  0.5  27576 11016 ?        Ss   14:27   0:00 /usr/sbin/httpd
> apache   30959  0.0  0.3  27708  7452 ?        S    14:27   0:00 /usr/sbin/httpd
> apache   30960  0.0  0.3  27576  6800 ?        S    14:27   0:00 /usr/sbin/httpd
> apache   30961  0.0  0.3  27576  6800 ?        S    14:27   0:00 /usr/sbin/httpd
> apache   30962  0.0  0.3  27576  6788 ?        S    14:27   0:00 /usr/sbin/httpd
> apache   30963  0.0  0.3  27576  6788 ?        S    14:27   0:00 /usr/sbin/httpd
> apache   30964  0.0  0.3  27576  6788 ?        S    14:27   0:00 /usr/sbin/httpd
> apache   30965  0.0  0.3  27576  6788 ?        S    14:27   0:00 /usr/sbin/httpd
> apache   30966  0.0  0.3  27576  6788 ?        S    14:27   0:00 /usr/sbin/httpd
> root     31299  0.0  0.0   4120   676 pts/1    R+   15:36   0:00 grep -E apache|httpd
> [root@localhost htdocs]#
> 
> Does this suggest anything?

Yep, apache is not running as root. It is running as user apache. Now go
to the parent directory and input the following command:

chown apache:apache <directoryName>

That will change the ownership/group to apache. And then apache can
write to it.

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