If you want to simultaneously use other PHP-versions or simply like to have the additional performance and manageability FastCGI Process Manager (PHP FPM) is the way to go. Basic receipt is:
yum install php-fpm ; Edit /etc/php-fpm.d/www.conf Listen-Port to 9054 systemctl enable php-fpm systemctl start php-fpm rm /etc/httpd/conf.modules.d/10-php.conf ; Edit inĀ /etc/httpd/conf.d/ the websites you want to use PHP 5.4 FPM SetHandler "proxy:fcgi://127.0.0.1:9054" apachectl graceful
Generally php-directives in conf and .htaccess-files don’t work with FPM. If you get errors on restarting httpd you have to remove those statements and either try to live without them or add .user.ini-files, add it to the global settings or use SetEnv-statements.
Kolab is tied to PHP 5.4 on Centos 7 and also needs some tweaking to work with FPM.