thank you very much for the fast reply.
I tried it out yesterday, but seem like I can not get it to work.
I think some of my installs of the apache / zm / mysql went FUBAR:
I can not find a apache file containing
<VirtualHost *:80>
I tried change the lines you mentioned in zoneminder.conf under
/etc/apache2/conf-available
I also added the
<VirtualHost *:80>
ServerAdmin webmaster@localhost
Gives me an error the added line , when trying to restart apache service:
Aug 13 22:26:06 ThinkCentre-M91p apache2[8193]: apache2: Syntax error on line 224 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/conf-enabled/zoneminder.conf: /etc/apache2/conf-enabled/zone
Aug 13 22:26:06 ThinkCentre-M91p apache2[8193]: Action 'configtest' failed.
so i added a # to the first 2 lines:
also when active without the #, I do not know if i need to change the
ServerAdmin webmaster@localhost
to my setup ?
(i also tried to change the Alias line to "/var/zm/cache"
this is zoneminder.conf :
Code: Select all
#<VirtualHost *:80>
#ServerAdmin webmaster@localhost
# Order matters. This alias must come first.
#Alias /var/cache/zoneminder/cache "@ZM_CACHEDIR@"
#Alias /var/zm/cache "@ZM_CACHEDIR@"
Alias /zoneminder/cache "@ZM_CACHEDIR@"
<Directory "@ZM_CACHEDIR@">
Options -Indexes +FollowSymLinks
AllowOverride None
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
ScriptAlias /zm/cgi-bin/ /usr/lib/zoneminder/cgi-bin/
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
Options -Indexes +FollowSymLinks
AllowOverride All
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
Owner of the /var/cache/zoneminder/cache folder is
www-data
and I made a
Code: Select all
sudo chmod 777 -R /var/cache/zoneminder
to give full access to the folder
I do not have a /var/zm/cache folder.
I do not have a ZM folder under /var
the closest I have is thes files under
/var/cache/zoneminder:
Code: Select all
/var/cache/zoneminder/cache
/var/cache/zoneminder/events
/var/cache/zoneminder/images
/var/cache/zoneminder/temp
For your information:
under /etc/apache2/conf.d I have a link called zoneminder.conf that points to /etc/zm/apache.conf
but /etc/zm/apache.conf do not exist
I only have under /etc/zm/conf.d these files:
/etc/zm/conf.d/01-system-paths.conf
/etc/zm/conf.d/02-multiserver.conf
/etc/zm/conf.d/README
/etc/zm/conf.d/zmcustom.conf
zmcustom.conf looks like this:
Code: Select all
# These values were autogenerated by zmupdate.pl
# You may edit these values. ZoneMinder will not overwrite them.
#
ZM_PATH_ZMS=/cgi-bin/nph-zms
sorry if this is very confusing