[SOLVED]404 errors on some admin pages -> mistake with global alias for system (/admin folder)

Discussion in 'Installation/Configuration' started by NoName;), Feb 18, 2023.

Tags:
  1. NoName;)

    NoName;) New Member

    Hello ;)
    Sorry for my bad english, i'm french.
    Since probably 2 updates of ispconfig, i have some 404 error in all the pages of "system" on ispconfig.
    Somes infos :

    Code:
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.5 LTS
    
    [INFO] uptime:  09:48:58 up 30 min,  1 user,  load average: 1,17, 1,23, 1,10
    
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:           15Gi       2,6Gi        10Gi        31Mi       2,7Gi        12Gi
    Swap:          51Gi          0B        51Gi
    
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION
    ● quotaon.service           loaded failed failed Enable File System Quotas
    ● snap.lxd.activate.service loaded failed failed Service for snap application lxd.activate
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    2 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.9p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.3-4ubuntu2.17
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.3
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 355442)
    [INFO] I found the following mail server(s):
            Postfix (PID 239465)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 359332)
    [INFO] I found the following imap server(s):
            Dovecot (PID 359332)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 239878)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [localhost]:11211               (1105/memcached)
    [localhost]:10023               (1422/postgrey)
    [localhost]:10025               (239465/master)
    [localhost]:10024               (239588/amavisd-new)
    [localhost]:10027               (239465/master)
    [localhost]:10026               (239588/amavisd-new)
    [localhost]:953         (239895/named)
    [localhost]:53          (239895/named)
    [localhost]:8125                (1751/netdata)
    [anywhere]:19999                (1751/netdata)
    ***.***.***.***:445             (1384/smbd)
    ***.***.***.***:53              (239895/named)
    ***.***.***.***:53              (916/systemd-resolve)
    ***.***.***.***:53              (239895/named)
    [anywhere]:22           (1226/sshd:)
    [anywhere]:21           (239878/pure-ftpd)
    [anywhere]:25           (239465/master)
    [anywhere]:110          (359332/dovecot)
    [anywhere]:111          (1/init)
    [anywhere]:143          (359332/dovecot)
    [anywhere]:465          (239465/master)
    [anywhere]:587          (239465/master)
    [anywhere]:995          (359332/dovecot)
    [anywhere]:993          (359332/dovecot)
    2a01:e0a:d7:1a90:52:445         (1384/smbd)
    2a01:e0a:d7:1a90:52e:53         (239895/named)
    *:*:*:*::*:10026                (239588/amavisd-new)
    *:*:*:*::*:8080         (355442/apache2)
    *:*:*:*::*:8081         (355442/apache2)
    *:*:*:*::*:10024                (239588/amavisd-new)
    *:*:*:*::*:53           (239895/named)
    *:*:*:*::*33e1:77d6:4687:53             (239895/named)
    *:*:*:*::*52eb:f6ff:fe54:53             (239895/named)
    *:*:*:*::*53            (239895/named)
    *:*:*:*::*:953          (239895/named)
    *:*:*:*::*:3128         (1397/(squid-1))
    *:*:*:*::*:3129         (1397/(squid-1))
    *:*:*:*::*:3306         (238966/mysqld)
    [localhost]9999         (1751/netdata)
    *:*:*:*::*:22           (1226/sshd:)
    *:*:*:*::*:21           (239878/pure-ftpd)
    *:*:*:*::*:25           (239465/master)
    [localhost]10           (359332/dovecot)
    [localhost]11           (1/init)
    *:*:*:*::*:80           (355442/apache2)
    [localhost]43           (359332/dovecot)
    *:*:*:*::*:443          (355442/apache2)
    *:*:*:*::*:465          (239465/master)
    *:*:*:*::*:587          (239465/master)
    *:*:*:*::*:9090         (1/init)
    *:*:*:*::*:995          (359332/dovecot)
    *:*:*:*::*:993          (359332/dovecot)
    
    
    
    
    ##### IPTABLES #####
    
    
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
    
    I'm on Ubuntu 20.04, php 7.4, and 8.1 (7.4 is default one).

    My problem : When i open "System" on isp web interface, i've got nothing, and in the console of chrome, i have 404 error :
    Code:
    jquery.min.js:2          GET https://serveur.caiveau.fr:8080/admin/server_list.php 404 (Not Found)
    
    This page "/admin/server_list.php" is existing in "/usr/local/ispconfig/interface/web/admin"
    I have the problem with all the possible choices in "system".
    I need to change defaut php version to 8.1, then i can't do it with ispconfig :'(
    Could you help me ?
    Do you need others informations to help me ?

    Thank's a lot
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    It is quite likely that your problem is not related to the ISPConfig update, my guess is you created a global alias for system (/admin folder) in your apache config somewhere. Remove or rename this global alias to fix the issue. Creating a global alias means redirecting traffic from all sites and also the ispconfig GUI to that new location, which makes all apps fail that contains a folder with this name.

    Never change the default PHP version of the OS, install additional PHP versions instead. The default PHP version of the OS changes only when you do a distribution upgrade. For Ubuntu 20.04, the default version must be 7.4. if you want to have PHP 8.1 as default version, then you must do a dist upgrade to Ubuntu 22.04.
     
    NoName;) likes this.
  3. NoName;)

    NoName;) New Member

    Ho !
    A well done !
    I found a vhost for Pihole :

    Code:
    <IfModule alias_module>
        Alias /admin /var/www/html/admin
        <Directory "/var/www/html/admin">
    
    Working fine now ;)
    THAAANNNNKKKK's !!
     

Share This Page