Installing ZoneMinder 1.22.3 under CentOS 4.4

categories:

http://www.zoneminder.com/

ZoneMinder is intended for use in single or multi-camera video security applications, including commercial or home CCTV, theft prevention and child or family member or/ home monitoring and other care scenarios….

  1. Disable SELinux (that’s the easy way, I know.. please provide the steps in the comment if you kept SELinux on) : Edit /etc/sysconfig/selinux

  2. Install RPMforge repository : See http://dag.wieers.com/rpm/FAQ.php#B

  3. Install necessary packages : # yum install mysql-server mysql php-mysql mysql-devel libjpeg-devel pcre-devel subversion ffmpeg perl-Archive-Tar perl-MIME-Lite perl-MIME-tools gcc gcc-c++

In the comments you can see some people had to install the following packages as well : perl-Time-HiRes

I’m no longer using CentOS 4 so I can’t verify. Thanks for the feedback guys !

  1. Start mysql and Apache : `# service mysqld start

  2. Download and unzip Zoneminder : $ wget http://www.zoneminder.com/downloads/ZoneMinder-1.22.3.tar.gz $ gzip -d ZoneMinder-1.22.3.tar.gz && tar -xvf ZoneMinder-1.22.3.tar

  3. Compile and install : $ ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin $ make && make install

  4. Create zm database : `$ mysql -p

CREATE DATABASE zm DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;`

  1. Import data : $ mysql -p zm < /source/dir/db/zm_create.sql

  2. Create user zmuser and the rights : `$ mysql -p

GRANT USAGE ON * . * TO ‘zmuser’@‘localhost’ IDENTIFIED BY ‘zmpass’ WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 ; GRANT SELECT , INSERT , UPDATE , DELETE ON zm . * TO ‘zmuser’@‘localhost’;`

  1. Make Zoneminder start at boot : # cp /source/dir/scripts/zm /etc/init.d ; chkconfig --add /etc/init.d/zm



Thanks for reading this post!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!