Since I figured these might be helpful to people running either FCGI or CGI handlers on PHP, I'm going to post my guides that I have on my own forum here. If this is in the wrong spot for such guides, please feel free to move them. I hope these will be helpful 
PHP FCGI Individual php.ini File
The following steps will allow a custom php.ini file on an account when using FCGI as the PHP handler.
Copy and Edit default php.ini
As a test change one of the variables like register_globals from:
To:
If yours was On, then do the reverse. This is simply to test it changes from the global php.ini file.
Create php.fcgi file to load custom php.ini
Please note that you should still be in /home/user/public_html/cgi-bin location.
Put into file:
Please note the path to php5 is due to using PHP5 on this system. If you are using php4, it might be /usr/local/cpanel/cgi-sys/php4 or some other path. Check /etc/httpd/conf/php.conf to see what it shows for cgi-sys path for your version of PHP.
Save file, then made executable:
Change ownership of files to correct user:
Edit .htaccess to point to php.fcgi wrapper
Put at top of file:
Again, here php5 is listed.
Add paths to php.conf file
Add the following lines to /usr/local/apache/conf/php.conf file:
Yours will probably look similar to the following after those lines are added:
Distill and rebuild Apache, then restart Apache
Run these commands:
Load phpinfo page on account
In file put:
Change ownership to the user:
Load the file at http://domain.com/php.php to see the results.
Your phpinfo file should now show register_globals changed as well as have this at the top defining the new php.ini path:
-----
PHP CGI Individual php.ini File
The following steps will allow a custom php.ini file on an account when using CGI as the PHP handler.
Copy and Edit default php.ini
As a test change one of the variables like register_globals from:
To:
If yours was On, then do the reverse. This is simply to test it changes from the global php.ini file.
Create php.cgi file to load custom php.ini
Please note that you should still be in /home/user/public_html/cgi-bin location.
Put into file:
Please note the path to php5 is due to using PHP5 on this system. If you are using php4, it might be /usr/local/cpanel/cgi-sys/php4 or some other path. Check /etc/httpd/conf/php.conf to see what it shows for cgi-sys path for your version of PHP.
Save file, then made executable:
Change ownership of files to correct user:
Edit .htaccess to point to php.cgi wrapper
Put at top of file:
Again, here php5 is listed. If your PHP is different, use the Action listed for your version of PHP in /etc/httpd/conf/php.conf file.
Load phpinfo page on account
In file put:
Change ownership to the user:
Load the file at http://domain.com/php.php to see the results.
Your phpinfo file should now show register_globals changed as well as have this at the top defining the new php.ini path:
PHP FCGI Individual php.ini File
The following steps will allow a custom php.ini file on an account when using FCGI as the PHP handler.
Copy and Edit default php.ini
Code:
cd /home/user/public-html/cgi-bin
cp /usr/local/lib/php.ini /home/user/public_html/cgi-bin
vi php.ini
Code:
register_globals = Off
Code:
register_globals = On
Create php.fcgi file to load custom php.ini
Code:
vi php.fcgi
Put into file:
Code:
#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=10
exec /usr/local/cpanel/cgi-sys/php5
Save file, then made executable:
Code:
chmod +x /home/user/public_html/cgi-bin/php.fcgi
Code:
chown -R user:user /home/user/public_html/cgi-bin/
Code:
cd /home/user/public_html
vi .htaccess
Code:
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi
Add paths to php.conf file
Add the following lines to /usr/local/apache/conf/php.conf file:
Code:
Action php5-fastcgi /cgi-bin/php.fcgi
AddType application/x-httpd-php .php
Code:
# Fastcgi configuration for PHP5
LoadModule fcgid_module modules/mod_fcgid.so
MaxRequestsPerProcess 500
AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
Action php5-fastcgi /cgi-bin/php.fcgi
AddType application/x-httpd-php .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml
Run these commands:
Code:
/usr/local/cpanel/bin/apache_conf_distiller --update
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart
Code:
cd /home/user/public_html
vi php.php
Code:
<?php
phpinfo();
?>
Code:
chown user:user php.php
Your phpinfo file should now show register_globals changed as well as have this at the top defining the new php.ini path:
Code:
Loaded Configuration File /home/user/public_html/cgi-bin/php.ini
PHP CGI Individual php.ini File
The following steps will allow a custom php.ini file on an account when using CGI as the PHP handler.
Copy and Edit default php.ini
Code:
cd /home/user/public-html/cgi-bin
cp /usr/local/lib/php.ini /home/user/public_html/cgi-bin
vi php.ini
Code:
register_globals = Off
Code:
register_globals = On
Create php.cgi file to load custom php.ini
Code:
vi php.cgi
Put into file:
Code:
#!/bin/sh
/usr/local/cpanel/cgi-sys/php5 -c /home/user/public_html/cgi-bin/
Save file, then made executable:
Code:
chmod +x /home/user/public_html/cgi-bin/php.cgi
Code:
chown -R user:user /home/user/public_html/cgi-bin/
Code:
cd /home/user/public_html
vi .htaccess
Code:
Action application/x-httpd-php5 /cgi-bin/php.cgi
Load phpinfo page on account
Code:
cd /home/admin/public_html
vi php.php
Code:
<?php
phpinfo();
?>
Code:
chown user:user php.php
Your phpinfo file should now show register_globals changed as well as have this at the top defining the new php.ini path:
Code:
Loaded Configuration File /home/user/public_html/cgi-bin/php.ini