1. Copy the php.ini file to your cgi-bin folder.
2. Create a file named php.fcgi in the cgi-bin folder.
3. Insert the following script,
#!/bin/sh export PHP_FCGI_CHILDREN=1 export PHP_FCGI_MAX_REQUESTS=10 exec /usr/local/cpanel/cgi-sys/php5
4. Change the php.fcgi permission to 755.
5. Create/Edit the .htaccess file and insert the following script.
AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php.fcgi