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?
How do I specify the web directory?
The most intelligent solution will be to find out where apache config files are (usually under /etc/apache2) and make changes at two rows:
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!
Code: Select all
DocumentRoot /var/www/
Directory /var/www/