Unable to use PHP-FPM on socket

Discussion in 'General' started by PVasileff, Jul 13, 2017.

  1. PVasileff

    PVasileff Member

    I have a fresh instalation of ispconfig 3.1.5 on Debian 9 Stretch.
    I have added few websites.

    When I change PHP - from Fast-CGI to PHP-FPM after that going to Options tab and check "Use Socket For PHP-FPM" in
    /etc/php/7.0/fpm/pool.d/web1.conf
    I see listen on port - not sock file.

    Code:
    [web1]
    
    listen = 127.0.0.1:9010
    listen.allowed_clients = 127.0.0.1
    
    user = web1
    group = client1
    
    pm = dynamic
    pm.max_children = 250
    pm.start_servers = 2
    pm.min_spare_servers = 1
    pm.max_spare_servers = 5
    pm.max_requests = 0
    
    chdir = /
    
    env[HOSTNAME] = $HOSTNAME
    env[TMP] = /var/www/clients/client1/web1/tmp
    env[TMPDIR] = /var/www/clients/client1/web1/tmp
    env[TEMP] = /var/www/clients/client1/web1/tmp
    env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    
    php_admin_value[open_basedir] = /var/www/clients/client1/web1/web:/var/www/clients/client1/web1/private:/var/www/clients/client1/web1/tmp:/var/www/domain.com/web:/srv/www/
    domain.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom
    php_admin_value[session.save_path] = /var/www/clients/client1/web1/tmp
    php_admin_value[upload_tmp_dir] = /var/www/clients/client1/web1/tmp
    php_admin_value[sendmail_path] = "/usr/sbin/sendmail -t -i -f [email protected]"
    For example from server with 3.1.4 and debian 8:
    Code:
    [web1]
    
    listen = /var/run/web1.sock
    listen.owner = web1
    listen.group = www-data
    listen.mode = 0660
    
    user = web1
    group = client1
    
    pm = dynamic
    pm.max_children = 250
    pm.start_servers = 2
    pm.min_spare_servers = 1
    pm.max_spare_servers = 5
    pm.max_requests = 0
    
    chdir = /
    
    env[HOSTNAME] = $HOSTNAME
    env[TMP] = /var/www/clients/client1/web1/tmp
    env[TMPDIR] = /var/www/clients/client1/web1/tmp
    env[TEMP] = /var/www/clients/client1/web1/tmp
    env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    
    php_admin_value[open_basedir] = /var/www/clients/client1/web1/web:/var/www/clients/client1/web1/private:/var/www/clients/client1/web1/tmp:/var/www/domain.com/web:/srv/www/domain.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
    php_admin_value[session.save_path] = /var/www/clients/client1/web1/tmp
    php_admin_value[upload_tmp_dir] = /var/www/clients/client1/web1/tmp
    php_admin_value[sendmail_path] = "/usr/sbin/sendmail -t -i -f [email protected]"
    
    That is a bug or can you tell me how to debug and fix that..?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's not a bug or at least not in ISPConfig, the apache fcgi proxy module which has to be used to connect to PHP-FPM (as the old mod_fastcgi is not available anymore on deb 9) has some issues with socket connections, so ISPConfig forces ports to be used on affected systems. When the issues in the apache module have been resolved and it is proven to work stable, then ISPConfig will allow socket connections on these systems again.
     

Share This Page