HOWTO - Upgrade procedure 1.22.1 to 1.22.2 on CentOS x86_64

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
MILxDOT
Posts: 64
Joined: Wed Mar 29, 2006 5:12 am

HOWTO - Upgrade procedure 1.22.1 to 1.22.2 on CentOS x86_64

Post by MILxDOT »

###Shutdown Zoneminder
/etc/rc.d/init.d/zm stop

###Download New Version
wget http://www2.zoneminder.com/downloads/Zo ... 2.2.tar.gz

###Untar and Unzip New Version Source
tar -xzvf ZoneMinder-1.22.2.tar.gz

###Change perms
chmod -R 755 ZoneMinder-1.22.2

###Change Directories
cd ZoneMinder-1.22.2

###Configure your build
./configure --with-ffmpeg --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin --with-webgroup=apache --with-webuser=apache --with-mysql=/usr --with-libarch=lib64 --disable-crashtrace

###Compile your build
make

###Install your build
make install

###Edit the new zm.conf and set your database name, db username, and db password
vi /usr/local/etc/zm.conf
you will need to enter your details for the following variables:
# ZoneMinder database name
ZM_DB_NAME=zm
# ZoneMinder database user
ZM_DB_USER=zmuser
# ZoneMinder database password
ZM_DB_PASS=zmpass

###Change directories
cd scripts

###Update your database
./zmupdate.pl -version=1.22.1 -user=zmuser -pass=zmpass

###Copy new startup script
cp zm /etc/rc.d/init.d/

###Set perms on new startup script
chmod 755 /etc/rc.d/init.d/zm

###Start Zoneminder
/etc/rc.d/init.d/zm start

###1.22.2 will complain about:
line 128: /usr/local/sbin/motd.sh: No such file or directory
You can either just ignore this or edit your zm startup script to not call motd.sh...no biggy really.

Thanks to Phil for making this project possible!!
Post Reply