wiki.rogs.me

my personal wiki

User Tools

Site Tools


Sidebar

devops:ajenti

Ajenti

Ajenti is an admin's tool for a more civilized age, providing you with a fast and secure way to manage a remote Linux box at any time using everyday tools like a web terminal, text editor, file manager, and others. This free alternative to CPanel is more easy to use and can run on many OS's (CPanel only runs on CentOS, which is one of the hardest servers to configure/manage).


Some of its features

  • Access everywhere.
  • Responsive remote terminal.
  • Fully extensible with Python and JS.
  • Web management with NGINX, MySQL and PHP7.0.
  • FTP
  • MySQL management
  • Mail

Installation

Script

For this script we assume the client is using a brand new Ubuntu 18.04 machine

#!/bin/bash
 
# Update + Upgrade
sudo apt-get update && sudo apt-get upgrade -y
 
# Installing Ajenti
wget http://repo.ajenti.org/debian/key -O- | sudo apt-key add -
sudo echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install ajenti software-properties-common -y
 
# Installing PHP7.3
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update
sudo apt-get install php7.3-fpm php7.3-mysql php7.3-gd php7.3-xml php7.3-cli php7.3-curl php7.3-mbstring -y
 
# Installing AjentiV
sudo apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.3-fpm ajenti-v-ftp-pureftpd courier-pop -y
 
# Restart All Services
sudo service php7.3-fpm restart
sudo service nginx restart
sudo service ajenti restart
 
# Install mail
sudo apt-get install ajenti-v-mail -y

In the mid-installation you will be prompted to set a MySQL root password. Set a secure one and save the password in a safe place.

Post installation

For the post installation you need to go to the server IP address on port 8000, for example http://123.1.1.1:8000. On the browser you will see the Ajenti login, the default login is:

Username: root
Password: admin

Once you are logged in, you have to:

  • Setup MySQL by clicking on “MySQL” on the left panel and inserting the root password when prompted
  • Change your login password to a more secure one, by clicking on “Password” on the left panel and filling the information
  • Enable the web server by clicking on “Websites” on the left panel and enabling the functionality
  • Restart Ajenti on the server (service ajentiv restart)
devops/ajenti.txt · Last modified: 2019/11/18 22:04 (external edit)