FreePBX + Zoneminder Apache problem

Dear all,

I am hardly trying to install two very popular applications in one mashine with no luck for over a month. I Install firstly the FreePBX Distro and then the Zoneminder from the following guide : http://www.mindcryme.com/2012/02/02/installing-zoneminder-on-centos-6/ .
Both applications have a web interface that you can access it through an Apache web server. So, the problem is that I cannot make the two web interfaces work at the same time. If the web interface of the FreePBX is working , the web interface of the Zoneminder shows a message “cannot load config file…”. If the web interface of the Zoneminder is working the web interface of the FreePBX show a message “forbitten something…”.
After a quick research I realize that the problem has to do with the user we enter on the httpd.conf file. The FreePBX works with the User “asterisk” of the group “asterisk” and the zoneminder works with the user “apache” of the group “apache”.
I have already tried to add the users to the same group (with the command: usermod -g asterisk apache) but problems still exists. If I add the users “asterisk” and “apache” to the group “apache” the problem is the same. If I add the users to the group “asterisk” then the Zoneminder works fine but the web interface of the FreePBX appears strange and everytime I select something asks for username and password of the webinterface.

Any idea ??

I found an rpm for zoneminder ( it’s unsupported so I don’t think that I should advertise it… ) and it seems to integrate with the freepbx installed apache ok. I just had to
0) installed the zoneminder rpm.

  1. I remove the ‘DELETE ME’ line / area from the zoneminder.conf file. It was setup to deny all by default.
  2. I did a (chgrp asterisk /etc/zm.conf) so that asterisk can read the zm.conf file.
    I restarted apache ( service httpd restart ) and http://servername loads freepbx and http://servername/zm loads the zm stuff.

zonminder doesn’t care what apache runs as … it just has a few files that are group read by apache and needs to be group readable by asterisk instead.

jack

Jack,

That’s great news… But we just need more information. For example were we can find this special rpm of ZM ?

I doubt if you need the rpm I found. Probably just need to set the /etc/zm.conf
file that you have to setup with your verion of zm and make sure that the
/zm alias part of your httpd config doesn’t have a deny all in it.

If you need that rpm… you can google and search for:
zoneminder rpm centos6
…it’s the 4th one on the list. It is probably ‘safer’ ( you don’t know who built the RPM or if they put any back doors in it… ) to compile from souce, but if you want to do the RPM… you can google it.

jack

So, maybe I wasn’t trully honest wih you. I am not a Linux Gurru. I just know to follow carefull instructions.
So, I did not understand , when I have to " remove the ‘DELETE ME’ line / area from the zoneminder.conf file." or "set the /etc/zm.conf
file that you have to setup with your verion of zm"
Do you mind to take a look on the instructions I found for the Zoneminder (http://www.mindcryme.com/2012/02/02/installing-zoneminder-on-centos-6/ ) and tell me where to enter the extra commands that you say ?
Let say that I have successful install the latest FreePBX Distro. That’s next ?

P.S In case you do ot have time to answer there is no problem. Tank you anyway for your time Jack.

B.R
Harry