Upgrade ISPconfig from Ubuntu 20.04 to Ubuntu 22.04

Discussion in 'Installation/Configuration' started by PilouFace, May 30, 2023.

  1. PilouFace

    PilouFace New Member

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 22.04.2 LTS
    
    [INFO] uptime:  12:32:17 up 8 min,  1 user,  load average: 0.00, 0.17, 0.13
    
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:           1.9Gi       1.7Gi        71Mi        20Mi       194Mi        90Mi
    Swap:           95Mi        95Mi       0.0Ki
    
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION
    ● 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.
    1 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.9p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 8.1.2-1ubuntu2.11
    [INFO] php-cgi (used for cgi php in default vhost!) is version 8.1.2
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 954)
    [INFO] I found the following mail server(s):
            Postfix (PID 1812)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 714)
    [INFO] I found the following imap server(s):
            Dovecot (PID 714)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 1068)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:3306         (909/mariadbd)
    ***.***.***.***:53              (802/named)
    
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Try reinstalling roundcube by following ISPConfig PST for Ubuntu 20.04.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Which error do you get when you access RoundCube?
     
  4. PilouFace

    PilouFace New Member

    I have 404 error, it can't find the webpage of roundcube.
     
  5. PilouFace

    PilouFace New Member

    After doing that i have error 403
    Forbidden
    You don't have permission to access this resource.

    Mailman has an error :
    Code:
    Jun 01 17:43:16 mail.****.**** mailmanctl[26118]: Traceback (most recent call last):
    Jun 01 17:43:16 mail.****.**** mailmanctl[26118]:   File "/usr/lib/mailman/bin/mailmanctl", line 106, in <module>
    Jun 01 17:43:16 mail.****.**** mailmanctl[26118]:     from Mailman import mm_cfg
    Jun 01 17:43:16 mail.****.**** mailmanctl[26118]: ImportError: No module named Mailman
    Jun 01 17:43:16 mail.****.**** systemd[1]: mailman.service: Control process exited, code=exited, status=1/FAILURE
     
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    As far as I can remember, roundcube should be straightforward. Did you edit the RoundCube apache configuration file as instructed? How did you access your roundcube page?

    Mailmain is already explained in the tutorial to upgrade from 20.04 to 22.04. It must be removed.
     
  7. PilouFace

    PilouFace New Member

    To access. I do domainname.***/webmail but i get error 403 forbidden.
    I did follow the tutorial on upgrading from ubuntu 20.04 to 22.04 but it's not working.
    I did all as instructed.
     
  8. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    This will depend very much on your setup but if your setup is based on ISPConfig Perfecf Server Tutorial for Ubuntu 20.04 and you were root when doing it, it should work straightforward.

    Otherwise, as it complained about its permissions, do check your steps back.
     
  9. PilouFace

    PilouFace New Member

    I did it as root and my setup is based on ISPConfig Perfecf Server Tutorial for Ubuntu 20.04
     
  10. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Have you reloaded apache2?
     
  11. PilouFace

    PilouFace New Member

    Yes, i even restarted the vps.
     
  12. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

  13. barbarab

    barbarab Member HowtoForge Supporter

    Hi, I have been using ispconfig and ubuntu 20.04 (in a virtualbox machine) for a long time with great satisfaction and no problems (thanks to the perfect server guide).
    Now I followed this guide https://www.howtoforge.com/update-the-ispconfig-perfect-server-from-ubuntu-20-04-to-ubuntu-22-04/
    The panel works, but I cannot access to the webmail page. I get the "forbidden" error (403).
    Here my apache.conf
    Code:
    #cat /etc/roundcube/apache.conf
    # Those aliases do not work properly with several hosts on your apache server
    # Uncomment them to use it or adapt them to your configuration
    #    Alias /roundcube /var/lib/roundcube
    
    <Directory /var/lib/roundcube/>
      Options +FollowSymLinks
      # This is needed to parse /var/lib/roundcube/.htaccess. See its
      # content before setting AllowOverride to None.
      AllowOverride All
      <IfVersion >= 2.3>
        Require all granted
      </IfVersion>
      <IfVersion < 2.3>
        Order allow,deny
        Allow from all
      </IfVersion>
    </Directory>
    
    # Protecting basic directories:
    <Directory /var/lib/roundcube/config>
            Options -FollowSymLinks
            AllowOverride None
    </Directory>
    
    <Directory /var/lib/roundcube/temp>
            Options -FollowSymLinks
            AllowOverride None
            <IfVersion >= 2.3>
              Require all denied
            </IfVersion>
            <IfVersion < 2.3>
              Order allow,deny
              Deny from all
            </IfVersion>
    </Directory>
    
    <Directory /var/lib/roundcube/logs>
            Options -FollowSymLinks
            AllowOverride None
            <IfVersion >= 2.3>
              Require all denied
            </IfVersion>
            <IfVersion < 2.3>
              Order allow,deny
              Deny from all
            </IfVersion>
    </Directory>
    And here my htf report.
    Thank you in advance for any suggestions!

    Code:
    #cat htf_report.txt
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 22.04.4 LTS
     
    [INFO] uptime:  17:41:18 up 1 day,  2:25,  2 users,  load average: 0,06, 0,06, 0,11
     
    [INFO] memory:
                   totale        utilizzata        libera      condivisa  buff/cache   disponibile
    Mem:           4,8Gi       3,1Gi       232Mi        49Mi       1,5Gi       1,4Gi
    Swap:             0B          0B          0B
     
    [INFO] systemd failed services status:
      UNIT              LOAD   ACTIVE SUB    DESCRIPTION
    ● logrotate.service loaded failed failed Rotate log files
    
    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.
    1 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.11p2
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 8.1.2-1ubuntu2.17
    [INFO] php-cgi (used for cgi php in default vhost!) is version 8.1.2
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 226343)
    [INFO] I found the following mail server(s):
            Postfix (PID 15953)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 15991)
    [INFO] I found the following imap server(s):
            Dovecot (PID 15991)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 16028)
    
    ##### LISTENING PORTS #####
    (solo           ()
    Indirizzo               (remoto)
    [anywhere]:3306         (15275/mariadbd)
    [localhost]:11211               (760/memcached)
    ***.***.***.***:53              (497/systemd-resolve)
    ***.***.***.***:53              (16036/named)
    ***.***.***.***:53              (16036/named)
    ***.***.***.***:53              (16036/named)
    ***.***.***.***:53              (16036/named)
    ***.***.***.***:53              (16036/named)
    ***.***.***.***:53              (16036/named)
    [anywhere]:587          (15953/master)
    [anywhere]:995          (15991/dovecot)
    [anywhere]:993          (15991/dovecot)
    [anywhere]:143          (15991/dovecot)
    [anywhere]:110          (15991/dovecot)
    [localhost]:10026               (15969/amavisd-new)
    [localhost]:10027               (15953/master)
    [localhost]:10024               (15969/amavisd-new)
    [localhost]:10025               (15953/master)
    [localhost]:10023               (1052/postgrey)
    [anywhere]:22           (783/sshd:)
    [anywhere]:21           (16028/pure-ftpd)
    [anywhere]:25           (15953/master)
    [anywhere]:465          (15953/master)
    [localhost]:53          (16036/named)
    [localhost]:53          (16036/named)
    [localhost]:53          (16036/named)
    [localhost]:53          (16036/named)
    [localhost]:53          (16036/named)
    [localhost]:53          (16036/named)
    [localhost]:953         (16036/named)
    [localhost]:953         (16036/named)
    [localhost]:953         (16036/named)
    [localhost]:953         (16036/named)
    [localhost]:953         (16036/named)
    [localhost]:953         (16036/named)
    [localhost]:631         (40641/cupsd)
    2a01:e11:2013:8310:9:53         (16036/named)
    2a01:e11:2013:8310:9:53         (16036/named)
    2a01:e11:2013:8310:9:53         (16036/named)
    2a01:e11:2013:8310:9:53         (16036/named)
    2a01:e11:2013:8310:9:53         (16036/named)
    2a01:e11:2013:8310:9:53         (16036/named)
    *:*:*:*::*:8081         (226343/apache2)
    *:*:*:*::*:8080         (226343/apache2)
    *:*:*:*::*:3306         (15275/mariadbd)
    *:*:*:*::*:953          (16036/named)
    *:*:*:*::*:953          (16036/named)
    *:*:*:*::*:953          (16036/named)
    *:*:*:*::*:953          (16036/named)
    *:*:*:*::*:953          (16036/named)
    *:*:*:*::*:953          (16036/named)
    *:*:*:*::*:587          (15953/master)
    *:*:*:*::*:995          (15991/dovecot)
    *:*:*:*::*:993          (15991/dovecot)
    *:*:*:*::*:631          (40641/cupsd)
    [localhost]43           (15991/dovecot)
    [localhost]10           (15991/dovecot)
    *:*:*:*::*:80           (226343/apache2)
    *:*:*:*::*:22           (783/sshd:)
    *:*:*:*::*:21           (16028/pure-ftpd)
    *:*:*:*::*:25           (15953/master)
    *:*:*:*::*:465          (15953/master)
    *:*:*:*::*:443          (226343/apache2)
    *:*:*:*::*6a19:5375:b041:53             (16036/named)
    *:*:*:*::*6a19:5375:b041:53             (16036/named)
    *:*:*:*::*6a19:5375:b041:53             (16036/named)
    *:*:*:*::*6a19:5375:b041:53             (16036/named)
    *:*:*:*::*6a19:5375:b041:53             (16036/named)
    *:*:*:*::*6a19:5375:b041:53             (16036/named)
    *:*:*:*::*:53           (16036/named)
    *:*:*:*::*:53           (16036/named)
    *:*:*:*::*:53           (16036/named)
    *:*:*:*::*:53           (16036/named)
    *:*:*:*::*:53           (16036/named)
    *:*:*:*::*:53           (16036/named)
    *:*:*:*::*:10023                (1052/postgrey)
    *:*:*:*::*:10024                (15969/amavisd-new)
    *:*:*:*::*:10026                (15969/amavisd-new)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
     
  14. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    Is the roundcube config available in
    ls /etc/apache2/conf-enabled/

    I assume you want to have /webmail working for everyone on every domain, which might not be the best idea but

    try uncommenting the Alias
     
  15. barbarab

    barbarab Member HowtoForge Supporter

    yes, I followed @Taleman suggestion about creating this symlink
    Code:
    #ls -l /etc/apache2/conf-available/
    totale 48
    -rw-r--r-- 1 root root  221 ott  1  2020 apache2-doc.conf
    -rw-r--r-- 1 root root  315 ott  1  2020 charset.conf
    -rw-r--r-- 1 root root   73 apr 24  2022 httpoxy.conf
    -rw-r--r-- 1 root root  127 ago 11  2013 javascript-common.conf
    -rw-r--r-- 1 root root 3224 ott  1  2020 localized-error-pages.conf
    -rw-r--r-- 1 root root  189 ott  1  2020 other-vhosts-access-log.conf
    -rw-r--r-- 1 root root 1139 mar  2  2022 php7.4-cgi.conf
    -rw-r--r-- 1 root root  804 mar  2  2022 php7.4-fpm.conf
    -rw-r--r-- 1 root root 1139 mag  1 12:10 php8.1-cgi.conf
    -rw-r--r-- 1 root root 1278 mag  1 12:10 php8.1-fpm.conf
    lrwxrwxrwx 1 root root   26 mag 26 17:22 roundcube.conf -> /etc/roundcube/apache.conf
    -rw-r--r-- 1 root root 2174 ott  1  2020 security.conf
    -rw-r--r-- 1 root root  455 ott  1  2020 serve-cgi-bin.conf
    
    I uncommented the Alias, but unfortunately the error is still there and I cannot access to the webmail page
     
  16. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    Hmm I wonder, I found my phpmyadmin served by :8081 on a multiserver ispconfig install.
    could it be that apps vhost is meant to serve webmail aswell @till ?
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, webmail and phpmyadmin are configured on the apps vhost, that's especially important for nginx systems. On apache systems, webmail might work also by adding /webmail on normal site domains if you enabled the global alias for /webmail in the roundcube apache config file. According to post #33 there is no global webmail alias, so roundcube is only accessible via apps vhost then.
     
    ahrasis and ztk.me like this.
  18. barbarab

    barbarab Member HowtoForge Supporter

    Hi, thank you @till and @ztk.me
    since /phpmyadmin was not accessible either, I checked another machine and finally solved it by reinstalling from the packages both Roundcube and Phpmyadmin, which had mysteriously disappeared after the update.
    Here is the new working apache file
    Code:
    $cat /etc/roundcube/apache.conf
    # Those aliases do not work properly with several hosts on your apache server
    # Uncomment them to use it or adapt them to your configuration
    #    Alias /roundcube /var/lib/roundcube/public_html
    
    <Directory /var/lib/roundcube/public_html/>
      Options +FollowSymLinks
      # This is needed to parse /var/lib/roundcube/.htaccess. See its
      # content before setting AllowOverride to None.
      AllowOverride All
      <IfVersion >= 2.3>
        Require all granted
      </IfVersion>
      <IfVersion < 2.3>
        Order allow,deny
        Allow from all
      </IfVersion>
    </Directory>
    
    # Protecting basic directories (not needed when the document root is
    # /var/lib/roundcube/public_html):
    <Directory /var/lib/roundcube/config>
      Options -FollowSymLinks
      AllowOverride None
    </Directory>
    
    <Directory /var/lib/roundcube/temp>
      Options -FollowSymLinks
      AllowOverride None
      <IfVersion >= 2.3>
        Require all denied
      </IfVersion>
      <IfVersion < 2.3>
        Order allow,deny
        Deny from all
      </IfVersion>
    </Directory>
    
    <Directory /var/lib/roundcube/logs>
      Options -FollowSymLinks
      AllowOverride None
      <IfVersion >= 2.3>
        Require all denied
      </IfVersion>
      <IfVersion < 2.3>
        Order allow,deny
        Deny from all
      </IfVersion>
    </Directory>
    I have the doubt that I misinterpreted the questions regarding the configuration of Roundcube and Phopmyadmin during the ispconfig update, the Italian translation is unintelligible. I answered "no" to both - was I wrong? is there any way to see the question in English?
     
    ztk.me likes this.
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig neither asks things about phpmyadmin nor Roundcube nor configures or updates them. So, whatever questions you answered, they were not from an ISPConfig update. And the ISPConfig Updater is in English and German only, no Italian translation at all. I guess you mix up ISPConfig with apt here.
     
  20. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    you would need
    Code:
    apt-get install language-pack-en-base
    most likely
    dpkg-reconfigure locales for system wide setting or enablement of languages
    and override per use case
    $ export LANG=en_US
    $ apt install
    or maybe
    $ LANG=en_US apt install

    heck some apps use LANGUAGE
    yeah probably just
    export LC_ALL=en_GB.UTF-8 ( just another lang example, check what you have installed )
    export LANGUAGE=en_US.UTF-8


    check using
    $locale

    export is valid for the current session, only

    but yeah,
    LC_MESSAGES

    might be enough, give it a try :)

    dpkg-reconfigure -plow dash
     
    Last edited: May 27, 2024

Share This Page