Home » Blog » How to Install ISPConfig with Nginx Web Server on Ubuntu 24.04

How to Install ISPConfig with Nginx Web Server on Ubuntu 24.04

by Salman Chawhan
0 comments

ISPConfig is a powerful open-source hosting control panel that enables users to manage web servers, emails, DNS, and more. This guide will walk you through installing ISPConfig with the Nginx web server on Ubuntu 24.04

Step 1: Prepare Your Server

Before starting the installation, ensure your server is freshly installed. ISPConfig will reconfigure your entire server, potentially overwriting any existing configurations. Proceed cautiously if this is not a new server.

  1. Update and upgrade your system:
     
    sudo apt update && sudo apt upgrade -y

Step 2: Download and Run the ISPConfig Installation Script

The ISPConfig installation script simplifies the process and lets you choose components like the Nginx web server, Passive FTP ports, and unattended upgrades.

  1. Run the installation script:

  2. wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --use-ftp-ports=40110-40210 --unattended-upgrades

    • --use-nginx: Installs Nginx as the web server.
    • --use-ftp-ports=40110-40210: Configures Passive FTP to use the specified port range.
    • --unattended-upgrades: Enables automatic security updates for your system.

Step 3: Confirm Installation

During the installation process, you’ll see a warning message:

No VM guests are running outdated hypervisor (qemu) binaries on this host. WARNING! This script will reconfigure your entire server! It should be run on a freshly installed server and all current configuration that you have done will most likely be lost! Type 'yes' if you really want to continue:
  1. Type yes to proceed:
     
    yes

Step 4: Post-Installation Cleanup

Once the installation completes, you’ll need to clean up sensitive log files generated during the setup.

  1. Delete the log files to ensure your passwords are not exposed:
     
    rm -rf /tmp/ispconfig-ai/var/log/setup-*

Step 5: Setting up the firewall

The last thing to do is to set up our firewall.

Log in to the ISPConfig UI, and go to System -> Firewall. Then click “Add new firewall record”.

For a normal setup, it would look like this:

TCP: 20,21,22,25,80,443,40110:40210,110,143,465,587,993,995,53,8080,8081

UDP: 53

The necessary ports for every service are:

Web: 20, 21, 22, 80, 443 and 40110:40210 (All TCP, no UDP)

Mail: 25, 110, 143, 465, 587, 993, and 995 (All TCP, no UDP)

DNS: 53 (TCP and UDP)

Panel: 8080 and 8081 (All TCP, no UDP)

Important Notes

  • ISPConfig Access: After installation, you can access the ISPConfig control panel through your server’s IP address or domain. Example: https://your-server-ip:8080.
  • Default Credentials: During installation, you’ll be provided with admin credentials. Keep them secure.
  • Server Configurations: If you’re using this on a production server, double-check all configurations before making it live.
  • For Update Ispconfig : ispconfig_update.sh –force

You may also like

Leave a Comment

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
-
00:00
00:00
Update Required Flash plugin
-
00:00
00:00