FreshRSS

๐Ÿ”’
โŒ About FreshRSS
There are new available articles, click to refresh the page.
Before yesterdayYour RSS feeds

A New Milestone with Galaxian

While I did happen to set a personal best on the Galaxian cabinet in the bavacade as my account was being migrated to our newest shared hosting server named after that 1979 classic alien space shooter, thatโ€™s not what this post is about. This post is about the amazing work Reclaimโ€™s sysadmin Chris Blankenship has been doing behind the scenes to get our cPanel servers running on Ubuntu. Itโ€™s a long story and Chris does an amazing job narrating why we have to move our infrastructure from Centos7 to alternative Linux distros on his blog, but the short version is they killed Centos7 and Kenny, so we have come up with alternatives over the next 18-24 months. Read Chrisโ€™s post for the bigger, longer, and uncut version of the story.

via GIPHY

The milestone the post title refers to is running a cPanel server on top of Ubuntu rather than CentOS, the shared hosting server Galaxian located in Frankfurt, Germany is doing just that, and I believe weโ€™ll have another, Galaga, running on the West Coast of the USA. Itโ€™s a big deal because we wanted to ensure in 2023 that all new shared hosting servers were were running on Ubuntu in order to future-proof our server fleet. The upgrading of our existing infrastructure will be a big job and we will be doing it over the course of at least two years, but this moment highlights the beginning of that shift, and that is really exciting. Sometimes the work of infrastructure can be not only invisible but thankless given the only time folks are knocking on their door is when something goes wrong. So join me in celebrating the awesome work happening, as hidden as it might be, when something not only goes right, but marks a path for moving our entire fleet of servers into the future. Avanti sysadmins of the world, and avanti Reclaim!

Ciao CentOS, Ciao Ubuntu

I actually got pretty excited when they finally announced CentOS 8.

Why?

Because Iโ€™m a weird computer guy who likes to try out different operating systems. Hell, I still have an OpenSolaris Live DVD from 2009 and I reseed Haiku torrents. I once even bought an overpriced 15-20 year old Mac desktop tower from a pawn shop just to play around with Mac OS 9.

So, as soon as I could, I spun up a local VM to test things out.

I had only been at Reclaim Hosting for a few months at that point, and had only officially been our SysAdmin for, like, a day when they announced CentOS 8. And my new role meant that I was going to be dealing with CentOS 8 quite a bit, seeing as how it was going to be the next version of the OS we run/ran quite a bit of our infrastructure on.

And then they killed CentOS.

And I had no idea what the hell we were supposed to do. Because if youโ€™re running an enterprise Linux server then youโ€™re gonna with the premier enterprise Linux distro: RHEL.

But if youโ€™re running a ton of enterprise Linux servers and donโ€™t have the budget to get a RHEL licenses for every single one, then youโ€™ll go with the free and community supported distro thatโ€™s, like, 99% compatible with RHEL: CentOS.

Well, I guess not anymoreโ€ฆ

I mean, rationally, I knew that alternatives/replacements were going to spring up. Eventually. Far too many people were far too reliant on CentOS to just let it die like that. But in the moment it was a little worrying, because:

  1. It wasnโ€™t clear which CentOS derivative was going to be the CentOS replacement.
  2. cPanel at the time was only supporting CentOS/RHEL, and cPanel hosting was (and still is) a large part of what Reclaim Hosting does.

So, yeah, very worrying in the moment.

But then cPanel made a great announcement: they were going to support Ubuntu.

Iโ€™ve run Ubuntu on both desktop and servers, and Iโ€™ll readily admit that Iโ€™ve had my problems with it (there are reasons why I run Manjaro on my desktop and not Ubuntu or one of its derivatives). apt can get weird awful sometimes with dependencies and I absolutely hate snaps. But itโ€™s not all bad with Ubuntu. Itโ€™s pretty straightforward to use, and I also like how there are ways to upgrade the server between releases (which is something that canโ€™t be said for CentOS/RHEL, or even Debian, at least if I recall correctly). Oh, and (to my knowledge) they havenโ€™t EOLโ€™d a major release of an OS that is relied on by countless people out of nowhere for no good reason.

So, I was rather content to start working on getting us Ubuntu-ready in preparation for CentOS 7โ€™s EOL.

But the Ubuntu stuff was still going to be a lot of work.

While both Ubuntu and CentOS are Linux, thereโ€™s differences in package managers, package names and dependencies, paths to configuration files, and so on. So it wasnโ€™t going to be a matter of just picking up our scripts from a CentOS machine and running them as they are on an Ubuntu machine. I had to test each part of the process, each script, each server vendor, each PHP module, and so on. If all of these tedious and repetitive little things werenโ€™t part of the process to automate something, I may have gone insane, and so on.

For the most part it was simple. Replace yum with apt, replace checks for 7 with checks for 20.04, change the paths of some binaries, AND SO ON.

Maybe the tedium and repetition did drive me to madness, and so on.

It was actually the install processes for cPanel and Bitninja that caused the most headaches during the process.

