RE: mkdir permission errors

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

 



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?

Alice
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
ajwei@xxxxxxxxxxx
________________________________________
From: Wolf [lonewolf@xxxxxxxxx]
Sent: Monday, July 14, 2008 4:37 PM
To: Wei, Alice J.
Cc: Robert Cummings; php-general@xxxxxxxxxxxxx
Subject: RE:  mkdir permission errors

---- "Wei wrote:
> Hi, Rob:
>
>   I forgot to mention that I have been using yum install.
>   I have reinstalled the entire thing, put back all the packages, and then I went to /var and did a chmod -R 777 var, and then did a
>
>    [root@localhost var]# chown -R apache:apache .
>
> Interestingly, I do not see anything different, and I still get this error that says my permission is denied. Here is my
>
> Obviously, my last one has already changed the owner to apache already.Nevertheless, I am still denied even when I am now logged in as root. Is this anything with firewalls?
>
> Thanks for your help.

Alice,

$whoami=system('whoami');
echo $whoami;

$pwd=system('pwd');
echo $pwd;

That should tell you what ID you are and the path you are in.

Make sure that the path you are in has the correct permissions.

Wolf


-- 
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