Re: PERMISSIONS

From: Date: Thu, 12 Sep 2002 22:09:18 +0000
Subject: Re: PERMISSIONS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116213@lists.php.net to get a copy of this message
On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote: > system("mkdir /home/hosting/test"); > but the PERMISSION IS DENIED and I am the root on my server. > How I change the user to root? Dude, you don't change to the root user ... you'll get yourself owned that way. Change the permissions on the directory to allow the web server's user to write files and create subdirectories. For example, most of my boxen run apache as user 'www-data' -- # chown root:www-data /home/hosting # chmod 2775 /home/hosting ~Chris

« previous php.general (#116213) next »