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

Forum for questions and support relating to the 1.25.x releases only.
Locked
dhanasekar
Posts: 19
Joined: Mon Aug 29, 2011 4:43 am
Location: Chennai, India

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

Post 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.
dhanasekar
Posts: 19
Joined: Mon Aug 29, 2011 4:43 am
Location: Chennai, India

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

Post 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.
dhanasekar
Posts: 19
Joined: Mon Aug 29, 2011 4:43 am
Location: Chennai, India

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

Post 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.
Locked