Categories: TutorialsUbuntu

The Perfect Web Server – Ubuntu, Ajenti Control Panel and NGINX

We will setup the perfect web server on Ubuntu using Ajenti Control Panel, which is web based server control panel that is really useful for managing servers, if you are familiar with Webmin, it is similar but with a much cleaner interface, it is slowly growing and has lot of plugins to help you manage your server.

In this tutorial we will be installing the Ajent Web hosting add-on which will make Ajenti even more powerful allowing us to create multiple domains, manage email accounts and databases, etc.

Table of Contents

Toggle
Note:

If you have any questions or comments feel free to post them at the bottom i will be glad to help with any issues.

Install

Sponsored

Step 1
Connect to your server as the admin user via SSH or open a command prompt.

ssh [email protected]

Step 2
We will become root and we will add the repository key. This is used to validate the Ajenti packages repository you will be adding to your sources.

sudo su
wget http://repo.ajenti.org/debian/key -O- | apt-key add -

now we add the repository sources

echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list

Step 3 Now we update and upgrade our packages to pull the information for the Ajenti repository and to make sure we always get the latest software packages.

apt-get update && apt-get upgrade

We install Ajenti and restart the service

apt-get install ajenti
service ajenti restart

Step 4 Now we will install Ajenti-V , NGINX, Mail Server, Mysql ETC

Sponsored
apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql ajenti-v-mail

Choose a good password for your MYSQL server ![Courier Prompt](/content/images/2016/01/mysql.PNG)

Next answer Yes to creating directories for web-based administration ![Courier](/content/images/2016/04/courier.png) OK ![Courier Notification](/content/images/2016/04/courier2.png) Step 4 Now we will restart All Services

service php5-fpm restart
service nginx restart
service ajenti restart
service mysql restart

And now Login to the Web and change the default password

Ajenti will listen on HTTPS port 8000 by default

Default username : root
Default password : admin

https://server_ip:8000

change the default password under password

That’s It now you have a running web server all that is left to do is to add a domain and you are set.

Ubuntu Server Admin

Recent Posts

Kolla Ansible OpenStack Installation (Ubuntu 24.04)

Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…

1 day ago

Canonical announces first Ubuntu Desktop image for Qualcomm Dragonwing™ Platform with Ubuntu 24.04

This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…

2 days ago

The long march towards delivering CRA compliance

Time is running out to be in full compliance with the EU Cyber Resilience Act,…

2 days ago

Extra Factor Authentication: how to create zero trust IAM with third-party IdPs

Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…

3 days ago

Ubuntu Weekly Newsletter Issue 889

Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…

5 days ago

From pidfd to Shimanami Kaido: My RubyKaigi 2025 Experience

Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…

5 days ago