Ispconfig 3.1 both php version

Discussion in 'Installation/Configuration' started by jimbo4215, Feb 19, 2019.

  1. jimbo4215

    jimbo4215 New Member


    I installed ispconfig 3.1 on Ubuntu 18.04. Php 7.2 install from official repo and php5.6 package installed from a ppa.
    I setup a additional php version as follow :
    Path to the PHP FastCGI binary > php-cgi5.6
    Path to the php.ini directory > /etc/php/5.6/cgi/
    Path to the PHP-FPM init script > php-fpm5.6
    Path to the php.ini directory > /etc/php/5.6/fpm/
    Path to the PHP-FPM pool directory > /etc/php/5.6/fpm/pool.d/

    On a website if I change default php to php5.6 I have to restart : service php5.6-fpm stop and service php5.6-fpm start
    because I get this error message :

    0265#10265: *7 connect() to unix:/var/lib/php7.2-fpm/web8.sock failed (2: No such file or directory) while connecting to upstream, client: server:, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php7.2-fpm/web8.sock:", host: ""

    fpm is still sticked on php7.2. It's normal or I have a mistake in my php setup ?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The 7.2 in the mentioned path is not related to PHP 7.2, so don't mix that up. The sockets for all php versions are in that folder.

    Try to restart all php-fpm daemons by using the systemctl command.

Share This Page