Difference between revisions of "Talk:Zoneminder(HOW TO)"

From SME Server
Jump to navigationJump to search
(Some unsorted notes on Apache config)
 
m (Unnilennium moved page Talk:Zoneminder to Talk:Zoneminder(HOW TO) without leaving a redirect)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
Apache config:
+
=Apache config:=
  
Alias /zm "/usr/share/zoneminder/www"
+
Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
+
<Directory "/usr/share/zoneminder/www">
 
     SSLRequireSSL
 
     SSLRequireSSL
 
     Options -Indexes MultiViews FollowSymLinks
 
     Options -Indexes MultiViews FollowSymLinks
Line 10: Line 10:
 
     AuthBasicProvider external
 
     AuthBasicProvider external
 
     Allow from all
 
     Allow from all
</Directory>
+
</Directory>
 
+
<Directory "/usr/libexec/zoneminder/cgi-bin">
+
ScriptAlias /zm/cgi-bin /usr/libexec/zoneminder/cgi-bin
 
+
<Directory "/usr/libexec/zoneminder/cgi-bin">
 
     SSLRequireSSL
 
     SSLRequireSSL
 
     AddHandler cgi-script cgi pl
 
     AddHandler cgi-script cgi pl
Line 20: Line 20:
 
     Order allow,deny
 
     Order allow,deny
 
     Allow from all
 
     Allow from all
</Directory>
+
</Directory>
 +
 
 +
=Various notes=
 +
Adding 'sleep 10' command
 +
http://stackoverflow.com/questions/16214828/sed-how-to-add-new-line-after-string-match-2-lines
 +
 
 +
Increase MySQL max_connections in /etc/mysql/my.cnf
 +
# Increase the maximum number of connections
 +
max_connections = 500
 +
Service mysqld restart

Latest revision as of 06:29, 13 March 2018

Apache config:

Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
   SSLRequireSSL
   Options -Indexes MultiViews FollowSymLinks
   AllowOverride All
   Order allow,deny
   AddType application/x-httpd-php .php
   AuthBasicProvider external
   Allow from all
</Directory>

ScriptAlias /zm/cgi-bin /usr/libexec/zoneminder/cgi-bin
<Directory "/usr/libexec/zoneminder/cgi-bin">
   SSLRequireSSL
   AddHandler cgi-script cgi pl
   AllowOverride All
   Options ExecCGI FollowSymLinks
   Order allow,deny
   Allow from all
</Directory>

Various notes

Adding 'sleep 10' command

http://stackoverflow.com/questions/16214828/sed-how-to-add-new-line-after-string-match-2-lines

Increase MySQL max_connections in /etc/mysql/my.cnf

# Increase the maximum number of connections
max_connections = 500

Service mysqld restart