Ubuntu Server 17.10 64-bit with Zoneminder 1.30.4 the easy way
This is an interim procedure to install Zoneminder 1.30.4 on Ubuntu 17.10
There are some issues with the Zoneminder package provided with Ubuntu 17.10. This is an alternate install procedure that uses the install package from the iconnor PPA for Zesty (Ubuntu 17.04)
This assumes you have installed Ubuntu 17.10 with LAMP.
You will need to make a settings change to MySQL as follows:
This removes the current symbolic link
rm /etc/mysql/my.cnf
This moves the MYSQL Configuration file
cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
To change MySQL settings:
nano /etc/mysql/my.cnf
In the [mysqld] section add the following
sql_mode = NO_ENGINE_SUBSTITUTION
Ctrl+o Enter to save
CTRL+x to exit
Restart MySQL
systemctl restart mysql
Download the Zoneminder install package from the iconnor PPA. Note this is for the 64 bit version.
wget https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder/+build/12557069/+files/zoneminder_1.30.4-zesty1_amd64.deb
Install Zoneminder - Note: Change (user) to the user in the home directory on your system
apt install vlc-plugin-base /home/(user)/zoneminder_1.30.4-zesty1_amd64.deb
Create a new user
adduser www-data video
Enable CGI, Zoneminder and rewrite configuration in Apache.
a2enmod cgi
a2enconf zoneminder
a2enmod rewrite
Fix Permissions
chown -R www-data:www-data /usr/share/zoneminder/
Enable and start Zoneminder
systemctl enable zoneminder
service zoneminder start
Add timezone to PHP
nano /etc/php/7.1/apache2/php.ini
Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone. Make sure to remove the ; from the front of date.timezone
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = America/New_York
Ctrl+o Enter to save
CTRL+x to exit
Restart Apache
service apache2 reload
IMPORTANT FINAL STEP: Open Zoneminder in a web browser (http://server-ip/zm). Click on Options - Paths and change PATH_ZMS to /zm/cgi-bin/nph-zms