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?

Alice
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]
________________________________________
From: Wolf [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 4:37 PM
To: Wei, Alice J.
Cc: Robert Cummings; php-general@lists.php.net
Subject: RE: [PHP] 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
>
>    [EMAIL PROTECTED] 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

Reply via email to