Bobcares

Install Ajenti Control Panel on Debian 10/Debian 9 – how to do it

by | May 4, 2021

Wondering how to install Install Ajenti Control Panel on Debian 10/Debian 9? We will help you with it.

Ajenti is a free and open source Web-based Server management and configuration Panel written in Python, JavaScript and AngularJS.

Here at Bobcares, we handle requests from our customers to Install Ajenti Control Panel as a part of Server Management Services.

Today, let us see how our Support techs resolve this issue for our customers.

 

Install Ajenti Control Panel on Debian 10/Debian 9

 

Today, let us see the steps our Support techs follow for installation.

It is very easy to install Ajenti on Debian 10/Debian 9, since all packages are available on the APT repository. We will update the system and add the required repository.

 

Step 1: Firstly, update the system

Ensure that the system and packages are updated.

$ sudo apt update
$ sudo apt -y upgrade

It is recommended to reboot the server after an upgrade.

$ sudo reboot

 

Step 2: Next, install python-imaging (Debian 10 only)

Ajenti depends on python-imaging. But it is not available on APT repository.

Download .deb package:

$ wget http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_4.1.1-3build2_all.deb

Install it:

$ sudo pkg -i python-imaging_4.0.0-4_all.deb
sudo: pkg: command not found
$ sudo dpkg -i python-imaging_4.0.0-4_all.deb
Selecting previously unselected package python-imaging.
(Reading database … 28519 files and directories currently installed.)
Preparing to unpack python-imaging_4.0.0-4_all.deb …
Unpacking python-imaging (4.0.0-4) …
Setting up python-imaging (4.0.0-4) …

Step 3: Then, add the required repository

We can choose to install Ajenti V2 or Ajenti 1.x.

In this article, let us install Ajenti v2 on Debian 10.

$ sudo apt -y install gnupg2
$ wget http://repo.ajenti.org/debian/key -O- | sudo apt-key add –
$ echo “deb http://repo.ajenti.org/debian main main debian” | sudo tee /etc/apt/sources.list.d/ajenti.list

Step 4: Finally, install Ajenti Control Panel on Debian 10

Once we have added a repository, install Ajenti control panel using following command:

$ sudo apt update
$ sudo apt -y 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.

Login to Ajenti control panel using:

Default username: root
Default password: admin

 

Common error: Install Ajenti Control Panel on Debian 10/Debian 9

While starting ajenti manually, it resulted in the error given below:

ImportError: No module named passlib.hash

$ /usr/bin/ajenti-panel
01.08.2013 01:18 INFO Ajenti starting in foreground
Traceback (most recent call last):
File “/usr/bin/ajenti-panel”, line 85, in <module>
from ajenti import core
File “/usr/lib/pymodules/python2.7/ajenti/core.py”, line 19, in <module>
from ajenti.middleware import SessionMiddleware, AuthenticationMiddleware
File “/usr/lib/pymodules/python2.7/ajenti/middleware.py”, line 11, in <module>
from ajenti.users import UserManager
File “/usr/lib/pymodules/python2.7/ajenti/users.py”, line 3, in <module>
from passlib.hash import sha512_crypt
ImportError: No module named passlib.hash

Solution

To fix, run the following commands:

$ apt-get install python-pip
$ pip install passlib

Then, start Ajenti service.

[ Need any further assistance in analyzing logs with Nagios Log Server? – We’re available 24*7]

Conclusion

In short, useful tool to manage our websites, firewall, DNS, cron, logs, files, mail hosting services etc. Today, we saw how our Support Engineers install it.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.