Ubuntu 22.04 (Jammy) These instructions are for a brand new ubuntu 22.04 LTS system which does not have ZM installed.
Step 1: Update system sudo apt-get update && sudo apt upgrade -y
Step 2: Update repositories (Optional) ZoneMinder is part of the current standard Ubuntu repository, but sometimes the official repository can lag behind. To find out check our releases page for the latest release. Alternatively, the ZoneMinder project team maintains a PPA, which is updated immediately following a new release of ZoneMinder. To use this repository instead of the official Ubuntu repository, enter the following commands: sudo apt install -y software-properties-common sudo add-apt-repository ppa:iconnor/zoneminder-1.36 sudo apt update
Step 3: Install Zoneminder sudo apt install -y zoneminder
Step 4: Configure Apache correctly: sudo a2enmod rewrite sudo a2enconf zoneminder sudo systemctl restart apache2
Step 5: Enable and start zoneminder sudo systemctl enable zoneminder sudo systemctl start zoneminder
Step 6: Open Zoneminder Open up a browser and go to:http://hostname_or_ip/zm
to open the ZoneMinder Console.
Ubuntu 18.04 (Bionic) These instructions are for a brand new ubuntu 18.04 system which does not have ZM installed. It is recommended that you use an Ubuntu Server install and select the LAMP option during install to install Apache, MySQL and PHP. If you failed to do this you can achieve the same result by running: sudo apt-get install tasksel sudo tasksel install lamp-server Installing LAMP is not ZoneMinder specific so you will find plenty of resources to guide you with a quick search.
Step 1: Either run commands in this install using sudo or use the below to become root sudo -i
Step 2: Update Repos
Latest Release ZoneMinder is now part of the current standard Ubuntu repository, but sometimes the official repository can lag behind. To find out check our releases page for the latest release. Alternatively, the ZoneMinder project team maintains a PPA, which is updated immediately following a new release of ZoneMinder. To use this repository instead of the official Ubuntu repository, enter the following from the command line: add-apt-repository ppa:iconnor/zoneminder-1.36 Update repo and upgrade. apt-get update apt-get dist-upgrade
Step 3: Configure MySQL
Certain new defaults in MySQL 5.7 cause some issues with ZoneMinder < 1.32.0, the workaround is to modify the sql_mode setting of MySQL. Please note that these changes are NOT required for ZoneMinder 1.32+ and some people have reported them causing problems in 1.32.0. To better manage the MySQL server it is recommended to copy the sample config file and replace the default m y.cnf symbolic link.rm /etc/mysql/my.cnf (this removes the current symbolic link) cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf |
Note
The MySQL default configuration file
(/etc/mysql/mysql.cnf) is read through
several symbolic links beginning with
/etc/mysql/my.cnf as follows:
/etc/mysql/my.cnf -> /etc/alternatives/my.cnf
/etc/alternatives/my.cnf -> /etc/mysql/mysql.cnf
/etc/mysql/mysql.cnf is a basic file
|
http://localhost/zm/api/host/getVersion.json
- should give you “Unauthorized” along with a lot more text