Install DSO PHP handler on a cPanel server with EasyApache 4
By default the new EasyApache 4 would not have DSO PHP handler enabled. Depending on the PHP version that you would like DSO enabled for you need to install the following:
yum install ea-php56-php
Note that you need to change 'ea-php56-php' to your desired PHP version, for example if you need to istall it for PHP 7.1 use ea-php71-php
yum install mod_ruid2
yum install mpm_prefork
After that make sure to update your PHP handler, you can do that via WHM. This is pretty much it.
As the DSO handler can only be used for one PHP version at a time, if you would like to use DSO for a different PHP version you can do the following:
yum remove ea-php56-php
yum install ea-php71-php
After that make sure to update your PHP handler, you can do that via WHM.