Events, images, and temp dirs - Apache2 Symlinks help needed
Hi there - i LOVE zoneminder.
I'm running 1.23.3 on Xubuntu Intrepid (installed via Synaptic package manager).
I'm using 5x Trendnet IP cameras, and everything is working except for one thing:
I'm not able to view created events (broken image link). Zoneminder will count them up,
but they aren't being written to the directory.
My Apache Zoneminder document path is
/usr/share/zoneminder.
The default package install put symlinks in for the "events images temp" dirs
to /var/cache/zoneminder, which weren't working. I changed owner+group permissions
from root/root to www-data/www-data (apache), and it still didn't work.
I changed the "events, images, temp" folder to /usr/share/zoneminder (web document dir)
with apache owner/ group permissions and it works.
My apache log read a line similar to "df - events - no such file or directory"
My problem has to be an Apache2 "Directory" follow symlinks directive, but i can't figure
which config file to set it in.
Output of "apache2ctl -v" shows
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf".
This file shows ServerRoot as "/etc/apache2",
which it is not. (should i change server root to /usr/share/?)
Here are the apache other configs files (referenced in apache2.conf)
# Include generic snippets of statements
Include /etc/apache2/conf.d/
Above houses zoneminder.conf, which reads this:
<Directory>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule>
DirectoryIndex index.php
</IfModule>
</Directory>
To me, this is the config that should tell apache to follow my symlinks.
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
The above dir houses a virtual host "000-default", which reads
((this web directory is setup as /var/www - houses the generic "IT WORKS" index.html))
<VirtualHost>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory>
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
So, i'm pretty sure i need my "Directory" follow symlinks option to be in the "root" config, which is
etc/apache2/apache2.conf
IDEALLY want my "events, images, temp" dirs on an external hard drive. I think once
my symlinks are being followed, i'll be in business.
Thanks again.
Apache 2 - Events directory symlinks issue
There should be a README.debian that is installed in /usr/share/doc/zoneminder with instructions to link a config file for apache. In this config file should be the proper directives to alias the ZM web pages and follow the symlinks.
What do you have configured for ZM_EVENT_PATH? it should be just "events".
What do you have configured for ZM_EVENT_PATH? it should be just "events".
Yup, the "events" folder is default
Listed as "events" ZM_DIR_EVENTS. i'll check that doc, thanks.
apache2 sure has a lot of config
apache2 sure has a lot of config