Different user

Discussion in 'General' started by Chris00, Sep 9, 2015.

  1. Chris00

    Chris00 New Member

    Hi,
    Is there any way for ISPConfig 3 running on Debian Wheezy to work under another user?
    I am running FreePBX on the same server, and it doesn't work under the user www-data. When I change the apache user to asterisk, it works, but then ISPConfig3 doesn't work.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig is not running under the user www-data, it runs under the user ispconfig. But when you change the apache user and group, then you might have to check which members are in the same group and add them to the new group as well. But personally I wont do such a modification as it will affect all kind of apache related packages as well. Why don't you create a vhost for your FreePBX software and then use suexec to run the scripts of that software as user asterisk?
     
  3. Chris00

    Chris00 New Member

    Thanks Till, suexec sounds like the best option, I will look into making this work. I don't really know where to start
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Which programming language does FreePBX use, php or perl or something different?
     
  5. Chris00

    Chris00 New Member

    PHP and perl, because both are prerequisites of freepbx
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    you can try to create a website in ispconfig, select php mode php-fcgi and perl and enable the suexec checkbox to get an idea how such a vhost should look like.
     
  7. Chris00

    Chris00 New Member

    I couldn't get suexec to work porperly, but got the following to work, no errors so far.
    apt-get install apache2-mpm-itk

    Code:
    <VirtualHost *:80>
        ServerAdmin     it @ mydomain.com
        ServerName      freepbx.mydomain.com
        DirectoryIndex  index.html index.php
        DocumentRoot    /var/www/freepbx
        <IfModule mpm_itk_module>
            AssignUserId asterisk asterisk
        </IfModule>
            <Directory /var/www/freepbx>
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride All
                    Order allow,deny
                    Allow from All
            </Directory>
            ErrorLog /var/log/apache2/freepbx-error.log
            LogLevel warn
            CustomLog /var/log/apache2/access.log combined
    </VirtualHost>
     

Share This Page