Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-2727

Running freepbx under standard apache user

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: FreePBX Framework
    • Labels:
      None

      Description

      Hi.
      I just post here instructions on how-to run freepbx under the standard apache user of your system. I use this on several installation without problem. The only "error" message I noticed is on recording module, the temp file cannot be deleted (wich isn't a big deal as we can configure a cron job to clean it).

      Here are the steps:


      - add a new variable in /etc/amportal.conf called AMPWEBUSER, for example
      AMPWEBUSER="www"


      - add AMPWEBUSER to asterisk group (this could be done during installation)
      usermod -a -G asterisk www


      - patch freepbx_engine with the patch attached

      Additionnaly, this patch allows to apply fxotune configuration before starting asterisk (during the chown function).

      I think that's all. Now you can run apache under the standard user of your system.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                plindheimer PL
                Reporter:
                dani dani
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.