Recommended VPS Complete list of best VPS hosting providers.

How to Install Ajenti CP On Your Server

Looking for great alternative to zPanel, VestaCP, Webmin and Kloxo? Meet Ajenti, a very intuitive web-based control panel to manage almost every aspect of your server. This free control panel allows its users to do almost any common tasks of managing and administering their server so it’ll be barely no need to login back to command line interface either using Putty or Terminal. This new server administration panel is running as its own process and web server. Shortly Ajenti it self is just like Webmin, unlike zPanel or Vesta CP that comes bundled with ready-to-use LAMP stack (web server, mail server, ftp server, dns server, etc), Ajenti provides only features to manage your server although you can then install Ajenti V, a plugin suite for the core Ajenti, which adds fast, efficient and easy-to-setup web hosting capabilities by installing pro stack: Nginx as web server, PHP-fpm, MySQL, Exim 4 and Courier IMAP, etc.

Why Ajenti? Firstly because it can be installed and used for free. Also, it is lightweight, powerful, having nice web-based user interface, and embedded with many plugins for configuring and monitoring server software’s and services. To mention few: Apache, MySQL, Firewall, FTP, Munin, etc.

ajenti default ui

This tutorial provides you with full detailed tutorial how to install Ajenti Control Panel on CentOS and Ubuntu (with pics). I hope by reading this article, any newbie can follow the steps and start building and using their own unmanaged VPS.

A. Login to your server / VPS

Open up Putty or Terminal and login to your VPS as root. It is very recommended to install Ajenti on fresh server with minimal template. You can read my previous post on how to use Putty.

B. Guide on CentOS

This tutorial is done on CentOS 6.5 but may also works on any latest version of CentOS, RHEL and perhaps Fedora.

Step 0 – Make sure your OS is updated:

yum update -y
yum upgrade -y

Method #1: Manual Install

Step 1 – You have to firstly add and enable EPEL Repo because Ajenti package is not available on server’s operating system by default. Please follow my previous article on how to enable EPEL Repositories on CentOS 6 / 5.

ajenti-enable-epel

Step 2 – Download and install Ajenti’s official repository:

wget http://repo.ajenti.org/ajenti-repo-1.0-1.noarch.rpm
rpm -i ajenti-repo-1.0-1.noarch.rpm

ajenti-enable-ajenti-package

Step 3 – Now finally install Ajenti using most popular yum command:

yum install ajenti -y

install ajenti

Sit tight and wait for the installation process to finish.

Method #2: Quick Automatic Install

Step 1 – Simply use this one line command syntax to start the installation:

wget -O- https://raw.github.com/Eugeny/ajenti/master/scripts/install-rhel.sh | sh

if above doesn’t work, use this instead:

wget -O- https://raw.githubusercontent.com/Eugeny/ajenti/master/scripts/install-rhel.sh | sh

Step 2 – Grab a cup of tea, sit, drink and wait for the process to finish.

2014-05-05_231702

Once done, you’ll see something like this:

ajenti-install

Next, try restarting the service:

service ajenti restart

ajenti-complete

Now you can open your favorite web browser and try accessing Ajenti’s web interface at:

https://domain.tld:8000 or https://server-ip:8000.

Please remember it is https:// not just http://.

ajenti-login

Default username is root with admin as password.

I can’t open Ajenti panel on browser?

Please open port 8000 on your firewall rules / router. Edit iptables rule:

nano /etc/sysconfig/iptables

then add following lines:

-A INPUT -p udp -m state --state NEW --dport 8000 -j ACCEPT 
-A INPUT -p tcp -m state --state NEW --dport 8000 -j ACCEPT

Next, restart iptables:

service iptables restart

2014-05-05_224327

I got python-lockfile and python-chardet error

It might somehow during installation you get this error message:

--> Finished Dependency Resolution
Error: Package: python-daemon-1.5.2-1.el6.noarch (ajenti)
Requires: python-lockfile
Error: Package: reconfigure-0.1.36-1.noarch (ajenti)
Requires: python-chardet
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

It seems happens because EPEL repo is not properly added on your server, so..

First, check the version of your server’s operating system (CentOS 6.x/5.x? 32-bit/64-bit):

cat /etc/*-release

Next, add the repo using these few lines:

CentOS 5.x:

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

CentOS 6.x:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Now enable remi:

nano /etc/yum.repos.d/remi.repo

In [remi] change enable=0 to enable=1

2014-05-05_230734

Finally, restart iptables and ajenti service:

service iptables restart
service ajenti restart

C. Guide on Ubuntu

This tutorial is done on Ubuntu 13.04 64 bit minimal but may also works on any latest version of Debian. Older version needs Python upgraded.

Step 0 – make sure all packages on your OS are updated:

apt-get update -y

ajenti-aptgetupdate

then upgrade it..

apt-get upgrade -y

ajenti-aptgetupgrade

Method #1: Manual Install

Step 1 – You have to firstly import Ajenti’s keys/add repository. Hence you’ll need to download and add the ajenti PPA repository to /etc/apt/sources.list file. The repository key is used to validate that the package originates from the legitimate source. Use following command to download the key and automatically add it to your system:

wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main" >> /etc/apt/sources.list

ajenti-add-repo

Step 2 – Let’s install Ajenti with this command:

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

ajenti-install-ubuntu

Step 3 – That’s it. Now you can start Ajenti using this command:

service ajenti restart

Method #2: Quick Automatic Install

Step 1 – Simply use this one line command syntax to start the installation:

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

if that doesn’t work, use this one instead:

wget -O- https://raw.githubusercontent.com/Eugeny/ajenti/master/scripts/install-ubuntu.sh | sudo sh

and this one for Debian:

wget -O- https://raw.githubusercontent.com/Eugeny/ajenti/master/scripts/install-debian.sh | sudo sh

Step 2 – Grab a cup of tea, sit, drink and wait for the process to finish.

That’s it. You can now login to Ajenti CP on your browser at:

https://domain.tld:8000 or https://server-ip:8000.

Please remember it is https:// not just http://.

ajenti-login

Default username is root with admin as password.

That’s all. Do not forget to follow me at http://twitter.com/servermomdotcom.

Up NEXT: Configuring Ajenti.

15 Comments

Add a Comment

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

Get more stuff like this
in your inbox

Subscribe and get interesting stuff plus faster updates to your email.