There is a new version of this tutorial available for Ubuntu 20.04 (Focal Fossa).

This tutorial exists for these OS versions

On this page

  1. Requirements
  2. Getting Started
  3. Install Required Dependency
  4. Install Ajenti
  5. Access Ajenti Web Interface
  6. Conclusion

Ajenti is a free, open-source, and lightweight control panel that can be used to manage servers from a web-based interface. With Ajenti, you can easily manage DNS, Websites, Firewall, Mail, File server, Logs and many more. Ajenti is written in Python, requires very few resources, and compatible with many Linux distributions. So It is the best choice for you if you want to monitor and manage your server from a web-based interface.

In this tutorial, we will explain how to install Ajenti Control Panel on Ubuntu 18.04.

Requirements

  • A server running Ubuntu 18.04.
  • A root password is set up on your server.

Getting Started

Before starting, you will need to update your system with the latest version. You can do this by running the following command:

apt-get update -y
apt-get upgrade -y

Once your server is updated, restart your server to apply the changes.

Install Required Dependency

Before starting, you will need to install python-imaging dependency on your server. First, download the python-imaging package with the following command:

wget http://mirrors.mit.edu/ubuntu-ports/pool/universe/p/pillow/python-imaging_3.1.2-0ubuntu1.1_all.deb

Once downloaded, install the downloaded package with the following command:

dpkg -i python-imaging_3.1.2-0ubuntu1.1_all.deb

You should see the following error:

Selecting previously unselected package python-imaging.
(Reading database ... 28634 files and directories currently installed.)
Preparing to unpack python-imaging_3.1.2-0ubuntu1.1_all.deb ...
Unpacking python-imaging (3.1.2-0ubuntu1.1) ...
dpkg: dependency problems prevent configuration of python-imaging:
 python-imaging depends on python:any (<< 2.8).
 python-imaging depends on python:any (>= 2.7.5-5~).
 python-imaging depends on python-pil; however:
  Package python-pil is not installed.

dpkg: error processing package python-imaging (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-imaging

You can fix the above error by installing python-imaging dependency as shown below:

apt --fix-broken install

Once all the required dependencies are installed, you can proceed to the next step.

Install Ajenti

By default, Ajenti is not available in the Ubuntu 18.04 default repository. So you will need to add Ajenti repository to your system.

First, download and import Ajenti repository GPG key with the following command:

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

Next, add Ajenti repository with the following command:

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

Next, update the repository and install Ajenti with the following command:

apt-get update -y
apt-get install ajenti -y

Once the installation has been completed, you should get the following output:

writing RSA key

:: Generating certificate

Signature ok
subject=C = US, ST = NA, L = Nowhere, O = Acme Inc, OU = IT, CN = ubuntu
Getting Private key
:: SSL configured!
------------------------------------------------
Now start Ajenti with 'service ajenti restart'
Ajenti will listen on HTTPS port 8000 by default

Default username : root
Default password : admin
------------------------------------------------
Processing triggers for python-support (1.0.15) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.25) ...

You can also install other Ajenti V plugins with the following command:

apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.2-fpm php7.2-mysql -y

Once all the packages are installed, start Ajenti service and enable it to start on boot with the following command:

systemctl start ajenti
systemctl enable ajenti

You can also check the status of Ajenti with the following command:

systemctl status ajenti

You should see the following output:

? ajenti.service - LSB: Ajenti
   Loaded: loaded (/etc/init.d/ajenti; generated)
   Active: active (running) since Tue 2019-09-10 04:57:36 UTC; 3min 35s ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/ajenti.service
           ??2702 /usr/bin/python /usr/bin/ajenti-panel -d

Sep 10 05:00:32 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:40 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:49 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:49 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:49 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted

Once you are done. You can proceed to the next step.

Access Ajenti Web Interface

Ajenti is now installed and listening on port 8000. You can now access the Ajenti web interface by visiting the URL https://your-server-ip:8000. You will be redirected to the following page:

Log in

Provide your administrator username and password as root/admin and click on the LOG IN button. You should see the Ajenti dashboard in the following screen:

Dashboard

Next, it is recommended to change the default admin password of Ajenti. To do so, click on the Password in the left pane. You should see the following page:

Configure password

Now, provide your current password and new password. Then, click on the SAVE button to update the password.

Next, click on the Plugins button in the left pane to install any plugins you might need for your Linux server. You should see the following page:

Ajenti Plugins

If you want to set up Apache webserver then click on the Apache. You should see the following page:

Apache configuration

Now, click on the APACHE2 button to install the Apache webserver package on your system.

Conclusion

Congratulations! you have successfully installed Ajenti Control Panel on Ubuntu 18.04 server. You can now easily install and manage various services on your Linux server from a web-based interface. For more information, you can visit the Ajenti documentation at Ajenti Doc. Feel free to ask me if you have any questions.

Share this page:

0 Comment(s)