Page 1 of 1

Help on Apache config

Posted: Sun Jul 05, 2009 12:25 am
by nojstevens
Hello,

I have installed Zoneminder 1.23 on my Centos 5.3 that I use as an asterisk server configured with PBXInaflash.

If I go to http://myipaddress/zm I get an error "Could not open config file".

If I go into webmin and change the Global User and Group that Apache runs with from asterisk:asterisk to apache:apache then Zoneminder works no problem. However, if I do this then asterisk (web pages) won't work.

Can anyone help me with a config that would allow Zoneminder to work? I tried making a virtual server for /var/www/html/zm and assigning apache:apache to that, but it doesn't work.

I'm very new to all this, would appreciate some advice?

Thanks

Jon
________
LINCOLN-ZEPHYR SPECIFICATIONS

Posted: Tue Jul 07, 2009 2:10 am
by nojstevens
Hello,

I reinstalled this using asterisk:asterisk as the owner, but when I try to start the ZM service I now get this error.

Starting ZoneMinder: Can't connect: Permission denied at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Debug.pm line 349
ZoneMinder::Debug::Fatal('Can\'t connect: Permission denied') called at /usr/local/bin/zmdc.pl line 167

If I uninstall and install with apache:apache as the owner then it works ok.

Any advice on how to get asterisk and zoneminder to exist together and allow me to configure using apache?

Jon
________
VAPORIZER REVIEWS

Posted: Sat May 15, 2010 1:09 am
by oneadvent
bumping a very old post:

Did you get this to work?

How?

Posted: Mon May 24, 2010 2:45 am
by michael smith
you can write a zoneminder.conf file and place it in etc/httpd/conf.d

with something like

#Zoneminder
# This File allows access locally to Zoneminder
# and is stored under etc/httpd/conf.d/zoneminder.conf

<Directory "/var/www/html/zm">
Order Deny,Allow
# Deny from all
Allow from 127.0.0.1
</Directory>

Alias /Zoneminder /var/www/html/zm
Alias /zm /var/www/html/zm


Cheers
Michael Smith

Asterisk www permissions

Posted: Thu Oct 21, 2010 12:25 am
by msmith9xr4
Anyone found a solution to this? I'd like to run zoneminder and asterisk on the same centos machine.

Seems there are problems with logs if not run as root, can't run as root, and last post with extra conf doesn't seem to solve.