How to install ZoneMinder, v1.28.1. on Ubuntu 15.10

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

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


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 .


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

Screenshot-*ports.conf (-etc-apache2) - gedit

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

Screenshot-*000-default.conf (-etc-apache2-sites-enabled) - gedit

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/


2 thoughts on “How to install ZoneMinder, v1.28.1. on Ubuntu 15.10

  1. Hi Ya,

    I followed your tutorial to install zoneminder on virgin ubuntu server 15.10. Every thing went ok until I got to configuring sql data base. Sql complained about “root@something” not having access rights. Modified your instructions :-

    mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql

    (Enter mysql root password)

    mysql -uroot -p -e "grant select,insert,update,delete,create on zm.* to 'zmuser'@localhost identified by 'zmpass';"

    (Enter mysql root password)

    I guess if I had not set root password, in mysql setup, everything would have been ok.

    Your tutorial is excellent. After numerous attempts to install zoneminder and many smashed tea mugs, and after modding the above, everything just worked.
    I think it might be worth amending your blog, just for the benefit of newbies.
    Excellent work, Regards, Bob.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s