Did You Know?
Got a tip? Let us know

LFCS - Linux Foundation Certified SysAdmin - Exam Preparation Guide

Install Ajenti (A Web Based Control Panel) for Managing Linux Server

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ajenti is an open source web based system management control panel for managing remote system administrating tasks from the web browser much similar to Webmin module. Ajenti is a much powerful and lightweight tool, that provides fast and responsive web interface for managing small server set-ups and also best suitable for VPS and Dedicated servers. It has built with many pre-made plugins for configuring and monitoring server software’s and services such as Apache, Cron, File System, Firewall, MySQL, Nginx, Munin, Samba, FTP, Squid and many other tools like File Manager, Code Editor for developers and Terminal access.

Install Ajenti Control Panel

Install Ajenti Control Panel

In this article we’re going to show you how we going to install Ajenti Server Manager tool on RHEL 6.4/6.3/6.2/6.1/6/5.8, CentOS 6.4/6.3/6.2/6.1/6/5.8, Fedora 19/18/17/16/15/14/13/12, Ubuntu 13.04/12.10/12.04/11.10, Linux Mint 15/14/13/12 and Debian Sid, Debian Wheezy and Debian Squeeze systems using own ajenti repository.

Installing Ajenti On RHEL/CentOS and Fedora

Ajenti is a third party tool and requires EPEL repositories to be enabled on our system to install dependency packages. Use the given link to install it.

  1. Enable EPEL Repositories

Once enabled, now we can move further to download and install Ajenti’s official repository using “wget” command. If you don’t have “wget” package, install using “yum install wget“.

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

Install the package using “YUM” package manager tool.

# yum install ajenti

Once installation finishes, open “8000” port on firewall/router for remote access of web interface. Open the following file with VI editor.

# vi /etc/sysconfig/iptables

Append the following two lines at the bottom of the file, save and close it.

-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.

# service iptables restart

Installing Ajenti On Ubuntu/Debian and Linux Mint

As I said above, Ajenti is not included in the default repository, it needs to be added. So, let’s download and add the ajenti PPA repository to “/etc/apt/sources“.list.

# 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

Once PPA added, update the system and then install the package.

# apt-get update && apt-get install ajenti

To verify, open a web browser and type the IP of the server where we’ve installed Ajenti and enter default username “admin”  or “root” and password is “admin“.

https://localhost:8000
OR

https://ip-address:8000
Login Screen
Ajenti Login Screen

Ajenti Login Screen

Dashboard
Ajenti Dashboard

Dashboard

Plugins
Ajenti Plugins

Ajenti Plugins

Filesystem
Ajenti File System

Filesystem

Firewall
Ajenti Firewall

Firewall

System Packages
Ajenti Package Manager

Packages

Running Processes
Ajenti Processes

Linux Running Processes

File Manager
Ajenti File Manager

Linux File Manager

Running Services
Ajenti Services

Linux Services

Reference Link

Ajenti Homepage

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.
Download Free eBooks
Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

