How to enable or disable custom php.ini on a Su-exec Server ?

If  you want to  disable custom php.ini  settings  on  a Su-exec server  then  make the   below changes in  the suphp.conf  file(/opt/suphp/etc/suphp.conf) :

[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.

application/x-httpd-php=/usr/local/lib/
application/x-httpd-php4=/usr/local/php4/lib/
application/x-httpd-php5=/usr/local/lib/

And if you want to  enable the custom php.ini settings  then  just make the below changes  in  the suphp.conf

[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.
;application/x-httpd-php=/usr/local/lib/
;application/x-httpd-php4=/usr/local/php4/lib/
;application/x-httpd-php5=/usr/local/lib/

That’s all you are done.

Note :  Just restart the Apache service  after making the above changes.