<?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=Tomm</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=Tomm"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Tomm"/>
	<updated>2026-05-03T17:04:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_18.04_64-bit_with_Zoneminder_1.32.x_the_easy_way&amp;diff=15457</id>
		<title>Ubuntu Server 18.04 64-bit with Zoneminder 1.32.x the easy way</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_18.04_64-bit_with_Zoneminder_1.32.x_the_easy_way&amp;diff=15457"/>
		<updated>2019-02-11T13:36:42Z</updated>

		<summary type="html">&lt;p&gt;Tomm: /* Things to check before installing Zoneminder on Bionic! */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
===Things to check before installing Zoneminder on Bionic!===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;We recommend you read the release notes to see what has changed in this version. The release notes can be found here: https://github.com/ZoneMinder/zoneminder/releases&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;There have been some reports of the install failing. We feel this is due to missing repositories in the sources.list. You can check this by running&lt;br /&gt;
&lt;br /&gt;
 nano /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
Look for the universe repositories of which there should be three, bionic universe, bionic-updates universe and bionic-security universe&lt;br /&gt;
&lt;br /&gt;
See: https://help.ubuntu.com/community/Repositories/CommandLine&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===Install Zoneminder on Ubuntu 18.04 with shell script===&lt;br /&gt;
&lt;br /&gt;
This will install Zoneminder by using a shell script with one basic command (how easy is that!).&lt;br /&gt;
&lt;br /&gt;
You will need a Ubuntu 18.04 install with LAMP (Apache, MySQL and PHP) installed desktop or server. As an alternate you may use Mariadb in lieu of MySQL&lt;br /&gt;
&lt;br /&gt;
Shell script file contents:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;This script installs Zoneminder 1.32.x on Ubuntu 18.04 AMD64 with LAMP (MySQL) installed...&lt;br /&gt;
 Press Enter to continue or Ctrl + c to quit&amp;quot; nothing&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;You must be logged in as root using sudo su ...&lt;br /&gt;
 Press Enter to continue or Ctrl + c to quit&amp;quot; nothing&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;Next we will add the PPA repository, install and configure the system to run Zoneminder. &lt;br /&gt;
 Press enter to continue&amp;quot; nothing&lt;br /&gt;
 apt install -y software-properties-common&lt;br /&gt;
 clear&lt;br /&gt;
 add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
 apt update&lt;br /&gt;
 clear&lt;br /&gt;
 awk &amp;#039;$0=&amp;quot;date.timezone = &amp;quot;$0&amp;#039; /etc/timezone &amp;gt;&amp;gt; /etc/php/7.2/apache2/php.ini&lt;br /&gt;
 clear&lt;br /&gt;
 apt install -y zoneminder&lt;br /&gt;
 systemctl enable zoneminder&lt;br /&gt;
 service zoneminder start&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;Install complete.Press enter to continue&amp;quot; nothing&lt;br /&gt;
 clear&lt;br /&gt;
&lt;br /&gt;
Copy the contents of the script, open a terminal and run:&lt;br /&gt;
&lt;br /&gt;
 nano zm-install&lt;br /&gt;
&lt;br /&gt;
Paste the contents of the script into Nano&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
 Ctrl + o&lt;br /&gt;
 Ctrl + x&lt;br /&gt;
&lt;br /&gt;
Next run:&lt;br /&gt;
&lt;br /&gt;
 chmod 755 zm-install&lt;br /&gt;
&lt;br /&gt;
Start the script by entering:&lt;br /&gt;
&lt;br /&gt;
 ./zm-install&lt;br /&gt;
&lt;br /&gt;
Follow the prompts. Things are pretty simple. The timezone will be detected from the OS and added to the php.ini.&lt;br /&gt;
&lt;br /&gt;
Good Luck! &lt;br /&gt;
&lt;br /&gt;
While this script worked for me I can&amp;#039;t be responsible if you loose data when you run this. It is intended for a new install not an upgrade.&lt;br /&gt;
&lt;br /&gt;
===Ubuntu 18.04 LEMP (NGNIX, Mariadb, PHP)===&lt;br /&gt;
&lt;br /&gt;
Thanks to &amp;quot;terdinglage&amp;quot; for the input to get this to work!&lt;br /&gt;
&lt;br /&gt;
Start with a basic Ubuntu 18.04 install. You can use a server or desktop install. Do not install LAMP!&lt;br /&gt;
&lt;br /&gt;
Become root&lt;br /&gt;
&lt;br /&gt;
 sudo su&lt;br /&gt;
