When you upgrade Zoneminder to v1.28.1. the ZM – Console will stuck due to a data base error.It is also noticed that the sound folder is missing at /usr/share/zoneminder/www/ .
Let us see how those errors mentioned are rectified.
Open the Ubuntu terminal and run the following commands
Step 1: Make sure we add the correct packages
sudo add-apt-repository ppa:iconnor/zoneminder-master
sudo apt-get update
if you don’t have mysql already installed:
sudo apt-get install mysql-server
Step 2: Install ZoneMinder
sudo apt-get install zoneminder
Step 3: Configuring the Database
mysql < /usr/share/zoneminder/db/zm_create.sql
mysql -e "grant select,insert,update,delete,create on zm.* to 'zmuser'@localhost identified by 'zmpass';"
Step 4:
Set permissions of /etc/zm/zm.conf to root:www-data 740
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
Enable Zoneminder service to start at boot
systemctl enable zoneminder.service
Create a new user
adduser www-data video
Start Zoneminder
systemctl start zoneminder.service
Check to see that Zoneminder is running
systemctl status zoneminder.service
Enable CGI and Zoneminder configuration in Apache.
a2enmod cgi
a2enmod rewrite
a2enconf zoneminder
Step 5:
Restart Apache
service apache2 restart
If the apache server does not start for above command please see the foot Note
Download cambozola tar.gz file from the following link and extract it to the home folder
http://www.charliemouse.com/code/cambozola/ Then open the terminal and execute sudo cp cambozola-0.936/dist/cambozola.jar /usr/share/zoneminder/www/ Then open the web browser http://localhost/zm/
How to make alarm sounds
The sound folder is missing at the /usr/share/zoneminder/www/ sub directory. Therefore you will have to create it manually.
First you will have to select a suitable sound clip and copy it to the home directory of your computer.
Let us say our sound clip is alarm.ogg
Open the Ubuntu terminal
cd /usr/share/zoneminder/www/
sudo mkdir sounds
cd sounds
sudo sudo cp /home/bkjaya1952/alarm.ogg /usr/share/zoneminder/www/sounds/
Now open the ZM- Console and add a Modect
Open the Options / Web of the ZM- Console
and tick WEB_SOUND_ON_ALARM
enter alarm.ogg at the cage facing WEB_ALARM_SOUND
Now the alarm sound will be activated once an alarm is occurred.
Note :-Some web browsers like Firefox at present does not work on above alarms.Chromium web browser can be used successfully .
Reference http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_15.10_64-bit_with_Zoneminder_1.28.1_the_easy_way Note:-
If an error massage of
“AH00526: Syntax error on line 11 of /etc/apache2/conf-enabled/zoneminder.conf:
Invalid command ‘php_flag’, perhaps misspelled or defined by a module not included in the server configuration”
occurred when you try to start apache , please install the following software.
Open the terminal and run
sudo apt-get install libapache2-mod-php5
sudo a2enmod php5 sudo /etc/init.d/apache2 restart
How to change the default port 80
Suppose ,you want to change the localhost default port to 80 to 8080
Open the terminal and run
sudo gedit /etc/apache2/ports.conf
Then the file port.conf file will be opened
In the file change the Listen 80 to Listen 8080 and save
Similarly open the file 000-default.conf by running
sudo gedit /etc/apache2/sites-enabled/000-default.conf
and change <VirtualHost *:80> to <VirtualHost *:8080> and save
The run
sudo service apache2 restart
Now you can access zm console using http://localhost:8080/zm/