How to set up DNS on Ubuntu 22.04 without a netplan config.

I finally found the solution here: https://serverok.in/systemd-resolved ( Archive.org cache) In case the link dies in the future, Create a file: sudo mkdir /etc/systemd/resolved.conf.d/ sudo nano /etc/systemd/resolved.conf.d/dns_servers.conf Add my DNS in this file: [Resolve] DNS=8.8.8.8 1.1.1.1 Then restart systemd-resolved sudo systemctl restart systemd-resolved It works even after reboot :-) PS : No idea why my DNS configuration was lost during the upgrade from 20.04 to 22.04.

January 11, 2024 · 1 min · 66 words · shelby

APC on a WHM/CPanel Server

One of my clients needed APC installed for their application, so I initially tried to install it via WHM module installer …. this failed. Here are the steps that I took to get it working via CLI{{ double-space-with-newline }}First download the newest stable release of APC and then run the following commands. wget http://pecl.php.net/get/APC-3.1.6.tgz{{ double-space-with-newline }}tar -xzf APC-3.1.6.tgz{{ double-space-with-newline }}cd APC-3.1.6{{ double-space-with-newline }}which php{{ double-space-with-newline }}phpize If you do not have pcre installed the make install will fail. So make sure to run the following yum command to install it with the development packages for safe measure.

February 21, 2011 · 2 min · 234 words · shelby