&lt;br /&gt;
Install Ngnix, Mariadb and PHP components&lt;br /&gt;
&lt;br /&gt;
 apt install nginx mariadb-server php-fpm php-mysql fcgiwrap&lt;br /&gt;
&lt;br /&gt;
Secure the Mariadb server&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
Restart Mariadb&lt;br /&gt;
&lt;br /&gt;
 systemctl restart mysql&lt;br /&gt;
&lt;br /&gt;
Edit the php.ini file&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/fpm/php.ini&lt;br /&gt;
&lt;br /&gt;
Locate (Ctrl+w) cgi.fix_pathinfo=1 and change to&lt;br /&gt;
&lt;br /&gt;
 cgi.fix_pathinfo=0&lt;br /&gt;
&lt;br /&gt;
Remember to remove the leading ;&lt;br /&gt;
&lt;br /&gt;
Also fix date. 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&lt;br /&gt;
&lt;br /&gt;
 [Date]&lt;br /&gt;
 ; Defines the default timezone used by the date functions&lt;br /&gt;
 ; http://php.net/date.timezone&lt;br /&gt;
 date.timezone = America/New_York&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 php-fpm&lt;br /&gt;
&lt;br /&gt;
 systemctl restart php7.2-fpm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add Repository&lt;br /&gt;
&lt;br /&gt;
NOTE:You may need to run: &amp;quot;apt install software-properties-common&amp;quot; if you did the minimal net install of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
 add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder&lt;br /&gt;
&lt;br /&gt;
 apt install zoneminder&lt;br /&gt;
&lt;br /&gt;
Create a new user if you plan to use local (USB or capture card) cameras.&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Fix Permissions&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Change the ZM_PATH_ZMS in the 01-system-paths.conf file to /cgi-bin/nph-zms by dropping the /zm/ &lt;br /&gt;
&lt;br /&gt;
 nano /etc/zm/conf.d/01-system-paths.conf&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;
Enable and start Zoneminder&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder&lt;br /&gt;
&lt;br /&gt;
 service zoneminder start&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit the Ngnix default configuration. &lt;br /&gt;
&lt;br /&gt;
 nano /etc/nginx/sites-available/default&lt;br /&gt;
&lt;br /&gt;
Locate the line &amp;quot;index index.html index.htm index.nginx-debian.html;&amp;quot; and add index.php&lt;br /&gt;
&lt;br /&gt;
 index index.php index.html index.htm index.nginx-debian.html;&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;server&amp;quot; section after listen [::] :80 default_Server; add&lt;br /&gt;
&lt;br /&gt;
 include /etc/nginx/zoneminder.conf;&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;
Create a Zoneminder conf file&lt;br /&gt;
&lt;br /&gt;
 nano /etc/nginx/zoneminder.conf&lt;br /&gt;
&lt;br /&gt;
Enter the following into the zoneminder.conf file (This file was improved by databoy2k)&lt;br /&gt;
&lt;br /&gt;
 location /cgi-bin {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
         alias /usr/lib/zoneminder/cgi-bin;     &lt;br /&gt;
         include fastcgi_params;&lt;br /&gt;
         fastcgi_param SCRIPT_FILENAME $request_filename;&lt;br /&gt;
         fastcgi_param HTTP_PROXY &amp;quot;&amp;quot;;&lt;br /&gt;
         fastcgi_pass unix:/var/run/fcgiwrap.socket;&lt;br /&gt;
 }&lt;br /&gt;
 location /zm/cache {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
         alias /var/cache/zoneminder/cache;&lt;br /&gt;
 }&lt;br /&gt;
 location ~ /zm/api/(css|img|ico) {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
         rewrite ^/zm/api(.+)$ /api/app/webroot/$1 break;&lt;br /&gt;
         try_files $uri $uri/ =404;&lt;br /&gt;
 }&lt;br /&gt;
 location /zm {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
         alias /usr/share/zoneminder/www;&lt;br /&gt;
         try_files $uri $uri/ /index.php?$args =404;    &lt;br /&gt;
         location /zm/api {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
                 rewrite ^/zm/api(.+)$ /zm/api/app/webroot/index.php?p=$1 last;&lt;br /&gt;
          }&lt;br /&gt;
                 location ~ \.php$ {&lt;br /&gt;
                 auth_basic off;&lt;br /&gt;
                         include fastcgi_params;&lt;br /&gt;
                         fastcgi_param SCRIPT_FILENAME $request_filename;&lt;br /&gt;
                         fastcgi_param HTTP_PROXY &amp;quot;&amp;quot;;&lt;br /&gt;
                 fastcgi_index index.php;&lt;br /&gt;
                         fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;&lt;br /&gt;
         }&lt;br /&gt;
     }&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 Ngnix&lt;br /&gt;
