Page 1 of 1

How do I specify the web directory?

Posted: Thu Oct 09, 2008 5:55 pm
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?

Posted: Fri Dec 05, 2008 10:21 pm
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!

Posted: Sat Dec 06, 2008 12:57 am
by cordel
If you check in /etc/httpd/conf.d you will find a config file that correctly configure apache to use those locations.