Ispconfig url show source code

Discussion in 'Installation/Configuration' started by LorisPal, Sep 24, 2021.

  1. LorisPal

    LorisPal New Member

    After update to ISPConfig 3.2.6, everything works as expetected but not the ispconfig url itself, php source code appear instead. Other sites are not concerned, they work.

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)

    [INFO] uptime: 12:04:42 up 1 day, 13 min, 1 user, load average: 0,85, 0,70, 0,68

    [INFO] memory:
    total used free shared buff/cache available
    Mem: 15Gi 4,5Gi 2,6Gi 313Mi 8,5Gi 10Gi
    Swap: 4,0Gi 129Mi 3,9Gi

    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.2.6
    ##### VERSION CHECK #####
    [INFO] php (cli) version is 7.4.23
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.23

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


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


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

    [INFO] I found the following web server(s):
    Apache 2 (PID 106187)
    [INFO] I found the following mail server(s):
    Postfix (PID 105664)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 106032)
    [INFO] I found the following imap server(s):
    Dovecot (PID 106032)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 106236)

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [anywhere]:465 (105664/master)
    ***.***.***.***:53 (106247/named)
    ***.***.***.***:53 (106247/named)
    ***.***.***.***:53 (106247/named)
    ***.***.***.***:53 (106247/named)
    ***.***.***.***:53 (106247/named)
    ***.***.***.***:53 (106247/named)
    ***.***.***.***:53 (106247/named)
    ***.***.***.***:53 (106247/named)
    [localhost]:53 (106247/named)
    [localhost]:53 (106247/named)
    [localhost]:53 (106247/named)
    [localhost]:53 (106247/named)
    [anywhere]:21 (106236/pure-ftpd)
    [anywhere]:22 (1253/sshd:)
    [localhost]:953 (106247/named)
    [anywhere]:25 (105664/master)
    [anywhere]:993 (106032/dovecot)
    [anywhere]:995 (106032/dovecot)
    [localhost]:10023 (1937/postgrey)
    [localhost]:10024 (105896/amavisd-new)
    [localhost]:10025 (105664/master)
    [localhost]:10026 (105896/amavisd-new)
    [localhost]:10027 (105664/master)
    [anywhere]:587 (105664/master)
    [anywhere]:110 (106032/dovecot)
    [anywhere]:143 (106032/dovecot)
    *:*:*:*::*:8081 (106187/apache2)
    *:*:*:*::*:465 (105664/master)
    *:*:*:*::*:21 (106236/pure-ftpd)
    *:*:*:*::*:4949 (1323/perl)
    *:*:*:*::*:53 (106247/named)
    *:*:*:*::*:53 (106247/named)
    *:*:*:*::*:53 (106247/named)
    *:*:*:*::*:53 (106247/named)
    *:*:*:*::*:53 (106247/named)
    *:*:*:*::*:53 (106247/named)
    *:*:*:*::*:53 (106247/named)
    *:*:*:*::*:53 (106247/named)
    *:*:*:*::*4e72:b9ff:fe66:53 (106247/named)
    *:*:*:*::*4e72:b9ff:fe66:53 (106247/named)
    *:*:*:*::*4e72:b9ff:fe66:53 (106247/named)
    *:*:*:*::*4e72:b9ff:fe66:53 (106247/named)
    *:*:*:*::*:22 (1253/sshd:)
    *:*:*:*::*:25 (105664/master)
    *:*:*:*::*:953 (106247/named)
    *:*:*:*::*:443 (106187/apache2)
    *:*:*:*::*:993 (106032/dovecot)
    *:*:*:*::*:995 (106032/dovecot)
    *:*:*:*::*:10024 (105896/amavisd-new)
    *:*:*:*::*:10026 (105896/amavisd-new)
    *:*:*:*::*:3306 (105349/mysqld)
    *:*:*:*::*:587 (105664/master)
    [localhost]10 (106032/dovecot)
    [localhost]43 (106032/dovecot)
    *:*:*:*::*:8080 (106187/apache2)
    *:*:*:*::*:80 (106187/apache2)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22
    f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25,465

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain f2b-postfix-sasl (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

    Chain f2b-sshd (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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0




    ##### LET'S ENCRYPT #####
    [WARN] You have both certbot and acme.sh installed. This can lead to problems.
    Certbot: /usr/bin/certbot
    acme.sh: /root/.acme.sh/acme.sh

    Server version: Apache/2.4.48 (Debian)
    Server built: 2021-07-05T10:05:26
    PHP 7.4
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you installed a wrong default PHP version, the default PHP version of Debian 10 is PHP 7.3 and this is required to be installed, but you seem to have replaced it by PHP 7.4.

    Go trough the perfect server guide, especially the apache installation chapter, and reinstall the missing software. Then take care to switch to the right PHP version using update-alternatives as described here: https://www.howtoforge.com/community/threads/please-read-before-posting.58408/

    You can use newer and older PHP version on your ISPConfig system for the websites, but never change the default PHP version of the OS.
     
  3. LorisPal

    LorisPal New Member

    Hi Till. I went trough the perfect server guide, apache installation chapter, reinstalled missing software. using update-alternatives I switched to PHP version 7.3.
    but now apache do not starts and say:
    Job for apache2.service failed because the control process exited with error code.
    See "systemctl status apache2.service" and "journalctl -xe" for details.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The error message shows you the command that you need to execute to find out why it fails.
     
  5. LorisPal

    LorisPal New Member

    The professional support resolve the issue. Regards
     

Share This Page