ZM on Ubuntu Server --- Different Web Directory
Posted: Fri Jun 06, 2008 3:35 am
Greetings,
Before one of my drives crashed, I had ZM 1.22 installed with 7 Axis IP cameras working well on a Fedora 5 machine. Now I am trying to use Ubuntu Server 8.04 with ZM 1.23.3. However, I want to change the location of the web directory to /web instead of /var/www which is what defaults after a Ububtu server install.
I followed the instructions on http://www.howtoforge.com/video_surveil ... der_ubuntu
Then I did the following:
- Moved zoneminders web directory to /web/zm from /var/www
- Created link from /var/www -> /web
- Edit the /etc/zm/apache.conf to reflect the directory change as well.
So /etc/zm/apache.conf looks like this:
and the paths in zm.conf are
- Removed the links to image, temp, event directories and created real directories with the same name instead.
- changed the cgi-bin link to /usr/lib/cgi-bin
I also updated apaches sites-available with a new zm site pointing to
Now when I add a monitor in zm, the ip shows in orange. I click to see the still images from the camera, there is no image. Looking at apache's error log, I find the /var/www/favicon.ico file does not exist error. It should be /var/www/zm/favicon.ico
What am I missing, what other files do I need to change?
Thank you for all your help.
Amer[/code]
PS.
I just realized that when I delete a monitor I get the following warnings:
Before one of my drives crashed, I had ZM 1.22 installed with 7 Axis IP cameras working well on a Fedora 5 machine. Now I am trying to use Ubuntu Server 8.04 with ZM 1.23.3. However, I want to change the location of the web directory to /web instead of /var/www which is what defaults after a Ububtu server install.
I followed the instructions on http://www.howtoforge.com/video_surveil ... der_ubuntu
Then I did the following:
- Moved zoneminders web directory to /web/zm from /var/www
- Created link from /var/www -> /web
- Edit the /etc/zm/apache.conf to reflect the directory change as well.
So /etc/zm/apache.conf looks like this:
Code: Select all
Alias /zm /var/www/zm
<Directory /var/www/zm>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
Code: Select all
# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/etc/zm
# Path to ZoneMinder web files
ZM_PATH_WEB=/var/www/zm
# Path to ZoneMinder cgi files
ZM_PATH_CGI=/usr/lib/cgi-bin
- changed the cgi-bin link to /usr/lib/cgi-bin
I also updated apaches sites-available with a new zm site pointing to
Now when I add a monitor in zm, the ip shows in orange. I click to see the still images from the camera, there is no image. Looking at apache's error log, I find the /var/www/favicon.ico file does not exist error. It should be /var/www/zm/favicon.ico
What am I missing, what other files do I need to change?
Thank you for all your help.
Amer[/code]
PS.
I just realized that when I delete a monitor I get the following warnings:
and when I try to restart ZM I getWarning: unlink(events/Register) [function.unlink]: No such file or directory in /web/zm/zm_actions.php on line 1222
Warning: Cannot modify header information - headers already sent by (output started at /web/zm/zm_actions.php:1222) in /web/zm/zm_funcs.php on line 90
Warning: Cannot modify header information - headers already sent by (output started at /web/zm/zm_actions.php:1222) in /web/zm/zm_funcs.php on line 91
Warning: Cannot modify header information - headers already sent by (output started at /web/zm/zm_actions.php:1222) in /web/zm/zm_funcs.php on line 92
Warning: Cannot modify header information - headers already sent by (output started at /web/zm/zm_actions.php:1222) in /web/zm/zm_funcs.php on line 93
Warning: Cannot modify header information - headers already sent by (output started at /web/zm/zm_actions.php:1222) in /web/zm/zm_funcs.php on line 94
followed by many other compilation fail errors$Stopping ZoneMinder: Warning, overriding installed ./zm.conf file with local copy