freePBX/Apache config question

Hi !

I am trying to install freePBX 2.3.0 admin utility for Asterisk 1.4 (on SuSE 10.2).
Installation instruction says this:

httpd (Apache) configuration

  • Edit /etc/httpd/conf/httpd.conf (or /etc/apache2/apache2.conf) so that:
    User asterisk
    Group asterisk

If I add this, how this will affect other HTML dirs? Does this mean that
Apache will run as user “asterisk”?

freePBX keeps its php scripts under user&group called “asterisk”.
Additionally, there is an additional instruction

Chown the PHP session.save_path directory:

  • chown asterisk /var/lib/php/session

I am really in doubt that freePBX is compatible with “normal” Apache

Thanks in advance for any suggestion(s).

apache (or at least the process that serves freepbx) must run as user asterisk.

Fundamentally this is for voicemail access via ARI, and well as manipulating music-on-hold (though opening up music-on-hold permissions probably has no negative ramifications)

When Asterisk creates voicemail files as user asterisk, sets them to be 600 permissions. Hence, only asterisk user can use them.

Go ahead and fire up the GUI as apache. It’ll kind of work, but give errors when you try the Recordings tab or look at the Music-On-Hold files.

Alternative solutions are (a) patch asterisk to use different voicemail permissions, (b) run multiple copies of apache (one as asterisk, one as apache) if that make you feel better or © run asterisk as apache, if that’s possible - don’t know about that one.

Other programs with web interfaces have the same issues - webmin, ntop, etc. They usually give up and write a little miniserver.