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
Help on Apache config
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
Help on Apache config
Last edited by nojstevens on Sat Feb 12, 2011 6:29 am, edited 1 time in total.
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
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
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
Last edited by nojstevens on Sat Feb 12, 2011 6:30 am, edited 1 time in total.
-
- Posts: 49
- Joined: Wed Mar 14, 2007 12:58 pm
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
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
-
- Posts: 3
- Joined: Wed Oct 20, 2010 11:46 pm
Asterisk www permissions
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.
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.