Bitninja needed a specific dependency before it could be installed on Ubuntu, and a botched install of cPanel did something weird to the repos. So I had to install that package prior to doing anything else.

apt install apt-transport-https --yes

And then the reason why the cPanel install was getting botched was that it didnโ€™t like the installed-by-default MySQL client. So that (and its dependencies) had to be uninstalled rather early as well. It also had trouble installing a few dependencies, so I installed these right after.

apt remove snmp libsnmp35 libmysqlclient21 --yes && \
apt install libnl-genl-3-200 libnl-3-200 --yes

But even after all of that the cPanel install kept stalling up because service restarts (and outdated kernel versions) needed to be acknowledged interactively. So I had to make a conf change to just let those things happen automatically.

sed -i "s/^\#\$nrconf{restart}.*$/\$nrconf{restart} \= \'a\'\;/" /etc/needrestart/needrestart.conf && \
sed -i "s/^\#\$nrconf{kernelhints}.*$/\$nrconf{kernelhints} \= \-1\;/" /etc/needrestart/needrestart.conf

And then after cPanel was finally installed, I realized that the test WordPress instance I setup was totally broken. And after digging through cPanelโ€™s PHP settings I saw that quite a few critical Easy Apache modules were not installed. Turns out that while CentOS has their package names like mod_whatever, Ubuntu has them like mod-whatever. But this was easy enough to fix with more sed.

sed -i "s/mod_/mod\-/g" /path/to/ea4modules.json

So after quite a bit of trial and error, quite a bit of reading the logs, and quite a bit of yelling at my machine, I finally was able to get an Ubuntu server running cPanel and all the other normal stuff! And after a few more tweaks and fixes, I was able to get another one up; and that second one became our first Shared Hosting server running Ubuntu as opposed to CentOS.

Speaking of which, thatโ€™s where youโ€™re reading this from now. Yeah, my sites are now being served from a new Ubuntu server rather than a CentOS server. I was my own test subject. Partly because I wanted to hold off on subjecting anyone else to my OS experiments, and partly because FIRST ACCOUNT ON OUR FIRST UBUNTU SHARED HOSTING SERVER. WOO.

So thatโ€™s nice.

Ubuntu is definitely going to be our future. At least on the cPanel front.

But weโ€™re not gonna be fully locked in to Ubuntu like we were with CentOS. Just in case, yโ€™know? Because while cPanel is a big part of what Reclaim Hosting does, it isnโ€™t the only thing, and some of the things we run do require something CentOS-ish. And that something CentOS-ish is shaping up to be AlmaLinux.

And maybe (thanks to cPanel) we might even be able use AlmaLinux to extend the lives of our existing servers through in-place upgrades from CentOS 7!

Maybe.

Thatโ€™s something I still need to look into.

But Iโ€™ll talk about that more when we get there.

New 'Ubuntu Flatpak Remix' Has (Unofficial) Flatpak Support Preinstalled

An anonymous reader shares this report from 9to5Linux: After Canonical's announcement that future Ubuntu releases won't include Flatpak support by default, someone already made an unofficial Ubuntu flavor that ships with support for Flatpak apps preinstalled and working out of the box, called Ubuntu Flatpak Remix. Meet Ubuntu Flatpak Remix, an unofficial Ubuntu derivative that doesn't feature support for Snap apps and comes with support for Flatpak apps working out of the box. Several key apps are preinstalled in the Flatpak format rather than as a Snap app, including the Mozilla Firefox web browser, Mozilla Thunderbird email client, and LibreOffice office suite.... Support for the Flathub portal is installed as well, so you'll be able to install more apps with just a few clicks.

Read more of this story at Slashdot.

Canonical Announces General Availability of Ubuntu Pro, Free for Up to 5 PCs

An anonymous reader quotes a report from 9to5Linux: Ubuntu maker Canonical announced Thursday the general availability of its Ubuntu Pro comprehensive subscription for Ubuntu users who want to expand the security updates and compliance of their systems. First released in a beta version in October 2022 with free subscriptions for personal and small-scale commercial use on up to 5 machines, Ubuntu Pro is only available for Ubuntu LTS (Long-Term Support) releases, starting with Ubuntu 16.04, and promises up to 10 years of security updates, as well as access to exclusive tools. These include Ansible, Apache Tomcat, Apache Zookeeper, Docker, Drupal, Nagios, Node.js, phpMyAdmin, Puppet, PowerDNS, Python 2, Redis, Rust, WordPress, ROS, and many others. The Ubuntu Pro subscription promises patches for critical CVEs in less than 24 hours and expands the optional technical support to an additional 23,000 open-source packages and toolchains beyond the main operating system, not just for Ubuntu's main software repository.... Canonical says that if you need Ubuntu Pro for more than five PCs, you will have to purchase a paid plan, which is currently priced at $25 USD per year for workstations or $500 USD per year for servers with a 30-day free trial. Official Ubuntu Community members get free support for up to 50 machines.

Read more of this story at Slashdot.

โŒ