Page 1 of 1

Error in make install: invalid user: `apache:apache'

Posted: Wed Dec 07, 2011 6:03 am
by dhanasekar
Downloaded the package zoneminder 1.25.0,extracted it and executed the following commands within the extracted folder
# ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --enable-mmap=no
# make
# make install
and I land upon the following error.

make install-data-hook
make[4]: Entering directory `/root/dhanasekar/ZoneMinder-1.25.0/web'
( cd /var/www/html/zm; chown apache:apache index.php )
chown: invalid user: `apache:apache'
make[4]: *** [install-data-hook] Error 1

Could some help me in this recover this error.

Re: Error in make install: invalid user: `apache:apache'

Posted: Thu Dec 08, 2011 9:11 am
by dhanasekar
That is done. Went for
# groupadd -g 25 apache
# useradd -c "Apache Server" -d /dev/null -g apache -s /bin/false -u 25 apache
and the make is through that stage.

Thanks.

Re: Error in make install: invalid user: `apache:apache'

Posted: Tue Dec 13, 2011 6:59 am
by dhanasekar
but the right is to go for
./configure --with-webdir=/var/www/zm --with-cgidir=/var/www/cgi-bin --enable-mmap=no --with-webuser=www-data --with-webgroup=www-data
as squeeze distribution has transformed the web user apache to www-data.

For details refer to "5.8.3 Published web files" in the below link
http://www.debian.org/doc/manuals/secur ... es.en.html

Thanks.