Koozali.org: home of the SME Server

Zoneminder 1.25 on SME 8

Offline ramasule

  • *
  • 78
  • +0/-0
Zoneminder 1.25 on SME 8
« on: November 20, 2012, 09:07:34 AM »
Since the other thread got derailed here is what I have done so far to get Zoneminder compiled on SME 8.  I have not been able to go to localhost/zm though so this is the part I need help.  Also being able to get it to start manually instead of going to /init.d/zm start.

I am using the following wiki pages
http://www.zoneminder.com/wiki/index.php/Documentation#Tutorial
http://www.zoneminder.com/wiki/index.php/CentOS#Step_Five_-_Installing_ZoneMinder_1.25.0

Step #1
Enable rpmforge repo and download ffmpeg from there
Code: [Select]
yum install ffmpeg --enablerepo=rpmforge
Step #2
Make a directory and
Code: [Select]
wget http://www2.zoneminder.com/downloads/ZoneMinder-1.25.0.tar.gz
wget http://www.zoneminder.com/sites/zoneminder.com/downloads/cambozola.jar

Step #3
untar your zoneminder and dive into it
Code: [Select]
tar -zxvf ZoneMinder-1.25.0.tar.gz
 cd ZoneMinder-1.25.0

Step #4 This is the step I believe I messed up on if someone more familiar with SME can help me out.  I believe I put it in the wrong directory.  (webdir and cgidir)
Code: [Select]
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg --with-webuser=apache --with-webgroup=apache \
ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmadmin ZM_DB_PASS=[b]your zmadmin password[/b] CPPFLAGS="-D__STDC_CONSTANT_MACROS"

Step #5 Finger Cross
Code: [Select]
make
make install

Step #6 warning I am not the best with this mysql stuff, there maybe be a better way to do this if you get stuck in mysql (forget the ;) and it gives you > just ctrl + c and start again
Code: [Select]
mysql
mysql > create database zm;
mysql > CREATE USER 'zmadmin'@'localhost' IDENTIFIED BY 'root password';
mysql > grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to zmadmin@localhost;
mysql > SET PASSWORD FOR 'zmadmin'@'hostname' = PASSWORD('[b]your zmadmin password[/b]');
mysql > flush privileges;
mysql > exit;

mysqladmin reload

Step #7 import the zm tables into the database
Code: [Select]
mysql zm < db/zm_create.sql
Step #8 Load into init.d  (I need help here as well)
Code: [Select]
cp scripts/zm /etc/init.d/
chmod +x /etc/init.d/zm

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

chown apache:apache /var/www/html/zm/cambozola.jar


Start ZoneMinder by
cd /etc/init.d/
./zm start


This is where I am stuck zoneminder starts but when I got to http://localhost/zm I get nothing

Thank you for your help,

Derek L



Offline ramasule

  • *
  • 78
  • +0/-0
Re: Zoneminder 1.25 on SME 8
« Reply #1 on: November 21, 2012, 04:22:02 AM »
Anyone know where the I should install this?  I think my webdir and cgidir are incorrect for SME. I used /var/www/html and /var/www/cgi respectively.

Thank you,

Ram

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Zoneminder 1.25 on SME 8
« Reply #2 on: November 21, 2012, 09:36:00 AM »
if you need/want that, you must create a custom fragment for httpd.conf

search here and in the wiki, there are many examples..

Offline ramasule

  • *
  • 78
  • +0/-0
Re: Zoneminder 1.25 on SME 8
« Reply #3 on: November 21, 2012, 05:27:22 PM »
thanks Stefano I will look into it.