sockets bug?

Discussion in 'Installation/Configuration' started by Steffan, Oct 7, 2016.

  1. Steffan

    Steffan Member

    In web domain option tab you can set Use Socket For PHP-FPM
    but if i enable or disable it i dons see a differents in the vhost config.
    Still tcp is used.

    If i look in the sys_datalog i always see
    php_fpm_use_socket";s:1:"y"

    So looks like this option is ignored?

    Are there people that are successfull running 2 php versions with php-fpm?


    This is a followup of tread https://www.howtoforge.com/community/threads/php-7-support-vsite.74150/
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This is not ignored, ispconfig checks if your OS supports sockets for PHP-FPM and this functionality is broken like on systems that lack mod_fastcgi and use a fallback to mod_proxy_fcgi instead, then ispconfig has to switch to a mode that works on this system and mod_proxy_fcgi has severe problems with sockets, see their documentation.

    Yes, you can use any number of additional php-fpm versions without problems in ispconfig. I have PHP 5.4, 5.5, 5.6 and 7.0 on my Debian 8 servers for example.

    As a sidenote: We always recommend to use Debian as that the OS that supports all functions flawlessly, using other OS might limit the functionality due to broken or missing packages on the other OS.
     
  3. Steffan

    Steffan Member

    Well thats my problem.
    i dont know anymore what i did wrong.
    i followed severel tutorials but nothing seems to work
    phpinfo in the vsite is showing the stock php version
    Server API Apache 2.0 Handler

    can you recomand any steps to start over ore a tutorial to get it working.
    i used remi-safe to install php70
     
  4. Steffan

    Steffan Member

    hm i noticed your comment on mod_fastcgi... outch it wasnt installed
    but now i see the error
    he requested URL /php5-fcgi/index.php was not found on this server.
    ls -la /var/www/clients/client0/web457/cgi-bin
    directory is empty
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    That's a virtual URL identifier and not a path in your Linux filesystem, so this URL never exists and shell not exists in the filesystem. It just identifies the connection. Check that the php-fpm instance is really running.

    Which OS do you use? As I mentioned above, ispconfig recognizes the OS and as soon as it recognises a redhat based distribution it will disable some functions that are known to be broken in that OS.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

  7. Steffan

    Steffan Member

    its CentOS release 6.8
     
  8. Steffan

    Steffan Member

    php 7 listen = 127.0.0.1:9007

    lsof -i | grep php
    php-fpm 13359 root 8u IPv4 1247900337 0t0 TCP localhost.localdomain:9466 (LISTEN)
    php-fpm 13359 root 9u IPv4 1246904766 0t0 TCP localhost.localdomain:9007 (LISTEN)
    php-fpm 13360 apache 0u IPv4 1246904766 0t0 TCP localhost.localdomain:9007 (LISTEN)
    php-fpm 13361 apache 0u IPv4 1246904766 0t0 TCP localhost.localdomain:9007 (LISTEN)
    php-fpm 13362 apache 0u IPv4 1246904766 0t0 TCP localhost.localdomain:9007 (LISTEN)
    php-fpm 13363 apache 0u IPv4 1246904766 0t0 TCP localhost.localdomain:9007 (LISTEN)
    php-fpm 13364 apache 0u IPv4 1246904766 0t0 TCP localhost.localdomain:9007 (LISTEN)
    php-fpm 15738 root 8u IPv4 1247937438 0t0 TCP localhost.localdomain:cslistener (LISTEN)
    php-fpm 15739 apache 0u IPv4 1247937438 0t0 TCP localhost.localdomain:cslistener (LISTEN)
    php-fpm 15740 apache 0u IPv4 1247937438 0t0 TCP localhost.localdomain:cslistener (LISTEN)
    php-fpm 15741 apache 0u IPv4 1247937438 0t0 TCP localhost.localdomain:cslistener (LISTEN)
    php-fpm 15742 apache 0u IPv4 1247937438 0t0 TCP localhost.localdomain:cslistener (LISTEN)
    php-fpm 15743 apache 0u IPv4 1247937438 0t0 TCP localhost.localdomain:cslistener (LISTEN)

    vhost config
    FastCgiExternalServer /var/www/clients/client0/web457/cgi-bin/php5-fcgi-*-80-14allhosting.nl -idle-timeout 300 -host 127.0.0.1:9466 -pass-header Authorization

    ls -al /proc/13359
    exe -> /opt/remi/php70/root/usr/sbin/php-fpm

    If i change the site to php5 then i see the proc linking to /usr/sbin/php-fpm
    so for me it look slike it is running

    But the errorlog says:
    File does not exist: /var/www/clients/client0/web457/cgi-bin/php5-fcgi-*-443-xxxx.nl
     
  9. Steffan

    Steffan Member

    till likes this.

Share This Page