How to install Zoneminder 1.29.0 on Raspberry pi 3 with Raspbian 8.1 (Jessy)

First of all you will have to install Raspbian using Noobs on a class 10 sd card (16 GB or more) Pl refer this web site


Please check the available version of zoneminder in Raspbian software center .You can see the available version version is zoneminder 1.26 wich is out dated .Therefore we will have to add the Jessie backports to source list and then update in order to obtain latest stable zoneminder version for Raspbian.

Using the terminal

Add The Jessie backports

sudo gedit  /etc/apt/sources.list

Then add following line to the bottom of the file and save

deb jessie-backports main


There are signature errors can be found

To fix those errors run following on the terminal

gpg --keyserver --recv-key  8B48AD6246925553
gpg -a --export 8B48AD6246925553 | sudo apt-key add -
gpg --keyserver --recv-key  7638D0442B90D010
gpg -a --export 7638D0442B90D010 | sudo apt-key add -


Then run on the terminal

sudo apt-get update

Now if you check the software center you see the latest zoneminder version 1.29 on it .


Install PHP, and MySQL server. You will be prompted to set a MySQL password

sudo apt-get install php5 mysql-server php-pear php5-mysql php5-gd

Then install zoneminder 1.29 using the software center of Raspbian

Create Zoneminder database in MySQL

Run following on the terminal

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
sudo chmod 740 /etc/zm/zm.conf
sudo chown root:www-data /etc/zm/zm.conf
sudo systemctl enable zoneminder.service
sudo adduser www-data video

sudo a2enmod cgi
sudo a2enconf zoneminder
sudo a2enmod rewrite
sudo chown -R www-data:www-data /usr/share/zoneminder/
sudo systemctl enable zoneminder
sudo service zoneminder start

Adding  timezone to PHP
sudo gedit /etc/php5/apache2/php.ini

Edit 894 line to enter your time zone as follows and save the php.ini file

Your time zone can be get from here 

sudo service apache2 reload

Open Zoneminder http://localhost/zm/

Screenshot from 2016-11-23 21:29:42.png


ZM Console on Rasberry Pi 3


Adding a monitor for IP Camera


Adding a monitor for IP Camera


IP Camera view


1 .Zoneminder wiki

2. Zoneminder wiki


11 thoughts on “How to install Zoneminder 1.29.0 on Raspberry pi 3 with Raspbian 8.1 (Jessy)

  1. Thanks for showing how it´s done. 🙂 Can you tell me how high the load is when you turn on modect mode? Can you maybe hook up a cam that ist 1280 x 720 pixels for that? I´m wondering if I can use 5 of those cams with modect mode on raspberry pi 3.

    • Hi Christian
      Even without modect for 320x180pixels I have got load 5.15/Disk 30%. I think it may be difficult to cope with 5 IP cams ( 1280×720 pixels with modect) as Rapberry pi3 has a small RAM (1 GB ). You will also have to provide a better cooling facility to the processor if the load is high .

  2. Hi BK,

    I have followed the instructions but get a problem with installing ZoneMinder 1.29 from the app installer. Having updated the repository, I can see the new version (1.29) and click Apply / OK and the system just loops attempting to install and never exits. If I force exit from the installer, ZoneMinder has not been installed.

    Any ideas?

  3. When I follow the process, at the point where I enter the command:

    sudo a2enconf zoneminder

    It returns:

    ERROR: Conf zoneminder does not exist

    Did I miss something?

    • Hi Darwin
      Please check and verify weather the zoneminder version is 1.29 .If the zoneminder version is below 1.29 try the procedure in zonemineder wiki.
      Please create link for apache (paths can differ-go to the paths and see). On the terminal run sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf

    • Try this:

      cd /etc/apache2/conf-enabled
      rm zoneminder.conf
      ln -s ../conf-available/zoneminder.conf

      Apparently there is something to do with the Apache configuration
      I had the same error and those lines helped me

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