Some notes and steps for ISPconfig multiserver installation, and some own created scripts to prepare the server for a ISPConfig installation.
You can follow the notes bellow or just download the repo to your server and run the script install.sh. Don't forget to edit the .env file.
Observe, some function in the script will only work in Debian 10.
- hostnamectl set-hostname, will not set.
- The scripts are only tested in Debian 10.
- Pre config all 5 server in one run.
- You tell me.
run this command:
nano /etc/hosts
And insert this (edit the IP's and domain so it fitts your):
95.200.200.101 web1.yourdomain.com web1
95.200.200.102 mail1.yourdomain.com mail1
95.200.200.103 db1.yourdomain.com db1
95.200.200.104 ns1.yourdomain.com ns1
95.200.200.105 ns2.yourdomain.com ns2
apt-get update
apt-get -y upgrade
apt-get -y install ntp ntpdate
source: https://www.digitalocean.com/community/tutorials/how-to-configure-virtual-memory-swap-file-on-a-vps
cd /var
touch swap.img
chmod 600 swap.img
dd if=/dev/zero of=/var/swap.img bs=1024k count=3000
mkswap /var/swap.img
swapon /var/swap.img
echo "/var/swap.img none swap sw 0 0" >> /etc/fstab
sysctl -w vm.swappiness=30
sysctl -a | grep vm.swappiness
Observe! In Debian 10 it should be hostnamectl set-hostname
instead editing directly to /etc/hostname
Ubuntu:
echo web1.yourdomain.com > /etc/hostname
Debian:
hostnamectl set-hostname web1.yourdomain.com
Ubuntu:
echo mail1 > /etc/hostname
Debian:
hostnamectl set-hostname mail1
All:
echo mail1.yourdomain.com > /etc/mailname
Ubuntu:
echo db1 > /etc/hostname
Debian:
hostnamectl set-hostname db1
Ubuntu:
echo ns1 > /etc/hostname
Debian:
hostnamectl set-hostname ns1
Ubuntu:
echo ns2 > /etc/hostname
Debian:
hostnamectl set-hostname ns2
reboot
cd /tmp; wget -O installer.tgz "https://github.com/servisys/ispconfig_setup/tarball/master"; tar zxvf installer.tgz; cd *ispconfig*; sudo bash install.sh
cd /tmp; wget -O installer.tgz "https://github.com/TheRenato/ispconfig_setup/tarball/master"; tar zxvf installer.tgz; cd *ispconfig*; sudo bash install.sh