&lt;br /&gt;
 service nginx restart&lt;br /&gt;
&lt;br /&gt;
Note: If Nginx gives you an error on restart go back one step and re-enter include /etc/ngnix/zoneminder.conf;&lt;br /&gt;
&lt;br /&gt;
Note: 29JUL18 Thanks to Tiver for this suggestion that seems to work with the fcgiwrap issue.&lt;br /&gt;
&lt;br /&gt;
If it does not exist create &lt;br /&gt;
&lt;br /&gt;
 nano /etc/default/fcgiwrap&lt;br /&gt;
&lt;br /&gt;
and insert (with the number of children -c equal to the number of cameras)&lt;br /&gt;
&lt;br /&gt;
 DAEMON_OPTS=-c 10&lt;br /&gt;
&lt;br /&gt;
then restart the fcgiwrap service.&lt;br /&gt;
&lt;br /&gt;
 systemctl restart fcgiwrap&lt;/div&gt;</summary>
		<author><name>Tomm</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_18.04_64-bit_with_Zoneminder_1.32.x_the_easy_way&amp;diff=15456</id>
		<title>Ubuntu Server 18.04 64-bit with Zoneminder 1.32.x the easy way</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Ubuntu_Server_18.04_64-bit_with_Zoneminder_1.32.x_the_easy_way&amp;diff=15456"/>
		<updated>2019-02-11T13:34:41Z</updated>

		<summary type="html">&lt;p&gt;Tomm: /* Things to check before installing Zoneminder on Bionic! */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
===Things to check before installing Zoneminder on Bionic!===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;We recommend you read the release notes to see what has changed in this version. The release notes can be found here: https://github.com/ZoneMinder/zoneminder/releases&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;There have been some reports of the install failing. We feel this is due to missing repositories in the sources.list. You can check this by running&lt;br /&gt;
&lt;br /&gt;
 nano /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
Look for the universe repositorys of which there should be three, bionic universe, bionic-updates universe and bionic-security universe&lt;br /&gt;
&lt;br /&gt;
See: https://help.ubuntu.com/community/Repositories/CommandLine&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===Install Zoneminder on Ubuntu 18.04 with shell script===&lt;br /&gt;
&lt;br /&gt;
This will install Zoneminder by using a shell script with one basic command (how easy is that!).&lt;br /&gt;
&lt;br /&gt;
You will need a Ubuntu 18.04 install with LAMP (Apache, MySQL and PHP) installed desktop or server. As an alternate you may use Mariadb in lieu of MySQL&lt;br /&gt;
&lt;br /&gt;
Shell script file contents:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;This script installs Zoneminder 1.32.x on Ubuntu 18.04 AMD64 with LAMP (MySQL) installed...&lt;br /&gt;
 Press Enter to continue or Ctrl + c to quit&amp;quot; nothing&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;You must be logged in as root using sudo su ...&lt;br /&gt;
 Press Enter to continue or Ctrl + c to quit&amp;quot; nothing&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;Next we will add the PPA repository, install and configure the system to run Zoneminder. &lt;br /&gt;
 Press enter to continue&amp;quot; nothing&lt;br /&gt;
 apt install -y software-properties-common&lt;br /&gt;
 clear&lt;br /&gt;
 add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
 apt update&lt;br /&gt;
 clear&lt;br /&gt;
 awk &amp;#039;$0=&amp;quot;date.timezone = &amp;quot;$0&amp;#039; /etc/timezone &amp;gt;&amp;gt; /etc/php/7.2/apache2/php.ini&lt;br /&gt;
 clear&lt;br /&gt;
 apt install -y zoneminder&lt;br /&gt;
 systemctl enable zoneminder&lt;br /&gt;
 service zoneminder start&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
 a2enconf zoneminder&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
 service apache2 reload&lt;br /&gt;
 clear&lt;br /&gt;
 read -p &amp;quot;Install complete.Press enter to continue&amp;quot; nothing&lt;br /&gt;
 clear&lt;br /&gt;
&lt;br /&gt;
Copy the contents of the script, open a terminal and run:&lt;br /&gt;
&lt;br /&gt;
 nano zm-install&lt;br /&gt;
&lt;br /&gt;
Paste the contents of the script into Nano&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
 Ctrl + o&lt;br /&gt;
 Ctrl + x&lt;br /&gt;
&lt;br /&gt;
Next run:&lt;br /&gt;
&lt;br /&gt;
 chmod 755 zm-install&lt;br /&gt;
&lt;br /&gt;
Start the script by entering:&lt;br /&gt;
&lt;br /&gt;
 ./zm-install&lt;br /&gt;
&lt;br /&gt;
Follow the prompts. Things are pretty simple. The timezone will be detected from the OS and added to the php.ini.&lt;br /&gt;
&lt;br /&gt;
Good Luck! &lt;br /&gt;
&lt;br /&gt;
While this script worked for me I can&amp;#039;t be responsible if you loose data when you run this. It is intended for a new install not an upgrade.&lt;br /&gt;
&lt;br /&gt;
===Ubuntu 18.04 LEMP (NGNIX, Mariadb, PHP)===&lt;br /&gt;
&lt;br /&gt;
Thanks to &amp;quot;terdinglage&amp;quot; for the input to get this to work!&lt;br /&gt;
&lt;br /&gt;
Start with a basic Ubuntu 18.04 install. You can use a server or desktop install. Do not install LAMP!&lt;br /&gt;
&lt;br /&gt;
Become root&lt;br /&gt;
&lt;br /&gt;
 sudo su&lt;br /&gt;
&lt;br /&gt;
Install Ngnix, Mariadb and PHP components&lt;br /&gt;
&lt;br /&gt;
 apt install nginx mariadb-server php-fpm php-mysql fcgiwrap&lt;br /&gt;
&lt;br /&gt;
Secure the Mariadb server&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
Restart Mariadb&lt;br /&gt;
&lt;br /&gt;
 systemctl restart mysql&lt;br /&gt;
&lt;br /&gt;
Edit the php.ini file&lt;br /&gt;
&lt;br /&gt;
 nano /etc/php/7.2/fpm/php.ini&lt;br /&gt;
&lt;br /&gt;
Locate (Ctrl+w) cgi.fix_pathinfo=1 and change to&lt;br /&gt;
&lt;br /&gt;
 cgi.fix_pathinfo=0&lt;br /&gt;
&lt;br /&gt;
Remember to remove the leading ;&lt;br /&gt;
&lt;br /&gt;
Also fix date. 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&lt;br /&gt;
&lt;br /&gt;
 [Date]&lt;br /&gt;
 ; Defines the default timezone used by the date functions&lt;br /&gt;
 ; http://php.net/date.timezone&lt;br /&gt;
 date.timezone = America/New_York&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 php-fpm&lt;br /&gt;
&lt;br /&gt;
 systemctl restart php7.2-fpm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add Repository&lt;br /&gt;
&lt;br /&gt;
NOTE:You may need to run: &amp;quot;apt install software-properties-common&amp;quot; if you did the minimal net install of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
 add-apt-repository ppa:iconnor/zoneminder-1.32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install Zoneminder&lt;br /&gt;
&lt;br /&gt;
 apt install zoneminder&lt;br /&gt;
&lt;br /&gt;
Create a new user if you plan to use local (USB or capture card) cameras.&lt;br /&gt;
&lt;br /&gt;
 adduser www-data video&lt;br /&gt;
&lt;br /&gt;
Fix Permissions&lt;br /&gt;
&lt;br /&gt;
 chown -R www-data:www-data /usr/share/zoneminder/&lt;br /&gt;
