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

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
michael smith
Posts: 49
Joined: Wed Mar 14, 2007 12:58 pm

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

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks very much for this. It might be useful if you could post it with the other distro guides in the Wiki.
Phil
mudputty
Posts: 16
Joined: Thu May 22, 2008 5:31 pm

Post by mudputty »

I have put together a CentOS How-To:

http://www.zoneminder.com/wiki/index.php/CentOS
black6
Posts: 13
Joined: Mon Mar 12, 2007 1:15 am
Location: Oregon

Post 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
Post Reply