If any website scripts stringently need FCGI handler for working, you can install it from EA4 experimental Repository.
Follow below steps for assigning PHP 5.3 with FCGI handler on easyapache 4 server.
1. Install ea4-experimental Repository and mod_fcgid module.
===
yum install ea4-experimental
yum install ea-apache24-mod_fcgid.x86_64
===
2. Create a file “/etc/apache2/conf.d/php-fcgi-53.conf” with below pasted code.
======
FcgidWrapper /usr/local/cpanel/cgi-sys/php53 .php
FcgidWrapper /usr/local/cpanel/cgi-sys/php53 .php5
FcgidWrapper /usr/local/cpanel/cgi-sys/php53 .phtml
=====
3. Add PHP 5.3 binary path in file /usr/local/cpanel/cgi-sys/php53
===
#!/bin/sh
exec /usr/local/cpanel/3rdparty/php/53/bin/php-cgi
===
4. Change ownership and permission
===
chown root:wheel /usr/local/cpanel/cgi-sys/php53
chmod +x /usr/local/cpanel/cgi-sys/php53
===
5. Check apache configuration and restart
==
httpd -t
/etc/init.d/httpd restart
===
6. Add below lines in .htaccess file
===
AddHandler fcgid-script .php .php5 .phtml
====