49 Responses

  1. Rimdeker says:

    I get following error when trying to install it on Ubuntu 12.04

    ~# apt-get install ajenti
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    ajenti : Depends: python-requests but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    • Ravi Saive says:

      To fix this error, Please do a clean and update the system and then install dependencies. If you still get same error, remove that python-requests package and try to install ajenti again..lets see.

      $ sudo apt-get clean
      $ sudo apt-get update
      $ sudo apt-get install python-requests
      $ apt-get install ajenti
      
      • Juan Timana says:

        This does not help, I am still getting the same error message. Python-requests seems to be stuck in an old version and does not want to upgrade.

        • Ravi Saive says:

          I think you need to upgrade your OS, to install ajenti panel.

          • I have the same problem, and my ubuntu server is the 12.04.3 version, which is supposed to be supported by Ajenti.

            The exact error I get is the following:

            The following packages have unmet dependencies:
            ajenti : Depends: python-requests (>= 0.12.0) but 0.8.2-1 is to be installed
            E: Unable to correct problems, you have held broken packages.

          • Steven says:

            I was having the same issue, I found instructions on another site which didn’t match up with the instructions posted here and my problem was solved.

            Above, the instructions say to run command:
            echo “deb http://repo.ajenti.org/ng/debian main main” >> /etc/apt/sources.list

            However, if you add an ‘ubuntu’ after the last ‘main’ it works (at least it did for me). So the command looks like:
            echo “deb http://repo.ajenti.org/ng/debian main main ubuntu” >> /etc/apt/sources.list

            You can reach this same effect by using VIM and editing your /etc/apt/sources.list file if you already ran the command above.

          • Denis says:

            Worked for me (added ubuntu to the end) too Thank!!

  2. I have the same problem as Rimdeker
    Cleanups/updating and even forcing installs do not help.

    apt-get install python-requests
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    python-requests : Depends: python2.6 but it is not installable
    Depends: python (< 2.7) but 2.7.3-0ubuntu2 is to be installed
    Recommends: python-gevent but it is not going to be installed
    Recommends: python-oauthlib but it is not installable
    E: Unable to correct problems, you have held broken packages.

    It seems that python-requests still stuck with an older version and refuses to be installed under one of my virtual machines, I was able to install it on the other virtual machine, but I noticed that it does not start.

    Running
    ajenti-panel -v

    I noticed that it was complaining about missing module passlib
    Ran
    pip install passlib
    (Easiest way to install it, if you don't have pip installed, run apt-get install python-pip first)
    Restarted ajenti, now it runs. Hope this helps someone out there.
    Both virtual machines are running the same Ubuntu releases.

    lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 12.04.2 LTS
    Release: 12.04
    Codename: precise

    The failed install is most likely due to different apt sources.
    I'll run a comparison and debug this further.

  3. Arfat says:

    Hello Techmint,

    After installing Ajenti. I had to install any ajenti service. Bcoz i m not able to access the url.

  4. Arfat says:

    Hello Techmint,

    I am facing the below error while installing through yum.

    http://repo.ajenti.org/ng/centos/5/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ajenti. Please verify its path and try again
    You have mail in /var/spool/mail/root

  5. Bizres says:

    Hello,

    I’m trying to install Ajenti on a clean Fedora 12 VPS box, but am ending up with the following message when I reach the yum install ajenti command:

    —–
    # yum install ajenti
    http://repo.ajenti.org/ng/centos/12/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 : http://repo.ajenti.org/ng/centos/12/x86_64/repodata/repomd.xml
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ajenti. Please verify its path and try again
    —–

    Thanks in anticipation.

  6. Siddharth says:

    Is it possible to monitor remote server from this ???

    Also is there is any alert services are there,if web,mysql,postfix services went down OR full of disk space ?

  7. Lior says:

    Hey i installed Ajenti on centos 6.4 64bit as instructed and i can’t login from another computer.

    When i tried to start it with “ajenti-panel -v” in ssh it all looks ok except for the following error:

    “ERROR SSL tunnel failed to start”

    What could be the problem?

    Thank you in advance.

  8. Bizres says:

    Ravi,

    Can you suggest a similar control panel that can run on a low end Fedora12 VPS?
    Config similar to:
    Memory: 64MB min/128MB Burstable | 500GB

    Thanks.

  9. user says:

    ajenti installation instructions doesn’t work on fedora 18 nor fedora 19 , I had the epel-installed and followed the instructions all I get is Errno 14 and errno 256 ” both fedora 18 and 19 ”

    even though you did mention in the article ” we’re going to show you how we going to install Ajenti Server Manager tool on skip skip skip Fedora 19/18/17/16/15/14/13/12,

    • Ravi Saive says:

      It should work without any hazel, let me check again, will update you.

      • user says:

        thank you, ill keep checking for your updates on the fedora installation issues , on their website it does not mention anything about Fedora , older web did

        also I just tested it on my debian box and my centos box and the instructions worked perfectly , except fedora , haven’t tried it on Ubuntu

  10. d says:

    How to uninstall ajenti

    help please

    thanks!

  11. D says:

    I cant login ajenti when i tried to login from another laptop .now the login is blocked !!! how to solve this or uninstall agenti !!

    • Ravi Saive says:

      Have you opened port on the Firewall? what kind of blocking error you getting?. Use “yum remove ajenti” to un-install.

  12. Pedro says:

    Get this error, cant install Ajenti in Ubuntu 12.04

    The following packages have unmet dependencies:
    ajenti : Depends: python-requests (>= 0.12.0) but 0.8.2-1 is to be installed
    E: Unable to correct problems, you have held broken packages.

  13. Hi
    I tried to follow your commands but having these problem using cent os 6 32 bit

    == After adding those two lines when i restart iptables i get error on line 1 .

    I am newbie in servers any help would be appreciated

  14. Leewong says:

    Yep, I’m getting the same error as Kumar, above.

    [root@xxx ~]# service iptables restart
    iptables: Applying firewall rules: iptables-restore: line 1 failed
    [FAILED]

    vi edit the iptables fails…

    Centos x64 6.4 – Digital Ocean.

    You can manually add at command line…
    But you still can’t access ip and port in the browser.

    • Ravi Saive says:

      To fix such error, you need to replace your iptables rules with below lines.

      # Firewall configuration written by system-config-firewall
      # Manual customization of this file is not recommended.
      *filter
      :INPUT ACCEPT [0:0]
      :FORWARD ACCEPT [0:0]
      :OUTPUT ACCEPT [0:0]
      -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
      -A INPUT -p icmp -j ACCEPT
      -A INPUT -i lo -j ACCEPT
      -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
      -A INPUT -m tcp -p tcp --dport 80 -j ACCEPT
      -A INPUT -m state --state NEW -p tcp --dport 21 -j ACCEPT
      -A INPUT -j REJECT --reject-with icmp-host-prohibited
      -A FORWARD -j REJECT --reject-with icmp-host-prohibited
      COMMIT
      

      And restart iptables again….

  15. Ankit says:

    How do I access the webmail ?

    • Jenz says:

      I think it’s the next option that will be added from @Ajenti Team, i agree that’s a little bit late to think about it or sad to forget about it.
      But i’m just like you waiting for the Webmail Management.

      Cheers
      Jenz

  16. Nadjib says:

    Hi, thank you for all your tutorials, i have a question; i can’t access to login screen , i did all the insctruction about the 8000 port.

    Thanks

  17. Stu R says:

    I have just initiated a new server – Ubuntu 12.04/Nginx 1.4.5 to test Ajenti on. I don’t understand probably the most fundamental part of how to make the vhosts work. The developer Eugene posts this – http://support.ajenti.org/topic/349870-ajenti-behind-nginx/

    I’m used to having a vhost like /etc/nginx/sites-enabled/domain.com…. with the files in /home/user/public_html/domain.com/public/

    So basically I don’t get how domain.com fetches the /ajenti files without some modification to his example.

    Any clarification on this would be greatly appreciated.

    thx
    stu

  18. On ‘yum install ajenti’ under Fedora 17 I am getting this error:

    http://repo.ajenti.org/ng/centos/17/x86_64/repodata/repomd.xml: [Errno 14] curl#22 – “The requested URL returned error: 404 Not Found”

    Please help.
    /shawn

  19. Can I install ajenti-v on Centos 6 ?

  20. First off, thanks for the awesome posts! I read your other post where you talked about Ajenti, so I am trying it out. I wanted to add that with CentOS 6.5, I had to add my iptables rules up toward the top of the config file, not at the bottom. When I had them at the bottom, it was still blocking the port for some reason. I assume that one of the above rules is set to block all unconfigured traffic, but I am still fairly new at Linux firewall rules in general. Anyway, thanks for the great info! Looking forward to reading more of your posts!

    Sean

  21. Vinod says:

    Hi greetings of the day
    am trying to install ajenti in ubuntu usinng aws.amazon server..

    i done with all settings and i open 8000 port number in firewall but also am unable to get web page on :8000 getting error as Webpage is not available
    Thanks

  22. Amit Bondwal says:

    Hi Guys,

    I have very bad experience with Ajenti, I will recommend you not to use this product, I installed it on debian wheezy VPS server. After one week, it start broadcasting data from server. I got to know about this after three days when my VPS provider sent me a mail that you VPS has consumed data bandwidth of 180 GB in just three days, youneed to check the server.

    When I check this then I uninstalled this and data broadcasting stop after it. For security reason I have to configure whole server from start after reset up vps from vps provider.

    So again, I will not suggest anybody to use this.

    Regards
    Amit Bondwal

  23. arash says:

    hi
    i was install ajenti on centos 6.5 minimal and the part of my iptables is:
    -A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
    -A INPUT -p icmp -j ACCEPT
    -A INPUT -i lo -j ACCEPT
    -A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT
    -A INPUT -m state –state NEW -m tcp -p tcp –dport 8000 -j ACCEPT
    -A INPUT -m state –state NEW -m udp -p udp –dport 8000 -j ACCEPT
    -A INPUT -j REJECT –reject-with icmp-host-prohibited
    -A FORWARD -j REJECT –reject-with icmp-host-prohibited
    COMMIT
    but when i try to access web with port 8000 i dont have this
    please help me for solve this problem
    my 8000 port is open and in listening.
    thanks

  24. Andreas Christensen says:

    Ravi, great tutorial. Thank you.

    But, unfortunately during install i got this error: [Errno -1] Package does not match intended download

    If someone encountered this error as well you should execute the following command as noted in http://bit.ly/1rqdVOL:
    yum clean metadata

    After that, it works.

Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.