The Perfect Server on Ubuntu 20.04 (TESTED)

Discussion in 'Installation/Configuration' started by ustoopia, Apr 26, 2020.

  1. ustoopia

    ustoopia Member

    Hey everybody,

    Thought I might as well post my experience that I've had when I tried to install ISPconfig on a fresh Ubuntu 20.04 server. All went well! The server is up and running, and I haven't ran into any errors (yet?). I did however ran in to a couple minor things that I will mention below.
    I carefully followed every step from the guide for ISPconfig on Ubuntu 18.04 from this website (https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/), and there are a couple of things that I had to do differently, but with the same end results.

    At the point where we install apache and php7.2 in the guide, change 7.2 in to 7.4 for all entries. Also I noticed that php-gettext and php7.4-recode packages could not be found. So I just skipped those. Of course the same thing counts for where you install php7.4-fpm and php7.4-opcache later on in the guide. Now since I have no idea what these two packages do exactly, I can not say if this might cause problems in the future. Also I did not yet look in to finding out a way to install these packages or a workaround or whatever. I'm curious if I even need to or not.

    Where we install jailkit 2.19 in the guide, change 2.19 in to version 2.21 and you're good.

    At step 7 in the guide this is mentioned : In case you get an error for thelast 'patch' command, then Ubuntu has probably fixed the issue in the meantime, so it should be safe to ignore that error then.
    I indeed got that the last patch error so I did not complete the patching. It all looked good to me.

    Considered that I followed every step from the 18.04 guide, and the tiny edits I had to make, do I now have a system that is ready for production? Or are there things included in the guide that I no longer had to perform and the fact that I did might cause problems later on?? Has anybody else tried to do the same thing also perhaps? And if so can you share if you learned any things that you could share with us?
     
  2. BlueEagle

    BlueEagle New Member

    When i ran the tutorial for Ubuntu 20.04 for nginx I ran into an issue where it looked for ispconfig.sock in /var/lib/php7.2-fpm which does not exist. This resulted in a BAD GATEWAY error when attempting to open the ISP Config interface.

    To fix this I opened /tmp/ispconfig3*/install/dist/conf/ubutnu1804.conf.php and changed the lines
    Code:
    $conf['nginx']['php_fpm_init_script'] = 'php7.2-fpm';
    $conf['nginx']['php_fpm_socket_dir'] = '/var/lib/php7.2-fpm';
    
    to
    Code:
    $conf['nginx']['php_fpm_init_script'] = 'php7.4-fpm';
    $conf['nginx']['php_fpm_socket_dir'] = '/var/lib/php7.4-fpm';
    
    the i ran 'php -q update.php' from the install directory of ispconfig having it reconfigure the services. That resulted in a working system.

    I have not tested, but you can likely make the above changes before the first install, and have it work on first go.
     
    ustoopia likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig does not support Ubuntu 20.04 yet, therefore it can not detect the PHP version used by Ubuntu 20.04. I recommend not setup and use ISPConfig on Ubuntu 20.04 for production servers until we adjusted the installer and tested it, there might be further issues due to the use of PHP 7.4 and also due to the use of the MariaDB version that ships with the new Ubuntu version. The next ISPConfig release 3.1.16 will contain support for Ubuntu 20.04.
     
    KatyComputer, ahrasis and ustoopia like this.
  4. ustoopia

    ustoopia Member

    Thanks Till. For my production machine I will most definitely wait for the official release and guide.
     
  5. nhybgtvfr

    nhybgtvfr Active Member

    haven't tested 20.04 with ispconfig myself yet, hope to get around to that this week, although I have had a quick look at 20.04.
    I've tested ispconfig3.1.15p3 on 18.04, only installing php7.4, and using MariaDB 10.4, I've tested with this quite extensively by now (including multi-server) and I've yet to encounter any issues. (well, there was in fact, 1 issue, but that was all my own fault doing something stupid and nothing to do with ispconfig, and/or server software/configuration)
    I used the ondrej repo's for php and apache, and those repo's are actually ahead of the default versions of both apache and php in ubuntu 20.04. apache 2.4.43 vs 2.4.41 (20.04) and php7.4.5 vs php7.4.3 (20.04). 20.04 also used MariaDB 10.3 by default.

    the only thing I needed to remember, was to change all the 7.2 path references to 7.4 in server-config - <server> - web - php settings.
    there's also one for the fastcgi php.ini path in the fastcgi tab, although I can't remember now if I actually needed to change that or if it picked up the right path automatically. and this would be fixed in the release that officially supports 20.04.

    so i'm confident that ispconfig won't have any issues with php7.4 as default.
    and as I've used the 20.04 default or newer versions of everything else (https://www.howtoforge.com/community/threads/ubuntu-18-04-perfect-server-apache-with-mods.83434/), albeit on 18.04, I don't foresee any problems.
    that said, I wouldn't look at putting 20.04 into production until I've done at least a couple of weeks testing, and ispconfig officially supports it. (i'd probably still end up modding it even then though, eg phpmyadmin 5.02 instead of 4.9.* that 20.04 uses)

    hopefully the new perfect server tutorial will get a bit more of a rewrite rather than a cut and paste to change version numbers, ie include rspamd as part of a new clean install, I think it should also include the install/config of the roundcube ispconfig plugins.
    I see little point in including how to install roundcube without actually tying roundcube into ispconfig. :)
    (i know that tutorials available separately, i just think a setup guide should be a complete, all-in-one, setup guide, and i'm sure a lot of ispconfig newcomers wouldn't even know about them otherwise)
     
    ustoopia likes this.
  6. KalanVryce

    KalanVryce New Member

    Just out of curiosity is there any rough, possible guess, maybe kinda deal, on when 3.1.16 may be coming? Yes I realize that 20.04 has just been released and I used all of those synonyms with the understanding that I'm not looking for anything specific. I would like to spin up my 20.04 and get everything moved over but prefer to wait for the official thumbs up. Thanks in advance for your time for any answer including a "no".
     
  7. ahrasis

    ahrasis Well-Known Member

    My guess is in a week or two or may be three because @till did say that he is testing both new Ubuntu and Centos versions.

    Those who are "ambitious and brave" may do the upgrading themselves, the best is of course on a test server, but could also be done on non commercial production server, simply because there is actually no real danger when I did such a thing during Ubuntu 18.04 release the last two years back before the official ISPConfig support and guide was released back then.

    When the official version of ISPConfig and its guide are released, one can always run through it one more time, just to be sure and safe, and update ISPConfig one more time.

    That said, I also haven't attempted the upgrade as I did before since I have been busy during this fasting month.
     
  8. Ryein

    Ryein New Member

    Cool, looking forward to using this on 20.04.
     
  9. wvh

    wvh New Member HowtoForge Supporter

    I, too, have been looking forward to doing a new install on Ubuntu 20.04. I have to deploy a new server and do not want to waste time installing Ubuntu 18. I am sure that whoever is working on it is busy, but I am getting desperate enough waiting that I may have to use the outdated version of Ubuntu. Any updates on a possible release date would be VERY much appreciated. TIA.
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What outdated version? Ubuntu 16.04 and 18.04 are still supported so they are not outdated.
    Install 18.04 now and dist-upgrade to 20.04 in August or September.
     
    Th0m likes this.
  11. wvh

    wvh New Member HowtoForge Supporter

    Perhaps "outdated" was the wrong term. "Older" would probably have been a better choice of words. I actually did attempt to do a dist-upgrade of a current install of Ubuntu 18 to 20.04 but it doesn't want to complete and I end up having to fall back to the previous version. I have had this issue in the past with major distro upgrades, which is why I prefer to do a new install from scratch.
     
  12. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Ubuntu 18.04 upgrade to 20.04 is going to be supported about the time when 20.04.1 is released, sometime in August is my guess. Then do-release-upgrade command should do the upgrade.
    But Ubuntu dist-upgrades have not been reliable enough to my liking. But I do not use Ubuntu on my own servers and desktops, I use Debian GNU/Linux. This may be just because Ubuntu does not publish detailed upgrade instructions. On Debian the dist-upgdades have worked well since Debian Project started, provided the upgrade instructions in Release Notes are followed.
    https://www.debian.org/releases/stable/releasenotes
     
  13. ahrasis

    ahrasis Well-Known Member

    That's a fair comment from non-ubuntu user though as one of the users I'd say, on the other hand, that the Ubuntu upgrade is actually reliable.

    I planned to upgrade to the latest Ubuntu LTS soon after I finished making minor modifications to my copy of ISPConfig 3.1.15p3 to cover version 20.04 and will stay with it until official ISPConfig supports it.

    It's true one could be waiting until August before getting the official supports for Ubuntu 20.04 but it could be any time earlier too, so only do it if your servers aren't commercial servers and you don't need an immediate official support from here.
     

Share This Page