https://wiki.zoneminder.com/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.30.0_the_easy_way # when already have mysql do: sudo systemctl start mysql sudo apt-get install zoneminder sudo chmod +r /etc/zm/zm.conf sudo chmod g+rw /etc/php/7.0/apache2/php.ini # edit /etc/php/7.0/apache2/php.ini date.timezone = Europe/Bucharest # create mysql user zmuser/zmpass and mysql schema zm # grant all privileges for zm schema to zmuser mysql -u zmuser -p < /usr/share/zoneminder/db/zm_create.sql sudo a2enconf zoneminder.conf sudo a2enmod cgi sudo systemctl restart apache2 # access http://127.0.0.1/zm/