Wednesday, July 3, 2024
HomeOperating SystemsUbuntuInstall Ajenti Control Panel on Ubuntu 18.04 LTS

Install Ajenti Control Panel on Ubuntu 18.04 LTS

In this blog post, we will look at how to Install Ajenti Control Panel on Ubuntu 18.04 LTS. Ajenti is an open source Web-based Server management and configuration Panel written in Python, JavaScript, and AngularJS. Those who’ll benefit more from Ajenti are system Administrations managing websites, DNS, Cron, Firewall, Files, Logs, Mail hosting services e.t.c.

The installation of Ajenti Control Panel on Ubuntu 18.04 LTS is an easy and quick process since an automated installer is provided for you. You only need to download and run a bash script installer which does all the dirty work for you.

Step 1: Update your system

Ensure your system and packages are updated.

sudo apt update
sudo apt -y upgrade

It is recommended to reboot your server after an upgrade.

sudo reboot

Step 2: Install Ajenti Control Panel on Ubuntu 18.04 LTS

You can choose to install Ajenti V2 or Ajenti 1.x. From my tests, Ajenti V2 is limited in features. If you need a complete server management solution, then choose v1.x.

Option 1: Install Ajenti 1.x on Ubuntu 18.04 LTS

1. Install python-imaging dependency:

sudo apt -y install wget
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_3.1.2-0ubuntu1.6_all.deb
sudo apt install -f ./python-imaging_3.1.2-0ubuntu1.6_all.deb

Sample output:

....
Preparing to unpack .../10-python-olefile_0.45.1-1_all.deb ...
Unpacking python-olefile (0.45.1-1) ...
Setting up liblcms2-2:amd64 (2.9-1ubuntu0.1) ...
Setting up libjbig0:amd64 (2.1-3.1build1) ...
Setting up libjpeg-turbo8:amd64 (1.5.2-0ubuntu5.18.04.4) ...
Setting up libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.6) ...
Setting up libwebp6:amd64 (0.6.1-2ubuntu0.18.04.1) ...
Setting up libjpeg8:amd64 (8c-2ubuntu8) ...
Setting up python2.7 (2.7.17-1~18.04ubuntu1.6) ...
Setting up libtiff5:amd64 (4.0.9-5ubuntu0.4) ...
Setting up libpython-stdlib:amd64 (2.7.15~rc1-1) ...
Setting up libwebpmux3:amd64 (0.6.1-2ubuntu0.18.04.1) ...
Setting up libwebpdemux2:amd64 (0.6.1-2ubuntu0.18.04.1) ...
Setting up python (2.7.15~rc1-1) ...
Setting up python-olefile (0.45.1-1) ...
Setting up python-pil:amd64 (5.1.0-1ubuntu0.6) ...
Setting up python-imaging (3.1.2-0ubuntu1.6) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...

2. Import Ajenti repository GPG key

wget http://repo.ajenti.org/debian/key -O- | sudo apt-key add -

3. Add Ajenti repository:

echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" | sudo tee /etc/apt/sources.list.d/ajenti.list

4. Install Ajenti 1.x on Ubuntu 18.04

sudo apt update
sudo apt install ajenti

Now start and enable Ajenti  service:

sudo systemctl status ajenti
sudo systemctl enable ajenti

Ajenti will listen on HTTPS port 8000 by default

install ajenti 1.x ubuntu 18.04 login

Login to Ajenti 1.x using:

Default username : root
Default password : admin

Ajenti 1.x dashboard looks like below:

Install Ajenti V  Plugin

Ajenti V is a plugin suite for Ajenti 1.x, which adds fast, efficient and easy-to-setup web hosting capabilities. Install Ajenti V on Ubuntu 18.04 by running:

sudo apt install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.2-fpm php7.2-mysql

Restart ajenti service after above installations:

sudo systemctl restart ajenti

Websites management link will be added to Ajenti interface. Enable Nginx and FPM services.

install ajenti 1.x ubuntu 18.04 websites

You will see:

install ajenti 1.x ubuntu 18.04 websites fpm

You can also manage MySQL databases.

install ajenti 1.x ubuntu 18.04 mysql management

Option 2: Install Ajenti 2 on Ubuntu 18.04 LTS (Not Fully Featured)

Download and run the installer using the following commands:

curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s -

In a nutshell, this is what the installer does behind the hood:

  • Install dependencies and Python development tools required by Ajenti
  • Upgrade the Python Pip package manager
  • Install Ajenti and its Plugins

The installer will enable the ajenti service for you.

:: Installing initscript
/bin/systemctl
Created symlink /etc/systemd/system/multi-user.target.wants/ajenti.service -> /lib/systemd/system/ajenti.service.
:: Complete

Ajenti will be listening at HTTP port 8000
Log in with your root password or another OS user
Access  Ajenti 2 Control Panel

As seen from the installation output, the Ajenti Control Panel will be listening on HTTP port 8000. If you have UFW firewall enabled, allow this port to access the web interface.

sudo ufw allow 8000/tcp

Then open your favorite web browser and navigate to http://[IP|Hostname]:8000

install ajenti ubuntu 18.04 login

Log in with your root password or another OS user to start managing your server. The default page after login looks like one below:

install ajenti ubuntu 18.04 dashboard

Ajenti also gives you the conform of launching a terminal from a web browser as the user logged in as.

install ajenti ubuntu 18.04 terminal

Update and install other Ajenti Plugins under the “Plugins” section. You now have a working Ajenti Control Panel installed on your Ubuntu 18.04 LTS server.

Recommended Linux Books  to read:

Nicole Veronica Rubhabha
Nicole Veronica Rubhabha
A highly competent and organized individual DotNet developer with a track record of architecting and developing web client-server applications. Recognized as a personable, dedicated performer who demonstrates innovation, communication, and teamwork to ensure quality and timely project completion. Expertise in C#, ASP.Net, MVC, LINQ, EF 6, Web Services, SQL Server, MySql, Web development,
RELATED ARTICLES

Most Popular

Recent Comments