Install Ajenti (cPanel alternative) in Ubuntu 18.04 Server LTS

L Song
4 min readJan 9, 2021

One of the most headache problems of using Ubuntu as a server is its frequent changes with updates. It is a good thing for functions and security but for deployment that’s normally mean more workload. However, it is still quite good for personal use, I’ve recently setup a new test server and found the previous method of installing ajenti is not working anymore, therefore I’ve noted what is working for now here. If you’re looking for a more stable deployment maybe consider Debian based OS.

Please note: this approach will NOT work on Ubuntu 20.04, I had a very quick try and failed, probably due to the change in python version.

>>>>. This note is based on using Ubuntu 18.04 Server LTS.

First of all, download the server image and make a fresh install.

Apply latest updates, and then install the python-pil package (for python-imaging, which is needed by ajenti V)

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install python-pil python3-pil

For some reason the python-imaging is still needed, I’ve uploaded a copy here or you can grab one from launchpad.net, then manually install it.

wget http://lsong.net/share/python-imaging_4.1.1-3build2_all.deb
sudo dpkg -i python-imaging_4.1.1–3build2_all.deb

Now the most of the preparation is done, as the date of 8th Jan, 2021. You can use the installation script to install Ajenti now.

wget -O- https://raw.github.com/ajenti/ajenti/1.x/scripts/install-ubuntu.sh | sudo sh

After loads of scripts flying over your screen, hopefully everything would be installed properly and the following information should be displayed. If an error is spotted, maybe you need to do a bit more investigations.

--

--