Re: apache permissions with php 4.3.2

From: Date: Tue, 17 Jun 2003 15:56:27 +0000
Subject: Re: apache permissions with php 4.3.2
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-11106@lists.php.net to get a copy of this message
You can start apache with "apachectl start" as root just fine, you don't need to su to the apache user. And you must be mis-understanding the permissions or something cause if you do infact have apache running as a seperate user, there's no way it can delete a file owned by root unless maybe the user it's running as is in the root group. On Tue, 2003-06-17 at 11:47, Jacob Marble wrote: > Hey all- > I'm writing some PHP scripts that have the ability to delete, rename, > upload, etc. files to the webserver. It's a simple on-line file manager for > some family members. > The question: I don't want to allow apache to delete certain files, > specifically files that are owned by root. But it can. I made a simple > phpinfo.php file and I can delete it with this file manager. I don't think > it ought to, since it's run as user nobody (httpd.conf setting). I've tried > changing the setting in httpd.conf to a new user called apache, still no > good. > Doing a "ps aux" from the bash prompt says that apache has about 6 or 8 > processes, the first of which is being run as root; the rest are apache (or > nobody, depending on the httpd.conf setting). To remedy this, I stopped > apache and then restarted it with: > su -c "/usr/local/apache2/bin/apachectl start" apache > It wouldn't start, complaining that it couldn't access the log file. > I've tried chown'ing the inaccessable files, I've tried doing my make > install as user apache, all did no good. > Does anyone know a good solution to this problem? How to get apache to > run completely as a user other than root? > > Thanks in advance, > > Jake > > LandEZ -- Adam Voigt (adam@cryptocomm.com) Linux/Unix Network Administrator The Cryptocomm Group

« previous php.install (#11106) next »