How do I specify the web directory?

Support and queries relating to all previous versions of ZoneMinder
Locked
RobinQi
Posts: 14
Joined: Thu Oct 02, 2008 4:29 pm

How do I specify the web directory?

Post by RobinQi »

Now I am trying to install zoneminder from yum. But to my surprise, after installation I found following lines in /etc/zm.conf:

# Path to ZoneMinder web files
ZM_PATH_WEB=/usr/share/zoneminder/www

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/usr/libexec/zoneminder/cgi-bin

Why it doesn't point to /var/www? Where usually apache runs? Would it be OK if I just copy all files from above two directories to /var/www?
xyz
Posts: 20
Joined: Tue Nov 18, 2008 8:49 am

Post by xyz »

The most intelligent solution will be to find out where apache config files are (usually under /etc/apache2) and make changes at two rows:

Code: Select all

        DocumentRoot /var/www/
        Directory /var/www/
Put whatever you need instead of /var/www/ and then restart Apache: /etc/init.d/apache2 restart . And do not forget about the ending slash!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If you check in /etc/httpd/conf.d you will find a config file that correctly configure apache to use those locations.
Locked