Install ISPConfig on Ubuntu 20.04 LTS Focal Fossa
- At first, make sure that all your system packages are up-to-date
sudo apt update sudo apt upgrade
To see upgradable Packages run ‘apt list –upgradable’
- Configuring openssh-server
A new version (/tmp/fileKeVqSI) of configuration file /etc/ssh/sshd_config is available, but the version installed currently has been locally modified.
What do you want to do about modified configuration file sshd_config?
│ install the package maintainer’s version
│ keep the local version currently installed
│ show the differences between the versions
│ show a side-by-side difference between the versions
│ show a 3-way difference between available versions
│ do a 3-way merge between available versions
│ start a new shell to examine the situation
<Ok>
Normally the best thing to do is to keep the currently installed if you’re on a VPS. But, if you didn’t touch the file and you know for sure that nothing will break by updating the defaults, then that’s the best option.
- Configuring openssh-server
- Setup Hostname.
- Check the hostname in /etc/hosts and change it when necessary:
vi /etc/hosts
Add the following line:
127.0.0.1 localhost.localdomain localhost # This line should be changed to the correct servername: 127.0.1.1 myserver.bdhostit.com myserver # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
- Then, edit the /etc/hostname file:
vi /etc/hostname
Add the following line:
myserver
- Check the hostname in /etc/hosts and change it when necessary:
- Reboot
reboot
- Now it’s time to Install ISPConfig 3 on Ubuntu 20.04 Log in again and check if the hostname
hostname hostname -f
- Download ISPConfig auto-installer
wget -O - https://get.ispconfig.org | sh -s -- --help
The installer automatically configures all underlying services, no manual configuration needed.
When the installer is finished it will show you the ISPConfig admin and MySQL root password like this:[INFO] Your ISPConfig admin password is: adminpass [INFO] Your MySQL root password is: mysqlpass
- If you can not get the INFO, you can now run the script with arguments. For example, if you want a normal install with a port range for Passive FTP + unattended-upgrades, run:
wget -O - https://get.ispconfig.org | sh -s -- --use-ftp-ports=40110-40210 --unattended-upgrades
Answer “yes” and hit enter. The installer will now start.
WARNING! This script will reconfigure your complete server! It should be run on a freshly installed server and all current configuration that you have done will most likely be lost!
Final Output
[INFO] Installation ready. [INFO] Your Mailman password is: mailmanpass [INFO] Your ISPConfig admin password is: adminpass [INFO] Your MySQL root password is: mysqlrootpass [INFO] Warning: Please delete the log files in /tmp/ispconfig-ai/var/log/setup-* once you don't need them anymore because they contain your passwords!
- Write down the password information. Delete the setup log file at /tmp/ispconfig-ai/var/log
setup-1234567890.log
- Download ISPConfig auto-installer
- Now accessing ISPConfig Web Interface with admin password.
https://myserver.bdhostit.com:8080
You should change the default password after your first login
- Change default SSH Port 22 to your choice
vi /etc/ssh/sshd_config
- Setting up the firewall. Adding SSH port
- Go to System -> Firewall. Then click “Add new firewall record”
- You can save the default port.
- The necessary ports for every service are:
Web: 20, 21, 22, 80, 443 and 40110:40210 (TCP ports)
Mail: 25, 110, 143, 465, 587, 993, and 995 (TCP ports)
DNS: 53 (TCP and UDP)
Panel: 8080 and 8081 (TCP ports)
Update Instructions
Run this command on the shell of the server as root user:
ispconfig_update.sh
The ISPConfig updater will then check for new releases and guide you through the update process.