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.
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.
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
Step 3 – Now finally install Ajenti using most popular yum command:
yum install ajenti -y
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.
Once done, you’ll see something like this:
Next, try restarting the service:
service ajenti restart
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://.
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
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
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
then upgrade it..
apt-get upgrade -y
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
Step 2 – Let’s install Ajenti with this command:
apt-get update && apt-get install ajenti -y
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://.
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.
Thanks for this guide, really helpful
you’re welcome. Do not hesitate to discus about Ajenti here 🙂
how do you rate this compared to vesta cp?
user who likes Webmin will love Ajenti, but user who likes cPanel will love Vesta CP. Ajenti (core, not Ajenti V) is just different from Vesta that already has complete stack to host websites (web server, php, mysql server, mail server, dns server, etc) while Ajenti does not have it by default. You have to install each of those manually or install Ajenti V (currently in beta) if you want complete LNMP/LEMP stack (Nginx)
Personally, I prefer Vesta 🙂
awesome – insight – thanks 🙂
Hi Sawiyati,
i found Ajenti couple of months ago when it was not public. Now i see that the released Ajenti and im happy… I went to their website, but i saw there section “Pricing” and i stopped myself. You wrote that it is free, but on website are prices 🙁
Is there licensing just for commercial use? How about hosting websites for my clients ?
Hi Martin, there is no Pricing section on Ajenti’s website but there is Licensing section which yes it has information about available Licenses. Shortly, Ajenti is free for personal use 🙂 Hosting websites for your clients is not free
Thank you. After I post last comment i tried Ajenti as you wrote in this Tutorial, and it looks good. I can go into ajenti admin, i installed Ajenti V via ssh, i tried set up one website at testing domain, but it wont work. Cant see index.html file in web browser 🙁
Ajenti V is LEMP/LNMP stack so you should be familiar with Nginx configuration file. Try reviewing its config
hello Sawiyati, i would like to ask :
in your personal experience, what is the lightest memory use between zpanel, kloxo, vestacp, Ajenti, webmin ? thank you so much
I think it’s VestaCP but I’m not quite sure
dont use kloxo use kloxo MR it is lightweight…
kloxo mr can run on 256mb ram
vestacp needs 512 mb ram with tweaks
webmin / virtualmin can be configured on 128mb server with tweaks
ajenti needs 256mb of ram atleast
i am running kloxo lxadmin on 128mb server
is client-server set-up possible in ajenti? Means can i access my all servers from single interface?
Asalam alaykum Sawiyati, I have my Ubuntu server 14.04 LTS configured already and it runs postgresql database and a website among other configurations; I want to install Ajenti but I’m scared of losing data. Would Ajenti affect my data negatively? Would it be able to manage already running instances of databases and website? Jazakhumlllah khairan.
It’s possible can add a more client host in ajenti Dashboard.
Waiting for reply.