&lt;br /&gt;
Change the ZM_PATH_ZMS in the 01-system-paths.conf file to /cgi-bin/nph-zms by dropping the /zm/ &lt;br /&gt;
&lt;br /&gt;
 nano /etc/zm/conf.d/01-system-paths.conf&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;
Enable and start Zoneminder&lt;br /&gt;
&lt;br /&gt;
 systemctl enable zoneminder&lt;br /&gt;
&lt;br /&gt;
 service zoneminder start&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Edit the Ngnix default configuration. &lt;br /&gt;
&lt;br /&gt;
 nano /etc/nginx/sites-available/default&lt;br /&gt;
&lt;br /&gt;
Locate the line &amp;quot;index index.html index.htm index.nginx-debian.html;&amp;quot; and add index.php&lt;br /&gt;
&lt;br /&gt;
 index index.php index.html index.htm index.nginx-debian.html;&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;server&amp;quot; section after listen [::] :80 default_Server; add&lt;br /&gt;
&lt;br /&gt;
 include /etc/nginx/zoneminder.conf;&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;
Create a Zoneminder conf file&lt;br /&gt;
&lt;br /&gt;
 nano /etc/nginx/zoneminder.conf&lt;br /&gt;
&lt;br /&gt;
Enter the following into the zoneminder.conf file (This file was improved by databoy2k)&lt;br /&gt;
&lt;br /&gt;
 location /cgi-bin {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
         alias /usr/lib/zoneminder/cgi-bin;     &lt;br /&gt;
         include fastcgi_params;&lt;br /&gt;
         fastcgi_param SCRIPT_FILENAME $request_filename;&lt;br /&gt;
         fastcgi_param HTTP_PROXY &amp;quot;&amp;quot;;&lt;br /&gt;
         fastcgi_pass unix:/var/run/fcgiwrap.socket;&lt;br /&gt;
 }&lt;br /&gt;
 location /zm/cache {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
         alias /var/cache/zoneminder/cache;&lt;br /&gt;
 }&lt;br /&gt;
 location ~ /zm/api/(css|img|ico) {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
         rewrite ^/zm/api(.+)$ /api/app/webroot/$1 break;&lt;br /&gt;
         try_files $uri $uri/ =404;&lt;br /&gt;
 }&lt;br /&gt;
 location /zm {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
         alias /usr/share/zoneminder/www;&lt;br /&gt;
         try_files $uri $uri/ /index.php?$args =404;    &lt;br /&gt;
         location /zm/api {&lt;br /&gt;
 auth_basic off;&lt;br /&gt;
                 rewrite ^/zm/api(.+)$ /zm/api/app/webroot/index.php?p=$1 last;&lt;br /&gt;
          }&lt;br /&gt;
                 location ~ \.php$ {&lt;br /&gt;
                 auth_basic off;&lt;br /&gt;
                         include fastcgi_params;&lt;br /&gt;
                         fastcgi_param SCRIPT_FILENAME $request_filename;&lt;br /&gt;
                         fastcgi_param HTTP_PROXY &amp;quot;&amp;quot;;&lt;br /&gt;
                 fastcgi_index index.php;&lt;br /&gt;
                         fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;&lt;br /&gt;
         }&lt;br /&gt;
     }&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 Ngnix&lt;br /&gt;
&lt;br /&gt;
 service nginx restart&lt;br /&gt;
&lt;br /&gt;
Note: If Nginx gives you an error on restart go back one step and re-enter include /etc/ngnix/zoneminder.conf;&lt;br /&gt;
&lt;br /&gt;
Note: 29JUL18 Thanks to Tiver for this suggestion that seems to work with the fcgiwrap issue.&lt;br /&gt;
&lt;br /&gt;
If it does not exist create &lt;br /&gt;
&lt;br /&gt;
 nano /etc/default/fcgiwrap&lt;br /&gt;
&lt;br /&gt;
and insert (with the number of children -c equal to the number of cameras)&lt;br /&gt;
&lt;br /&gt;
 DAEMON_OPTS=-c 10&lt;br /&gt;
&lt;br /&gt;
then restart the fcgiwrap service.&lt;br /&gt;
&lt;br /&gt;
 systemctl restart fcgiwrap&lt;/div&gt;</summary>
		<author><name>Tomm</name></author>
	</entry>
</feed>