Page 1 of 1

Centos 5 and zoneminder How I got it to go :-)

Posted: Mon Mar 24, 2008 12:03 am
by michael smith
here is athe basic of commands I used to install zoneminder on Centos 5
from the console
Disable SELinux!!!

Code: Select all

yum install mysql-server mysql-devel php-mysql pcre-devel perl-DateManip perl-libwww-perl perl-Device-SerialPort perl-MIME-Lite perl-Archive-Zip
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/
./configure
make
make install
make install-libs
cd ..
chkconfig --add mysqld
chkconfig --level 345 mysqld on
chkconfig --level 345 httpd on
service mysqld start
service httpd start

yum install gnutls-devel gnutls-utils
yum install libjpeg-devel
wget http://dag.wieers.com/rpm/packages/perl-PHP-Serialization/perl-PHP-Serialization-0.27-1.el5.rf.noarch.rpm
rpm -i perl-PHP-Serialization-0.27-1.el5.rf.noarch.rpm
wget http://www.zoneminder.com/downloads/ZoneMinder-1.23.1.tar.gz
tar xvfz ZoneMinder-1.23.1.tar.gz
cd ZoneMinder-1.23.1

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass 
make
make install
install scripts/zm /etc/init.d/
chkconfig --add zm
mysql mysql < db/zm_create.sql
mysql mysql
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
quit
mysqladmin reload
service zm start
I hope you enjoy :)
Michael Smith

Posted: Tue Mar 25, 2008 9:27 pm
by zoneminder
Thanks very much for this. It might be useful if you could post it with the other distro guides in the Wiki.

Posted: Thu May 29, 2008 10:15 pm
by mudputty
I have put together a CentOS How-To:

http://www.zoneminder.com/wiki/index.php/CentOS

Posted: Tue Nov 18, 2008 4:33 am
by black6
I've followed both how-tos and when I try to start zm get the error:
/usr/local/etc/zm.conf: No such file or directory.

Also
cp cambozola.jar /var/www/html/zm/

throws the same error