additional php version gave me an internal server error with apache

Discussion in 'ISPConfig 3 Priority Support' started by SergiX44, Jan 5, 2016.

  1. SergiX44

    SergiX44 New Member

    i have installed the latest versione of php (7.0.1) following this guide: https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
    but when i change the php version of a vhost to PHP 7.0.1 with any option i gave me an internal sever error
    this is the error.log of apache:
    Code:
    [Tue Jan 05 16:00:47.574002 2016] [fastcgi:error] [pid 25921] (2)No such file or directory: [client 5.90.13.47:21784] FastCGI: failed to connect to server "/var/www/clients/client0/web6/cgi-bin/php5-fcgi-*-80-sergix44.ovh": connect() failed
    [Tue Jan 05 16:00:47.574125 2016] [fastcgi:error] [pid 25921] [client 5.90.13.47:21784] FastCGI: incomplete headers (0 bytes) received from server "/var/www/clients/client0/web6/cgi-bin/php5-fcgi-*-80-sergix44.ovh"
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    seems as if the php-fpm daemon of this php version is not running. ensure that you used a free port for this new php (listen line in /opt/php-7.0.0/etc/php-fpm.d/www.conf).
     
  3. SergiX44

    SergiX44 New Member

    i have put it on the port 8999 and seems its running, but i don't see the php fpm of php 5.6
    Code:
    netstat -tulpn
    
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      6815/dovecot
    tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      6815/dovecot
    tcp        0      0 127.0.0.1:8999          0.0.0.0:*               LISTEN      6040/php-fpm.conf)
    tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      6807/amavisd-new (m
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      6772/master
    tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      6772/master
    tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      24220/memcached
    tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      6815/dovecot
    tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      6815/dovecot
    tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN      6772/master
    tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      15284/pure-ftpd (SE
    tcp        0      0 149.202.45.20:53        0.0.0.0:*               LISTEN      6947/named
    tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      6947/named
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      314/sshd
    tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      6947/named
    tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      6772/master
    tcp6       0      0 :::8443                 :::*                    LISTEN      3277/apache2
    tcp6       0      0 :::443                  :::*                    LISTEN      3277/apache2
    tcp6       0      0 :::4030                 :::*                    LISTEN      3124/java
    tcp6       0      0 :::993                  :::*                    LISTEN      6815/dovecot
    tcp6       0      0 :::995                  :::*                    LISTEN      6815/dovecot
    tcp6       0      0 ::1:10024               :::*                    LISTEN      6807/amavisd-new (m
    tcp6       0      0 :::3306                 :::*                    LISTEN      6476/mysqld
    tcp6       0      0 :::587                  :::*                    LISTEN      6772/master
    tcp6       0      0 :::110                  :::*                    LISTEN      6815/dovecot
    tcp6       0      0 :::143                  :::*                    LISTEN      6815/dovecot
    tcp6       0      0 :::80                   :::*                    LISTEN      3277/apache2
    tcp6       0      0 :::8081                 :::*                    LISTEN      3277/apache2
    tcp6       0      0 :::465                  :::*                    LISTEN      6772/master
    tcp6       0      0 :::21                   :::*                    LISTEN      15284/pure-ftpd (SE
    tcp6       0      0 :::4949                 :::*                    LISTEN      6672/perl
    tcp6       0      0 :::53                   :::*                    LISTEN      6947/named
    tcp6       0      0 :::22                   :::*                    LISTEN      314/sshd
    tcp6       0      0 ::1:953                 :::*                    LISTEN      6947/named
    tcp6       0      0 :::25                   :::*                    LISTEN      6772/master
    udp        0      0 0.0.0.0:8766            0.0.0.0:*                           25043/dontstarve_de
    udp        0      0 0.0.0.0:27016           0.0.0.0:*                           25043/dontstarve_de
    udp        0      0 0.0.0.0:23044           0.0.0.0:*                           288/dhclient
    udp        0      0 0.0.0.0:10999           0.0.0.0:*                           25043/dontstarve_de
    udp        0      0 127.0.0.1:11211         0.0.0.0:*                           24220/memcached
    udp        0      0 149.202.45.20:53        0.0.0.0:*                           6947/named
    udp        0      0 127.0.0.1:53            0.0.0.0:*                           6947/named
    udp        0      0 0.0.0.0:68              0.0.0.0:*                           288/dhclient
    udp        0      0 149.202.45.20:123       0.0.0.0:*                           3444/ntpd
    udp        0      0 127.0.0.1:123           0.0.0.0:*                           3444/ntpd
    udp        0      0 0.0.0.0:123             0.0.0.0:*                           3444/ntpd
    udp6       0      0 :::59079                :::*                                288/dhclient
    udp6       0      0 :::53                   :::*                                6947/named
    udp6       0      0 fe80::f816:3eff:fe3:123 :::*                                3444/ntpd
    udp6       0      0 ::1:123                 :::*                                3444/ntpd
    udp6       0      0 :::123                  :::*                                3444/ntpd
    
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check with ps command if the running php-fpm is php7 or 5.6.
     

Share This Page