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.
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?
Thanks Till, suexec sounds like the best option, I will look into making this work. I don't really know where to start
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.
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>