FastCGI/PHP-FPM Ubuntu Vhost Config problem

Discussion in 'ISPConfig 3 Priority Support' started by s2892, Oct 11, 2015.

  1. s2892

    s2892 New Member

    I want to move from: CGI/FastCGI to FastCGI/PHP-FPM

    Is work on default site but nov VHosts

    what has to be changed ??


    I have follow one of the tuts:
    https://www.howtoforge.com/using-php5-fpm-with-apache2-on-ubuntu-12.04-lts
    I installed:
    apache2-mpm-worker and desibled prefolk: sudo a2dismod php5 mpm_prefork

    I create config:
    sudo touch /usr/lib/cgi-bin/php5.fcgi
    sudo chown -R www-data:www-data /usr/lib/cgi-bin
    sudo nano /etc/apache2/conf-available/php5-fpm.conf

    and config:
    <IfModule mod_fastcgi.c>
    AddHandler php5.fcgi .php
    Action php5.fcgi /php5.fcgi
    Alias /php5.fcgi /usr/lib/cgi-bin/php5.fcgi
    FastCgiExternalServer /usr/lib/cgi-bin/php5.fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization -idle-timeout 3600
    <Directory /usr/lib/cgi-bin>
    Require all granted
    </Directory>
    </IfModule>
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You just have to switch the PHP mode selector of the website from php-fcgi to php-fpm and press save, there is no editing of files required.
     

Share This Page