ZoneMinder on CentOS 5.0

Print Friendly, PDF & Email

Installing ZoneMinder on CentOS 5.0 with a PV149PA 8 port capture card.’, ‘Install CentOS 5.0

Follow directions to add rpmforge repository on centos.org site

yum install ffmpeg*
yum install mysql-server mysql-devel
yum install openssl (might not need this with gnutls)
yum install gnutls*
yum install libjpeg*
cpan: (press enter for everything, unless you need a proxy and then choose location)
> install Date::Manip
> install LWP::UserAgent
> install PHP::Serialization

# vi /etc/modprobe.d/blacklist

Add the following to the bottom:

#Trimming the fat
blacklist soundcore
blacklist snd
blacklist snd_timer
blacklist snd_page_alloc
blacklist snd_pcm
blacklist snd_mixer_oss
blacklist snd_pcm_oss
blacklist snd_seq_device
blacklist snd_seq
blacklist snd_seq_midi_event
blacklist snd_seq_oss
blacklist snd_seq_dummy
blacklist bluetooth
blacklist dm_mod
blacklist dm_mirror
blacklist ipv6

./configure –with-mysql=/usr –with-webdir=/var/www/html –with-cgidir=/var/www/cgi-bin –with-ffmpeg=/usr –with-lame=/usr/include –with-webuser=apache –with-webgroup=apache –disable-debug –disable-crashtrace ZM_SSL_LIB=openssl

**Might need to do**

# vi src/zm_mpeg.cpp

Go to line 281 and put a & in front of ofc like this:

url_fclose(&ofc->pb);

# make
# make install

# cp scripts/zm /etc/rc.d/init.d/
# chmod 755 /etc/rc.d/init.d/zm
# chkconfig zm on
# vi /etc/httpd/conf/httpd.conf

Added index.php to the end of the “DirectoryIndex” line.

Add this in the AddType area:

AddType application/x-httpd-php .php

# service httpd start
# service mysqld start
# mysql
> create database zm;
> use zm;
> grant all privileges on zm to zmuser@locahost identified by \’zmpass\’;
> grant all privileges on zm.* to zmuser@localhost identified by \’zmpass\’;
> exit

# mysql zm < db/zm_create.sql If you installed the ZM to another location (like another HD mounted a /zm), do this:
# ln -s /zm /var/www/html/zm

# vi /var/www/html/index.html

put this in it:

<html>
<head>

Leave a Reply