How to Install ISPConfig on Ubuntu 24.04

ISPConfig is a powerful, open-source hosting control panel that allows you to manage websites, email accounts, DNS, and more from a single web interface. In this guide, we’ll walk you through the process of installing ISPConfig on Ubuntu 24.04.

Step 1: Update Your System

Before starting the installation, it’s essential to update your system to ensure all your packages are up to date. Open a terminal and run the following commands:

sudo apt update && sudo apt upgrade -y

Step 2: Install Required Dependencies

ISPConfig has a few required dependencies, including Apache, PHP, MySQL, and others. Install them using the following command:

sudo apt install apache2 mariadb-server php php-cli php-mysql php-curl php-mbstring php-xml php-zip unzip sudo curl wget lsb-release gnupg2 -y

Step 3: Install PHP Extensions

ISPConfig requires several PHP extensions to work correctly. Run the following command to install them:

sudo apt install php-gd php-intl php-imagick php-soap php-bcmath php-xmlrpc php-mcrypt php-opcache php-smbclient php-apcu php-json -y

Step 4: Install and Configure MariaDB

ISPConfig uses MariaDB as its database server. Install MariaDB and secure it by running:

sudo apt install mariadb-server -y
sudo mysql_secure_installation

Follow the prompts to configure MariaDB (you can set a root password and remove insecure defaults).

Next, log into the MariaDB shell and create a new database and user for ISPConfig:

sudo mysql -u root -p

In the MariaDB shell, run the following commands:

CREATE DATABASE ispconfig;
CREATE USER 'ispconfiguser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON ispconfig.* TO 'ispconfiguser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 5: Install ISPConfig

Now that all dependencies are in place, we can install ISPConfig. First, download the ISPConfig installation script from the official website:

wget https://github.com/ispconfig/ispconfig3/releases/download/3.2.7/ispconfig-3.2.7.tar.gz

Extract the downloaded file:

tar xvf ispconfig-3.2.7.tar.gz
cd ispconfig3_installation/

Run the installation script:

sudo php -q install.php

The script will ask for several configuration options, including MySQL root password, ISPConfig installation type, and more. Follow the prompts and enter the required information.

Step 6: Set Up ISPConfig Web Interface

Once the installation is complete, you can access the ISPConfig web interface. Open your web browser and go to:

https://your-server-ip:8080

You will be greeted by the ISPConfig login page. The default login credentials are:

  • Username: admin
  • Password: The password you created during the installation process.

Step 7: Configure ISPConfig

After logging in, you can begin configuring ISPConfig to suit your needs. From here, you can add websites, email accounts, FTP users, and more.

Troubleshooting

  • Firewall issues: Make sure that your server’s firewall allows traffic on ports 8080 (for the ISPConfig web interface) and other necessary ports (80, 443, etc.). For UFW, you can use the following commands: sudo ufw allow 8080 sudo ufw allow 80,443
  • Apache not starting: Ensure that Apache is installed and running by checking its status: sudo systemctl status apache2

Step 8: Secure Your ISPConfig Installation

To enhance security, make sure to:

  1. Change the default admin password after logging in.
  2. Set up SSL for the ISPConfig web interface by using Let’s Encrypt or another SSL provider.
  3. Regularly update your system and ISPConfig installation.