Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: ramasule 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
yum install ffmpeg --enablerepo=rpmforge
Step #2
Make a directory and
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
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)
./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
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
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
mysql zm < db/zm_create.sql
Step #8 Load into init.d (I need help here as well)
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
-
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
-
if you need/want that, you must create a custom fragment for httpd.conf
search here and in the wiki, there are many examples..
-
thanks Stefano I will look into it.