<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Httplov3craft</id>
	<title>ZoneMinder Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Httplov3craft"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Httplov3craft"/>
	<updated>2026-04-20T05:12:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Debian_12_Bookworm_with_Zoneminder_1.36.x_and_1.37.x&amp;diff=15192</id>
		<title>Debian 12 Bookworm with Zoneminder 1.36.x and 1.37.x</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Debian_12_Bookworm_with_Zoneminder_1.36.x_and_1.37.x&amp;diff=15192"/>
		<updated>2018-06-26T14:40:45Z</updated>

		<summary type="html">&lt;p&gt;Httplov3craft: Simplify timezone declaration in php.ini matching the system default as recorded in /etc/timezone.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
===Debian 9 with Zoneminder 1.30.4===&lt;br /&gt;
08OCT17 - This procedure has been verified with the Debian 9.2.0.  &lt;br /&gt;
&lt;br /&gt;
Note: 23JUN17 - I was able to get the libvlc source to work! I have added the install for vlc-plugin-base which allows the Zoneminder install to complete without errors. However, I have been getting some console errors from VLC. It may be my old camera and you may have good results with libvlc but I consider ffmpeg better to use.&lt;br /&gt;
&lt;br /&gt;
I used Debian 9 net install CD (https://www.debian.org/CD/netinst/). &lt;br /&gt;
&lt;br /&gt;
Install only: web server, SSH server and standard system utilities from tasksel&lt;br /&gt;
&lt;br /&gt;
Login and become root (su root) or prepend sudo to the following commands&lt;br /&gt;
&lt;br /&gt;
If needed check to make sure you are up to date&lt;br /&gt;
&lt;br /&gt;
 apt update&lt;br /&gt;
 apt upgrade&lt;br /&gt;
 apt dist-upgrade&lt;br /&gt;
&lt;br /&gt;
===Install additional LAMP components Mariadb server (recommended)===&lt;br /&gt;
&lt;br /&gt;
 apt install php mariadb-server php-mysql apache2-mod-php7.0&lt;br /&gt;
&lt;br /&gt;
Secure Mariadb, create root password et. al.&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
NOTE:The MySQL/MariaDB configuration file is located at: /etc/mysql/mysql.conf.d/mysqld.cnf To better manage the MariaDB server I recommend you move the config file and replace the default my.cnf symbolic link (this also works for MySQL 5.6).&lt;br /&gt;
&lt;br /&gt;
 rm /etc/mysql/my.cnf  &lt;br /&gt;
&lt;br /&gt;
 cp /etc/mysql/mariadb.conf.d/50-server.cnf /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The following change to Mariadb settings is optional but is included if you have problems logging into Zoneminder&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
 character-set-server = latin1&lt;br /&gt;
 collation-server = latin1_swedish_ci&lt;br /&gt;
&lt;br /&gt;
Note: The above settings are actually the Mariadb default. Changing back to default is necessary to avoid errors when logging into Zoneminder. This was added on 01APR17 but is not an April Fool! It may be necessary to align these settings with your regional language.&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart Mariadb&lt;br /&gt;
&lt;br /&gt;
 service mariadb restart&lt;br /&gt;
&lt;br /&gt;
===Install Zoneminder===&lt;br /&gt;
&lt;br /&gt;
Add the Deb Multimedia repository. (instructions at: https://deb-multimedia.org/)&lt;br /&gt;
&lt;br /&gt;
Edit sources.list&lt;br /&gt;
&lt;br /&gt;
 nano /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
Add to the end of the file:&lt;br /&gt;
&lt;br /&gt;
 deb http://www.deb-multimedia.org stretch main non-free&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit &lt;br /&gt;
&lt;br /&gt;
After you have added the necessary line in /etc/apt/sources.list the first package to install is deb-multimedia-keyring.&lt;br /&gt;
&lt;br /&gt;
 apt update&lt;br /&gt;
 apt install deb-multimedia-keyring&lt;br /&gt;
&lt;br /&gt;
If apt-get can not find the new key, do that :&lt;br /&gt;
&lt;br /&gt;
 wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2016.8.1_all.deb&lt;br /&gt;
 dpkg -i deb-multimedia-keyring_2016.8.1_all.deb&lt;br /&gt;
&lt;br /&gt;
Update packages list:&lt;br /&gt;
&lt;br /&gt;
 apt update&lt;br /&gt;
 apt upgrade&lt;br /&gt;
 apt dist-upgrade&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder&lt;br /&gt;
&lt;br /&gt;
 apt install zoneminder vlc-plugin-base php7.0-gd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set permissions of /etc/zm/zm.conf to root:www-data 740&lt;br /&gt;
&lt;br /&gt;
 chmod 740 /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
 chown root:www-data /etc/zm/zm.conf&lt;br /&gt;
&lt;br /&gt;
Enable Zoneminder service to start at boot&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Add www-data to the sudo group (to enable use of local video devices)&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Start Zoneminder&lt;br /&gt;
&lt;br /&gt;
 systemctl start zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Check to see that Zoneminder is running&lt;br /&gt;
&lt;br /&gt;
 systemctl status zoneminder.service&lt;br /&gt;
&lt;br /&gt;
Enable CGI and Zoneminder configuration in Apache.&lt;br /&gt;
&lt;br /&gt;
 a2enmod cgi&lt;br /&gt;
&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
&lt;br /&gt;
Add timezone to PHP&lt;br /&gt;
&lt;br /&gt;
 sed -i &amp;quot;s/;date.timezone =/date.timezone = $(sed &amp;#039;s/\//\\\//&amp;#039; /etc/timezone)/g&amp;quot; /etc/php/7.0/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Change permissions in /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&lt;br /&gt;
 service apache2 restart&lt;br /&gt;
&lt;br /&gt;
Open Zoneminder in a web browser (http://server-ip/zm).&lt;br /&gt;
&lt;br /&gt;
10OCT17 - An issue with the /tmp/zm directory has been reported. Debian uses private tmp folders so even though you can see the files &amp;amp; folders, zoneminder cannot because it is running under a different user account.&lt;br /&gt;
&lt;br /&gt;
Go to Options -&amp;gt; Paths and then inspect each PATH_XXX variable. If it is set to &amp;quot;/tmp/zm&amp;quot;, change it to &amp;quot;/dev/shm&amp;quot;. Don&amp;#039;t forget to restart zoneminder.&lt;br /&gt;
&lt;br /&gt;
===Alternate install MySQL Server===&lt;br /&gt;
Note: Install of MySQL was not tested with the Debian 9.0.0 release but should work based on past experience&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 apt install php default-mysql-server php-mysql apache2-mod-php7.0&lt;br /&gt;
&lt;br /&gt;
Make a change to MySQL settings: (Note: Your my.cnf may be in another location)&lt;br /&gt;
&lt;br /&gt;
 nano /etc/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
In the [mysqld] section add the following&lt;br /&gt;
&lt;br /&gt;
 sql_mode = NO_ENGINE_SUBSTITUTION&lt;br /&gt;
&lt;br /&gt;
Note: if you are installing on an existing database server you can use the following as an alternate to &amp;#039;sql_mode = NO_ENGINE_SUBSTITUTION&amp;#039; (Thanks to &amp;quot;bodom&amp;quot; for this alternate):&lt;br /&gt;
&lt;br /&gt;
 init_connect = &amp;#039;SET @@sql_mode = CASE CURRENT_USER() WHEN \&amp;#039;zmuser@localhost\&amp;#039; THEN \&amp;#039;NO_ENGINE_SUBSTITUTION\&amp;#039; ELSE @@sql_mode END;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Ctrl+o Enter to save&lt;br /&gt;
&lt;br /&gt;
CTRL+x to exit&lt;br /&gt;
&lt;br /&gt;
Restart MySQL&lt;br /&gt;
&lt;br /&gt;
 systemctl restart mysql&lt;br /&gt;
&lt;br /&gt;
Continue with Zoneminder install https://wiki.zoneminder.com/Debian_9_64-bit_with_Zoneminder_1.30.4_the_Easy_Way#Install_Zoneminder&lt;/div&gt;</summary>
		<author><name>Httplov3craft</name></author>
	</entry>
</feed>