How to install ZoneMinder, v1.31.44. on Ubuntu 18.04 LTS

Install Zoneminder
Please refer Connor's web site
Open the terminal and run following commands.
sudo add-apt-repository ppa:iconnor/zoneminder-master
sudo apt-get update
sudo apt install zoneminder

sudo su

rm /etc/mysql/my.cnf

cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf

gedit /etc/mysql/my.cnf

add the following line at 32


systemctl restart mysql

Create Zoneminder database in MySQL (Note: this also creates the default Zoneminder user and permissions in MySQL)

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 
'zmuser'@localhost identified by 'zmpass';"

mysqladmin -uroot -p reload

chmod 740 /etc/zm/zm.conf

chown root:www-data /etc/zm/zm.conf

adduser www-data video

a2enmod cgi

a2enconf zoneminder

a2enmod rewrite

chown -R www-data:www-data /usr/share/zoneminder/

systemctl enable zoneminder

service zoneminder start

Add timezone to PHP

gedit /etc/php/7.2/apache2/php.ini

edit line 939 with your timezone


Then save the file php.ini

Your time zone can be get from here 

Adding cambozola.jar to the directory /usr/share/zoneminder/www/
Download the latest cambozola and extract to the Downloads directory 
of your PC
Then copy the cambozola.jar to the directory 
On the ubuntu terminal run 
sudo cp /home/bkjaya1952/Downloads/cambozola-latest/cambozola-0.936/dist/cambozola.jar
Open zoneminder web console (http://localhost/zm/)
Screenshot from 2018-05-22 08-43-37
It was observed in ZM-Console,  the monitor adding editing Deleting  buttons are
not working. This is due to the default setting in  /etc/apache2/conf-available/zoneminder.conf
This problem can be solved by editing the zoneminder.conf file as follows.
Open the terminal and run following commands

sudo gedit /etc/apache2/conf-available/zoneminder.conf
Screenshot from 2018-05-22 08-13-53

Add following lines at 13 and 14 as shown in the above figure and save
AllowOverride All 
Require all granted

Then to restart Apache

sudo service apache2 reload
Then open the ZM-Console and restart zoneminder

Screenshot from 2018-05-22 08-48-04
Now you can see all the buttons in zm-console are working.
In my case ,I have added an usb camera as shown in the following figures
 Screenshot from 2018-05-22 09-09-56

Adding USB camera

Screenshot from 2018-05-22 09-09-56Adding USB camera

Screenshot from 2018-05-22 09-12-23
ZM- Console after adding the camera

Screenshot from 2018-05-22 09-12-54Camera view

Screenshot from 2018-05-22 09-13-31
Facility to add storage areas

Reference - Zoneminder forums

12 thoughts on “How to install ZoneMinder, v1.31.44. on Ubuntu 18.04 LTS

  1. Hi,
    can You help, i added 4 ip cameras, and cpu runs at 100% . on windows with luxriot soft its about 20-30% cpu usage.

  2. Hi Romas
    It seems you have installed Zoneminder on a virtual machine running on windows. I think ,running directly on linux is much efficient than running on a linux system installed on a virtual machine .Therefore it it better to have a partition on the desk and install linux on it to run Zoneminder . I have not used luxriot software . But following link may be useful to improve the performance ,if you still want to use VM on Windows to run zoneminder .

  3. Even if enebled function ‘monitor’ , cpu runs at 60-70%, only when swich to ‘none’, cpu usage falls down to 3-4%.

  4. I am stuck on your document as I can’t seem to copy the cambozola.jar over to the /usr/share/zoneminder/www/ . I am very new at Ubuntu so I must be missing something. I can copy to other folders just not the one you indicate. Must be read only folder.

    • Hi Jerry
      First download Cambozla from this link to your Download folder.
      Then right click the mouse on the folder and extract it in to your Download folder. If you go through the extracted file you can see the “cambozolar.jar” in the sub folder called “dist “.This “cambozola.jar” file has to be copied in to the folder at /uasr/share/zomeminder/www/.

      Open the ubuntu terminal
      Then run
      On the ubuntu terminal run
      sudo cp /home/bkjaya1952/Downloads/cambozola-latest/cambozola-0.936/dist/cambozola.jar /usr/share/zoneminder/www/

      Then open the ZM panel and goto Options-> Images -> and tick the box at OPT_CAMBOZOLA . Then check weather the PATH_CAMBOZOLA cage is filled with cambozola.jar. Then save the setting in ZM options .Then restart ZM .
      Best regards

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s