building/installing problem with ZoneMinder-1.24.4
Posted: Sun Jul 10, 2011 5:00 pm
Hello,
I have tried building the latest version of the source and installing it however could not manage to run it successfully.
I was able to see apache server and zoneminder service running from the commandline however when I open the console localhost/zm. It shows me stopped and even if I start manually from within the console it still stays stopped. Logs apparently looked fine. There was only one error that can not create file under /dev/shm which go away once I did sudo chmod -R 0777 /dev/shm
Can someone please comment what could potentially be wrong? It seems to be some disconnect with ubuntu service or php pages.
Many thanks, regards,
Rehman
PS: This is my first time trying to build and install from source. In past I was successfully able to install from repositories (but then packages might have done something which I am not doing correctly).
I am on desktop version of Ubuntu 10.10 and all my step on raw machine are described below.
Step 1 - pre-requisites
=================
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server ffmpeg postgresql-client javascript-common libarchive-zip-perl libconvert-binhex-perl libdate-manip-perl libdevice-serialport-perl libemail-date-format-perl libio-stringy-perl libjs-mootools libmime-lite-perl libmime-tools-perl libmime-types-perl libphp-serialization-perl libyaml-syck-perl nullmailer php5 wwwconfig-common
Step 2 - pre-requisites for development
=================
sudo apt-get install g++ libstdc++6-4.4-dev libmysqlclient-dev zlib1g-dev libssl-dev libjpeg62-dev libpcre3-dev build-essential
Step 3 -configure the zoneminder
=================
./configure --prefix=/usr --with-mysql=/usr --enable-crashtrace=yes --enable-debug=yes --with-webdir=/usr/share/zoneminder --with-cgidir=/usr/lib/cgi-bin --with-webuser=user --with-webgroup=user ZM_SSL_LIB=openssl ZM_DB_PASS=zmpass ZM_DB_NAME=zm ZM_DB_USER=zmuser
Step 4 - building the zoneminder
=================
make
Step 5 - Creating SQL entries
=================
sudo mysql
create database zm;
exit;
sudo mysql zm < db/zm_create.sql
sudo mysql zm
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
quit;
sudo mysqladmin reload
Step 6 - Installing
=================
make install
Step 7 - Moving the apache.conf
=================
sudo mkdir /etc/zm
sudo cp ./apache.conf /etc/zm
sudo chmod 0777 /etc/zm/apache.conf
sudo chown -h user:user /etc/zm/apache.conf
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
Step 8 - to start service and/from boot
=================
sudo cp ./zoneminder /etc/init.d/
sudo update-rc.d zoneminder defaults
Files used in step 7 and step 8 are attached with this thread. They are taken from standard zoneminder-1.24.2 installattion.
I have tried building the latest version of the source and installing it however could not manage to run it successfully.
I was able to see apache server and zoneminder service running from the commandline however when I open the console localhost/zm. It shows me stopped and even if I start manually from within the console it still stays stopped. Logs apparently looked fine. There was only one error that can not create file under /dev/shm which go away once I did sudo chmod -R 0777 /dev/shm
Can someone please comment what could potentially be wrong? It seems to be some disconnect with ubuntu service or php pages.
Many thanks, regards,
Rehman
PS: This is my first time trying to build and install from source. In past I was successfully able to install from repositories (but then packages might have done something which I am not doing correctly).
I am on desktop version of Ubuntu 10.10 and all my step on raw machine are described below.
Step 1 - pre-requisites
=================
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server ffmpeg postgresql-client javascript-common libarchive-zip-perl libconvert-binhex-perl libdate-manip-perl libdevice-serialport-perl libemail-date-format-perl libio-stringy-perl libjs-mootools libmime-lite-perl libmime-tools-perl libmime-types-perl libphp-serialization-perl libyaml-syck-perl nullmailer php5 wwwconfig-common
Step 2 - pre-requisites for development
=================
sudo apt-get install g++ libstdc++6-4.4-dev libmysqlclient-dev zlib1g-dev libssl-dev libjpeg62-dev libpcre3-dev build-essential
Step 3 -configure the zoneminder
=================
./configure --prefix=/usr --with-mysql=/usr --enable-crashtrace=yes --enable-debug=yes --with-webdir=/usr/share/zoneminder --with-cgidir=/usr/lib/cgi-bin --with-webuser=user --with-webgroup=user ZM_SSL_LIB=openssl ZM_DB_PASS=zmpass ZM_DB_NAME=zm ZM_DB_USER=zmuser
Step 4 - building the zoneminder
=================
make
Step 5 - Creating SQL entries
=================
sudo mysql
create database zm;
exit;
sudo mysql zm < db/zm_create.sql
sudo mysql zm
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
quit;
sudo mysqladmin reload
Step 6 - Installing
=================
make install
Step 7 - Moving the apache.conf
=================
sudo mkdir /etc/zm
sudo cp ./apache.conf /etc/zm
sudo chmod 0777 /etc/zm/apache.conf
sudo chown -h user:user /etc/zm/apache.conf
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
Step 8 - to start service and/from boot
=================
sudo cp ./zoneminder /etc/init.d/
sudo update-rc.d zoneminder defaults
Files used in step 7 and step 8 are attached with this thread. They are taken from standard zoneminder-1.24.2 installattion.