Usage: /usr/local/cpanel/bin/rebuild_phpconf [–dryrun] [–no-restart] [–no-htaccess]
[–current|–available]
–dryrun : Only display the changes that would be made
–no-restart : Don’t restart Apache after updating the php.conf link
–no-htaccess : Don’t update user configurable PHP mime mapping.
–current : Show current settings
–available : Show available handlers and PHP SAPIs
: Version of PHP to set as default handler for .php files
<PHP# Handler> : Type of Apache module to use in serving PHP requests
: enabled, disabled, 1 or 0
/usr/local/cpanel/bin/rebuild_phpconf 5 cgi cgi 1