DirectAdmin is a graphical web-based web hosting control panel designed to make administration of websites easier. DirectAdmin is often called DA for short. From time to time, you’ll want to ensure your services are updated, for new features and to fix any potential security issues. In this blogpost I will perform a step-by-step upgrade of CentOS and DirectAdmin. Be sure to make a backup or snapshot of your server before updating anything.
Logon to your server with SSH, i.e. with Putty. Make sure you got root access.
yum check-update
This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available.
yum update
This command is used to update the specified packages to the latest available version. If no package name/s are specified, then yum will attempt to update all installed packages. Choose y and CentOS will update all the packages.
CentOS is done for now and we can start updating DirectAdmin, this will be done with custombuild.
cd /usr/local/directadmin/custombuild
Go to the custombuild folder of DirectAdmin.
./build update
./build all d
./build rewrite_confs
If you get an error on the last command like this:
Apache 2.4.27 and higher will not negotiate http2 with mpm_prefork. Please do not use mod_php or disable http2 in the directadmin.conf
Check out this page: Apache 2.4.27.
For more information about DirectAdmin custombuild, visit the official forum.
Comments