ASap
Verified User
Does anyone here have experience of upgrading Debian 8 with DirectAdmin to Debian 9 (and then to Debian 10) ?
If so, do you mind sharing?
If so, do you mind sharing?
cp /etc/apt/sources.list /etc/apt/sources.list.bak
cat >/etc/apt/sources.list <<EOF
deb http://httpredir.debian.org/debian stretch main
deb http://httpredir.debian.org/debian stretch-updates main
deb http://security.debian.org stretch/updates main
EOF
apt update
apt upgrade
apt dist-upgrade
reboot
apt --purge autoremove
apt update; apt install wget gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libperl4-corelibs-perl libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \
libncurses5-dev libsystemd-dev bind9 dnsutils quota patch libjemalloc-dev logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl libnuma-dev libnuma1 ipset
cp /etc/apt/sources.list /etc/apt/sources.list.bak
cat >/etc/apt/sources.list <<EOF
deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org buster/updates main
EOF
apt update
apt upgrade
apt dist-upgrade
reboot
apt --purge autoremove
apt update; apt install wget gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules-5.28 libperl-dev libperl4-corelibs-perl libwww-perl libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \
libncurses5 libncurses5-dev libsystemd-dev bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl libnuma-dev libnuma1 ipset libjpeg-dev
cd /usr/local/directadmin/custombuild
./build exim
CHANNEL=current
OS_SLUG=linux_amd64
COMMIT=$(dig +short -t txt "$CHANNEL-version.directadmin.com" | sed 's|.*commit=\([0-9a-f]*\).*|\1|')
FILE="directadmin_${COMMIT}_${OS_SLUG}.tar.gz"
curl --location --progress-bar --connect-timeout 10 "https://download.directadmin.com/${FILE}" --output "/root/${FILE}"
tar xzf "/root/${FILE}" -C /usr/local/directadmin
/usr/local/directadmin/directadmin permissions || true
/usr/local/directadmin/scripts/update.sh
service directadmin restart
cd /usr/local/directadmin/custombuild
./build update; ./build all d
reboot
/etc/network/interfaces
and/or /etc/network/interfaces.d/*
, and the output of ip a
?auth eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
address 1.2.3.4
netmask 255.255.255.255
root@directadmin:~# echo /sys/class/net/*
/sys/class/net/eth0 /sys/class/net/lo
root@directadmin:~# cd /sys/class/net/
root@directadmin:/sys/class/net# ls -al
total 0
drwxr-xr-x 2 root root 0 Jun 25 10:30 .
drwxr-xr-x 45 root root 0 Jun 25 10:30 ..
lrwxrwxrwx 1 root root 0 Jun 25 10:30 eth0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:07/VMBUS:01/557348e5-e238-4f36-9a1c-79a1cbeef168/net/eth0
lrwxrwxrwx 1 root root 0 Jun 25 10:30 lo -> ../../devices/virtual/net/lo
root@directadmin:/sys/class/net# uname -a
ip a
command didn't show any IP for eth0
.eth0:0
which is normal.eth0
has the LAN IP address (our server is behind firewall)eth0:0
for DirectAdmin to see and bind the WAN IP address.Hi Neil, thanks for jumping in, it's a VM running on Hyper-V. Any specific reason why it's not possible? Do I need to fresh-install it?andych, this may not be relevant but there again it may be. what is your debian running in/on? - VPS, KVM, or a stand alone real server? If it is VPS then 9 to 10 may not be possible because of the underlying os that your os runs in/on. Cheers Neil
/usr/local/directadmin/scripts/startips
. If you want to run it as it normally would be run, you can do /usr/local/directadmin/scripts/startips start
.