How to Install Ajenti on AnonVM

How to Install Ajenti on AnonVM

Ajenti is an open-source web-based control panel that makes server management easy, offering tools for managing services, databases, file systems, and more. It’s a great choice for users who want a straightforward, lightweight control panel without the complexity of other panels like Plesk or cPanel. In this guide, we’ll walk you through the process of installing Ajenti on your AnonVM server.

Prerequisites

To install Ajenti on your AnonVM server, make sure you have:

  • Root or Sudo access to your server.
  • A clean installation of Ubuntu (Ubuntu 20.04/22.04) or Debian (Debian 10/11).
  • A public IP address to access the control panel.
  • An active internet connection.

Step 1: Update Your System

Before you begin installing Ajenti, it’s a good idea to update your system to make sure all packages are up-to-date.

For Ubuntu/Debian-based systems, run the following commands:

 
sudo apt update && sudo apt upgrade -y

Step 2: Install Dependencies

Ajenti requires a few dependencies to be installed before the actual panel can be set up. These include Python, pip, and a few other necessary packages.

Run the following command to install them:

 
sudo apt install -y python3-pip python3-dev build-essential libssl-dev libffi-dev python3-setuptools

Step 3: Install Ajenti

Ajenti can be installed from its official repository using pip. To install Ajenti, follow these steps:

  1. Install Ajenti via Pip:

    Download and install Ajenti by running the following command:

     
    sudo pip3 install ajenti-panel

    This will install the Ajenti panel on your system.

  2. Install Ajenti Plugins (Optional):

    Ajenti comes with several useful plugins, but you can install additional plugins for extended functionality. For example, to install the Ajenti V plugin (for web server management):

     
    sudo pip3 install ajenti.plugin.v

    There are other plugins like ajenti.plugin.mysql, ajenti.plugin.filemanager, and more, depending on the services you want to manage.

Step 4: Start the Ajenti Service

Once the installation is complete, you need to start the Ajenti service. Run the following command:

 
sudo service ajenti start

Ajenti will now be running in the background, and you can access the control panel using a web browser.

Step 5: Access Ajenti Web Panel

Once the Ajenti service is running, you can access the control panel through your web browser. Open a browser and navigate to:

arduino
 
https://your_server_ip:8000

By default, Ajenti uses port 8000 to serve the control panel.

Step 6: Login to Ajenti

  • Username: admin
  • Password: admin (default)

When you log in for the first time, you will be prompted to change the admin password for security purposes. Choose a strong password to secure your server.

Step 7: Configure Ajenti for Your Needs

Now that you have Ajenti installed and running, you can start configuring it according to your needs. Ajenti comes with a set of default plugins for common server management tasks such as:

  • File Manager: To manage files on your server.
  • Services: To start/stop and configure server services.
  • System Monitoring: To monitor server performance, disk usage, memory usage, and more.
  • Software Packages: To install, update, or remove packages from your system.
  • Firewall: To manage firewall settings for improved security.

Navigate through the Ajenti dashboard to access these features.

Step 8: Secure Your Ajenti Panel with SSL

It’s a good practice to secure your Ajenti panel with an SSL certificate to protect your login credentials and sensitive data.

To enable SSL, you can use Let’s Encrypt or install a custom certificate. Here’s how to use Let’s Encrypt:

  1. Install the Let's Encrypt plugin:

    You can install the Let’s Encrypt plugin by running:

     
    sudo apt install -y python3-certbot-apache
  2. Generate SSL Certificates:

    Once installed, you can generate SSL certificates for your domain (if you have one) by running:

     
    sudo certbot --apache

    This will generate and install the SSL certificate for your domain. Make sure to replace your_domain.com with your actual domain.

  3. Configure Ajenti for SSL:

    Once the SSL certificates are in place, configure Ajenti to use SSL. You can do this by editing the Ajenti configuration file.

    Open the Ajenti configuration file:

     
    sudo nano /etc/ajenti/config.json

    Add the following configuration under the "network" section:

    json
     
    "network": { "ssl": true, "ssl_cert": "/etc/letsencrypt/live/your_domain.com/fullchain.pem", "ssl_key": "/etc/letsencrypt/live/your_domain.com/privkey.pem" }

    Save the file and restart Ajenti:

     
    sudo service ajenti restart

Now, your Ajenti control panel should be accessible securely over HTTPS.

Step 9: Regular Maintenance

To ensure your Ajenti installation stays secure and up-to-date, you should regularly update it by running:

 
sudo pip3 install --upgrade ajenti-panel

Additionally, make sure your server's operating system is up to date:

 
sudo apt update && sudo apt upgrade -y

Step 10: Adding Additional Plugins (Optional)

Ajenti supports a wide range of plugins that allow you to extend its functionality. Some of the most useful plugins include:

  • Ajenti V for web server management (Apache, Nginx).
  • Ajenti MySQL plugin for database management.
  • Ajenti Postfix for mail server management.

To install a plugin, simply run:

 
sudo pip3 install ajenti.plugin.<plugin_name>

Replace <plugin_name> with the actual plugin name, such as mysql or nginx.

Conclusion

You’ve now successfully installed Ajenti on your AnonVM server! Ajenti is a lightweight and flexible control panel, perfect for users who want to manage their servers with minimal resources. Its user-friendly interface and extensive plugin ecosystem make it a great choice for both beginners and experienced administrators.

Key Takeaways:

  • Ajenti is a powerful, lightweight control panel for server management.
  • Install Ajenti using pip3 for an easy setup process.
  • Secure Ajenti with SSL certificates for encrypted access.
  • Extend functionality with plugins such as Ajenti V and Ajenti MySQL.
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution