RE: [PHP] mkdir permission errors

From: Date: Mon, 14 Jul 2008 20:45:30 +0000
Subject: RE: [PHP] mkdir permission errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-276798@lists.php.net to get a copy of this message
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@indiana.edu ________________________________________ From: Wolf [lonewolf@nc.rr.com] 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 > > [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

« previous php.general (#276798) next »