I've been tried to change group of the whole directory with code example below [bash terminal on ubuntu 11.10]:
chgrp apache -R ./test1
but failed and said :
chgrp: invalid group: `apache'
user and group in httpd.conf is set to "apache".
I've been tried to change group of the whole directory with code example below [bash terminal on ubuntu 11.10]:
chgrp apache -R ./test1
but failed and said :
chgrp: invalid group: `apache'
user and group in httpd.conf is set to "apache".
If you've installed Apache via
sudo apt-get install apache2
or withsudo tasksel install lamp-server
then the default group iswww-data
notapache
you'll need to use that group name instead (You may also need to update the Apache configuration file).If you've custom compiled it, or using a 3rd party source, you will need to make sure the
apache
group actually exists. You can check by typing the following in the command line:If no results are returned then you'll need to create the group, you can do so with
sudo addgroup apache
. However, at this point I STRONGLY ADVISE you use aptitude to install Apache, as by using the apt package manager you'll always stay up to date and configuration (including group creation) will be done for you.