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.
building/installing problem with ZoneMinder-1.24.4
building/installing problem with ZoneMinder-1.24.4
- Attachments
-
- ZoneMinder-1.24.4_update.tar.gz
- (1.06 KiB) Downloaded 165 times
Re: building/installing problem with ZoneMinder-1.24.4
Hi Reyman
Did you try to modify these values :
I changed the value of /etc/sysctl.conf:
kernel.shmall = 268435456
kernel.shmmax = 268435456
Did you install CPAN modules like Sys::Map
perl -MCPAN -e shell
install CPAN
exit
perl -MCPAN -e shell
install YAML PHP::Serialization Module::Load X10::ActiveHome
exit
LC_ALL=C perl -MCPAN -e shell
install Sys::Mmap
install DBI
install DBD::mysql
exit
Best Regards
Eric
Did you try to modify these values :
I changed the value of /etc/sysctl.conf:
kernel.shmall = 268435456
kernel.shmmax = 268435456
Did you install CPAN modules like Sys::Map
perl -MCPAN -e shell
install CPAN
exit
perl -MCPAN -e shell
install YAML PHP::Serialization Module::Load X10::ActiveHome
exit
LC_ALL=C perl -MCPAN -e shell
install Sys::Mmap
install DBI
install DBD::mysql
exit
Best Regards
Eric
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: building/installing problem with ZoneMinder-1.24.4
No need for PHP::Serialization starting with ZM 1.24.4 and newer.erict35 wrote:Hi Reyman
install YAML PHP::Serialization Module::Load X10::ActiveHome
mastertheknife
Kfir Itzhak.