PHP-FPM-7.0.11

Discussion in 'Installation/Configuration' started by Viper_iii, Oct 4, 2016.

  1. Viper_iii

    Viper_iii Member

    Think I have it loaded right yet get this error in logs..

    [Mon Oct 03 16:28:55.411459 2016] [fastcgi:error] [pid 14927] (2)No such file or directory: [client 173.245.48.179:29178] FastCGI: failed to connect to server "/var/www/clients/client3/web11/cgi-bin/php5-fcgi-*-80-domain": connect() failed
    [Mon Oct 03 16:28:55.411562 2016] [fastcgi:error] [pid 14927] [client 173.245.48.179:29178] FastCGI: incomplete headers (0 bytes) received from server "/var/www/clients/client3/web11/cgi-bin/php5-fcgi-*-80-domain"

    PHP Addional settings
    No client set - so all can use correct?
    /opt/php-7.0.11/bin/php-cgi
    /opt/php-7.0.11/lib

    php-fpm
    /etc/init.d/php-7.0.11-fpm
    /opt/php-7.0.11/lib
    /opt/php-7.0.11/etc/php-fpm.d
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Sounds like the php-fpm daemon may not be running. Is this the system php7 on ubuntu 16, or a "multiple php versions" config on another OS? For the latter, check all your setup according to a howto guide, but in particular check your init.d script/systemd unit file.
     
  3. cbj4074

    cbj4074 Member

    If you're trying to use PHP-FPM, the quoted FastCGI error message looks odd to me. Particularly, the "php5-fcgi-*-80-domain" part.

    Which PHP mode have you selected on the "Domain" tab of the website options?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This part is fine. That's just a virtual path name and is not related to the PHP version that you use.
     
  5. Viper_iii

    Viper_iii Member

    So used this link for 7.0.9 as well a 7.0.11
    https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
    this site was setup as 7.0.11 FPM / 7.0.9 FPM same difference
    reset back to FastCGI 7.0.11 and works fine again - for sure under 7.0.9 - 11 should work..
    checking the part about init.d and starting it up...
    the test worked and displayed the correct answer... I think..

    # /etc/init.d/php-7.0.9-fpm start
    Starting php-fpm done
    # /etc/init.d/php-7.0.11-fpm start
    Starting php-fpm done

    --- went ahead and restarted the server and manually ran the above commands to verify the services were running
    found
    7.0.9 was listening on 8998 change to 8995
    7.0.11 was listening on 8997 left alone
    stopped both services and restarted via above /etc/init.d/
    seems to be working now... phpinfo showing FPM/FastCGI vs CGI/FastCGI

    going to reboot and verify if still working after another reboot
    ----------
    After the reboot seems to be operational..
    then changed one of the other sites over to FPM-7.0.11 and after a few minutes it reset as well.

    Configuration File (php.ini) Path /opt/php-7.0.11/lib
    FPM loads different version - than FastCGI, which is normal i'm sure.
    Loaded Configuration File /opt/php-7.0.11/lib/php.ini
     
  6. Viper_iii

    Viper_iii Member

    did seem to break a subdomain that is setup as a redirect..
    only available internally and when I hit the site I was getting:
    page not found
    do have it set to redirect to /subdirectory of main site
    but it was loading https:/subdomain.domain.com/php5-fcgi/index.php
    current wordpress site - once back to fcgi works like it should...

    possibly setup the subdomain as a full separate site I guess?
     

Share This Page