Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- changing the group under apache
June 24, 2009, 7:31 pm
rate this thread
* Your config.inc.php file should be chmod 660.
* All your phpMyAdmin files should be chown -R phpmy.apache, where
phpmy is a
user whose password is only known to you, and apache is the group
which Apache runs.
* You should use PHP safe mode, to protect from other users that try
include your config.inc.php in their scripts.
I don't understand what it means about "apache is the group under
which apache runs". My httpd.conf permissions are:
drwxr-xr-x 13 root wheel 442 Sep 19 2008 extra
-rw-r--r-- 1 root wheel 17714 Jun 23 10:19 httpd.conf
-rw-r--r-- 1 root wheel 17750 Jun 22 13:49 httpd.conf.bu
-rw-r--r-- 1 root wheel 12958 Sep 19 2008 magic
-rw-r--r-- 1 root wheel 29594 Sep 19 2008 mime.types
drwxr-xr-x 4 root wheel 136 Sep 19 2008 original
drwxr-xr-x 5 root wheel 170 Jun 3 09:09 other
drwxr-xr-x 5 root wheel 170 Jun 17 17:21 users
Does this mean you are supposed to change the ownership permissions of
Re: changing the group under apache
This way, both you (through said user account) and PHP (through apache) have
write access to those files.
| $ groups apache
This should be the situation after a default setup. When installing apache,
a user is created for it. And every user is a member of its own group.
Now all files that are written by PHP (hence apache) are owned by
apache:apache (unless maybe if you set a sticky bit to the directory).
This works because those files are readable for world. Apache doesn't change
those files by itself, it only reads them upon start.
Gruß | Greetings | Qapla'
In keiner Lebenslage denkt der Mensch so sehr ans Vorwärtskommen
wie vor einem Stopschild.