problems with php

Discussion in 'Installation/Configuration' started by conductive, Jul 16, 2017.

  1. conductive

    conductive Member HowtoForge Supporter

    I have a wheezy perfect server running default php 5.4.45 currently serving my web pages.

    I just installed perfect server running php 5.6.30 and Jessie
    https://www.howtoforge.com/tutorial/perfect-server-debian-jessie-nginx-bind-dovecot-ispconfig-3.1/
    The Jessie 8.6 perfect server will not serve my web pages. It does not appear to not parse PHP properly. Form mail and other pages appear to have issues passing data too. Ispconfig, Roundcube, phpinfo and phpmyadmin appear to work OK.

    I attempted to install additional php 5.4.45 per tutorial but ran into problems @
    cp /opt/php-5.4/etc/php-fpm.d/www.conf.default /opt/php-5.4/etc/php-fpm.d/www.conf
    since /opt/php-5.4/etc/php-fpm.d/www.conf.default does not exist.

    Is there a multiple PHP tutorial that will work better for Jessie other than the one in the perfect server 8.6 tutorial?
    Is there a better way to address this issue without adding another PHP version?

    ========================================================================
    ##### ISPCONFIG #####
    ISPConfig version is 3.1.5


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 5.6.30-0+deb8u1

    ##### PORT CHECK #####

    [WARN] Port 443 (Webserver SSL) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Nginx (PID 28947)
    [INFO] I found the following mail server(s):
    Postfix (PID 1403)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 745)
    [INFO] I found the following imap server(s):
    Unknown process (init) (PID 1)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 28217)

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [anywhere]:8081 (28947/nginx)
    [anywhere]:465 (1403/master)
    [anywhere]:21 (28217/pure-ftpd)
    ***.***.***.***:53 (728/named)
    ***.***.***.***:53 (728/named)
    ***.***.***.***:53 (728/named)
    ***.***.***.***:53 (728/named)
    ***.***.***.***:53 (728/named)
    [localhost]:53 (728/named)
    [anywhere]:22 (734/sshd)
    [anywhere]:25 (1403/master)
    [localhost]:953 (728/named)
    [anywhere]:993 (1/init)
    [anywhere]:52481 (708/rpc.statd)
    [anywhere]:995 (745/dovecot)
    [localhost]:8900 (25736/php-fpm.conf))
    [localhost]:10023 (853/postgrey.pid)
    [localhost]:10024 (1429/amavisd-new)
    [localhost]:10025 (1403/master)
    [localhost]:10026 (1429/amavisd-new)
    [localhost]:10027 (1403/master)
    [anywhere]:587 (1403/master)
    [localhost]:11211 (730/memcached)
    [anywhere]:110 (745/dovecot)
    [anywhere]:143 (1/init)
    [anywhere]:111 (699/rpcbind)
    [anywhere]:80 (28947/nginx)
    [anywhere]:8080 (28947/nginx)
    *:*:*:*::*:8081 (28947/nginx)
    *:*:*:*::*:465 (1403/master)
    *:*:*:*::*:21 (28217/pure-ftpd)
    *:*:*:*::*:53 (728/named)
    *:*:*:*::*:22 (734/sshd)
    *:*:*:*::*:25 (1403/master)
    *:*:*:*::*:953 (728/named)
    *:*:*:*::*:993 (1/init)
    *:*:*:*::*:995 (745/dovecot)
    *:*:*:*::*:10023 (853/postgrey.pid)
    *:*:*:*::*:10024 (1429/amavisd-new)
    *:*:*:*::*:10026 (1429/amavisd-new)
    *:*:*:*::*:3306 (1018/mysqld)
    *:*:*:*::*:587 (1403/master)
    [localhost]10 (745/dovecot)
    [localhost]43 (1/init)
    *:*:*:*::*:60751 (708/rpc.statd)
    [localhost]11 (699/rpcbind)
    *:*:*:*::*:80 (28947/nginx)
    *:*:*:*::*:8080 (28947/nginx)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25
    fail2ban-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993
    fail2ban-pureftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21
    fail2ban-ssh tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain fail2ban-dovecot-pop3imap (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain fail2ban-postfix-sasl (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain fail2ban-pureftpd (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain fail2ban-ssh (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0
     
    Last edited: Jul 17, 2017
  2. conductive

    conductive Member HowtoForge Supporter

    I used SergiX44 Additional PHP versions helper to install php 5.4.45, 5.5.38, 5.6.31, 7.0.21 and 7.1.7 on the Jessie server and still was not able to properly serve my php web pages.

    Since SergiX44's script worked so well on Jessie I decided to use it on the Wheezy server but it did not work and gave me...... error: Cannot find OpenSSL's <evp.h>

    I apt-get install libcurl4-openssl-dev pkg-config and now the Wheezy server has the same problem as the Jessie server. It appears that my code has some type of incompatibility with the updated libcurl4-openssl-dev.

    I am also getting some strange dmesg errors
    [33962.229358] perf interrupt took too long (2503 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
    [81553.146387] conftest[22782]: segfault at 1 ip 0000000000405379 sp 00007ffe574ee440 error 4 in conftest[400000+a9000]
    [81564.425515] conftest[24855]: segfault at 0 ip 0000000000400720 sp 00007ffdf45de6d0 error 4 in conftest[400000+1000]
    [81564.733005] conftest[24878]: segfault at 0 ip 00007f91f5530d8a sp 00007ffe68968b08 error 4 in libc-2.19.so[7f91f549f000+1a1000]

    I am probably looking in the wrong spot but
    display_errors = On
    display_startup_errors = On
    does not seem to be giving me any specific php errors

    What should I be doing to resolve this problem on Jessie?

    Thanks for your help.
     

Share This Page