CentOS
yum update-y
Since you run the DirectAdmin control panel on your webserver, some packages are handled through CustomBuild. The next step is to update your PHP to version 7.0. So, we go to the right directory
cd /usr/local/directadmin/custombuild
Now you are in the right directory, let’s bump up that PHP version number:
./build set php1_release 7.0 ./build update ./build php d
Your server should now be running version 7 of PHP! To verify the version number, paste the following code in your terminal:
php -v
The output should look similar to this one:
PHP 7.0.0 (cli) (built: Dec 4 2015 04:55:02) ( NTS ) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies