Upgrade 8.x to 9.0

Mattie

Verified User
Joined
Jun 1, 2008
Messages
123
Hi Guys,

Did anyone already upgrade from 8.x to the new stable 9.0? I'd like some upgraded packages and I can either compile them from source or upgrade my entire system. I know the LTS still will be valid for a couple of years but hey if there are no known problems why shouldn't I upgrade?

Looking forward to hear from people that done this already!
 
A bit of late answer, but did some testing on upgrade. Needed steps are bellow, but of course every system is a bit different so remember backups and don't just blindly copy&paste.

1) Upgrade your Debian (change /etc/apt/sources.list from jessie to stretch and run apt-get update && apt-get upgrade && apt-get dist-upgrade) and reboot

2) Change you license from Jessie to Stretch

3) Update Directadmin manually: https://help.directadmin.com/item.php?id=29

4) Rebuild everything.
Code:
bash /usr/local/directadmin/custombuild/build update
bash /usr/local/directadmin/custombuild/build all y

I found following problems when using Debian 9, adjust for your needs before building everything

Clamav does not support openssl 1.1. Using beta client is easiest option at this moment.
Code:
cd  /usr/local/directadmin/custombuild
wget https://www.clamav.net/downloads/beta/clamav-0.99.3-beta2.tar.gz -O clamav-0.99.3-beta2.tar.gz
echo "clamav:0.99.3-beta2:0148b11269137e6ff794f880cc8b70fa" >> ./custom_versions.txt

Apache mod_ruid2 causing segmentation fault if enabled. Check from /usr/local/directadmin/custombuild/options.conf that it's disabled (mod_ruid2=no). Note! If you are using mod_php then you need to change to php-fpm. This might causing breakage of sites if customers has set something like php_value in their htaccess. https://help.directadmin.com/item.php?id=459

MySQL Socket location changed. My solution was to change compile parameter to php options
Code:
cp -a /usr/local/directadmin/custombuild/configure/fpm/configure.php70 /usr/local/directadmin/custombuild/custom/fpm/configure.php70
nano /usr/local/directadmin/custombuild/custom/fpm/configure.php70
Change --with-mysql-sock=/var/lib/mysql/mysql.sock to point correct location (in our case  --with-mysql-sock=/home/mysql/mysql.sock)

Spamassasin needed some extra modules:
Code:
cpan -i Net::DNS NetAddr::IP Digest::SHA1 Mail::SPF Geo::IP Net::CIDR::Lite Razor2 IO::Socket::INET6 Mail::DKIM DBI Encode::Detect::Detector Net::Patricia Net::DNS::Nameserver

HTTP2 Debian 9 has native support for HTTP/2 thou in our case it was needed to enable manually:
Code:
echo "http2=1" >> /usr/local/directadmin/conf/directadmin.conf
 
If you are using PHP 5.4 or lower you can't because this PHP versions can't compile with new openssl verion.
You can use previously compiled (on Debian 8) but you can't compile then on Debian 9. If you have configured PHP 5.4 in options.conf you can't run build script (is workaround - comment some lines in build script).

Regards
 
Hi Guys,

Thank you for the replies! I have not yet upgraded myself but this is still on my todo list so this quick how-to will come in handy!
 
I've just tried to update from 8 to 9; since Jessie is going to be EOL by the end of this month. I got a long way however at the end I was getting some lib related errors with zero Google results. I decided to just move on to CentOS 8 and not bother. Debian drops support a bit too fast for my taste. Debian maintains a version for 3 years, whereas CentOS stays with you for 9 years. Quite a difference.
 
Back
Top