Freepbx and Zoneminder on same machine : apache problem

Hi all

Probably not a proper pbx question…

Just installed Zoneminder surveillance software on a fresh Ubuntu 12.04.3 server machine, all is working OK

When I install also Freepbx like in the wiki guide, it also works ok but Zoneminder stops to run.

Looking at Zoneminder installation, it uses the default apache2 configuration found in /etc/apache2/apache2.conf, that shows these two lines :


User www-data
Group www-data
from /etc/apache2/envvars )

during freepbx installation is indicated to do the following:

cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_orig
sed -i ‘s/^(User|Group).*/\1 asterisk/’ /etc/apache2/apache2.conf

that write

User asterisk
Group asterisk

on apache2.conf, so Zoneminder fails to run

How can I made the two softwares to live happy together ??

Thank you

Ok, I found this way seems to work
Just installed apache2-mpm-itk
and added to zoneminder related apache section these lines:

< IfModule mpm_itk_module>
AssignUserId www-data www-data
< /IfModule>

So , leaving the default apache2 conf. the default user/group is
asterisk/asterisk, but when zoneminder webpage is recalled , www-data/www-data will be used instead, satisfying the need.

Hope this helps for someone unexperienced like me…

Instead of apache2-mpm-itk installation, someone suggests me :

"Why don’t you simply add the user www-data to the asterisk group ? "

I tried this and seems to work, any problem in using this trick for FreePBX functionality ???

Or should I work around:


in amportal.conf ??

I would prefer to leave all the other programs to use apache default settings and adapt FreePBX to use them too…