How to Install ISPConfig?

From LHYcloud Docs
Jump to navigation Jump to search

Prerequisites for installation:

Isp1.png
  • The server should run on Debian 11/12, Ubuntu 22.04/24, or similar with 64-bit Intel/AMD (x86_64) or ARM (ARM64) CPU architecture.
  • The system needs internet access and no firewall restrictions, especially for ports 80 (for Let’s Encrypt certificates) and 8080 (for ISPConfig access).
  • 1) Login as root:
  • On Debian, use su –login or su – to become the root user. This ensures the correct PATH variable.
  • On Ubuntu, use sudo -s to switch to the root user.
  • 2) Configure Hotename and Hosts:
  • Set the server’s hostname to a subdomain (e.g., server1.website.com) and modify the /etc/hosts and /etc/hostname files accordingly.
  • The /etc/hosts file should have an entry like 127.0.1.1 server1.website.com server1.
  • Reboot the server for the changes to take effect, then verify with hostname and hostname -f.
  • 3) Update the System: Run apt update & apt upgrade to ensure your system’s packages are up to date.
  • 4) Run the Auto-Installer: Download and run the ISPConfig installer script. Choose between Apache or Nginx and specify options like FTP port range or unattended upgrades, for example:
  • For Apache: wget -O – https://get.ispconfig.org | sh -s — –use-ftp-ports=40110-40210 –unattended-upgrades
  • For Nginx: wget -O – https://get.ispconfig.org | sh -s — –use-nginx –use-ftp-ports=40110-40210 –unattended-upgrades
  • 5) Firewall Setup:
Isp2.png
  • Log into ISPConfig’s UI, navigate to “System -> Firewall,” and add a new firewall rule.
  • Essential ports to allow: Web (80, 443, FTP range), Mail (25, 110, 143, 465, 587, 993, 995), DNS (53), Panel (8080, 8081).
  • 6) Advanced Installation Options:
  • The script offers options like selecting web servers (Apache/Nginx), enabling/disabling services (e.g., DNS, email, FTP), and configuring security (e.g., SSH settings).
  • Example: wget -O – https://get.ispconfig.org | sh -s — –use-nginx –no-dns –no-mail –use-ftp-ports=40110-40210 –unattended-upgrades.
  • 7) Final Setup:
  • After installation, access ISPConfig UI at https://server1.website.com:8080.
  • Follow additional guides to configure mail, Roundcube, and PHPMyAdmin, and improve security for interfaces.
  • 8) Debugging: If there are installation issues, use –debug for detailed logs or –interactive to troubleshoot step-by-step. Check logs in /tmp/ispconfig-ai/var/log/ispconfig.log.

Can I Add ISPConfig to the Existing Web Server?

Yes, you can add ISPConfig to an existing web server. However, it will require a fresh installation of ISPConfig on the server, essentially setting up a new control panel alongside your existing web server configuration. You cannot simply “add” ISPConfig as a feature to an existing web server setup without a full installation process. The steps to add ISPConfig to an existing web server:

  1. Access your server: Use SSH to access your existing web server.
  2. Download the ISPConfig installer: Obtain the appropriate installation script for your Linux distribution from the ISPConfig website.
  3. Run the installer: Execute the script on your server, following the on-screen instructions to configure ISPConfig.
  4. If you want to migrate existing website configurations from your current setup to ISPConfig, you might need to use a migration tool provided by ISPConfig.