check envtype on cpanel server -(vmware or virtuozzo)
root@host [~]# cat /var/cpanel/envtype
vmware
root@host [~]#
root@host [~]# cat /var/cpanel/envtype
vmware
root@host [~]#
2) Click on the edit button of the particular PHP version for which you need to change the PHP Handler.
3) Select the proper PHP handler and Click on Apply button to save the changes.| PHP Handler | Module Name |
|---|---|
| CGI | ea-apache24-mod_cgi or ea-apache24-mod_cgid |
| FastCGI | ea-apache24-mod_proxy_fcgi |
| SuPHP | ea-apache24-mod_suphp |
| DSO | ea_php5x_php |
/usr/local/cpanel/bin/rebuild_phpconf --current
DEFAULT PHP: ea-php56 ea-php55 SAPI: suphp ea-php56 SAPI: cgi ea-php70 SAPI: suphp
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --available ea-php55: cgi none suphp ea-php56: cgi dso none suphp ea-php70: cgi none suphp
/usr/local/cpanel/bin/rebuild_phpconf --$package=$handler
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php56 ea-php55 SAPI: suphp ea-php56 SAPI: cgi ea-php70 SAPI: suphp
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --available ea-php55: cgi none suphp ea-php56: cgi dso none suphp ea-php70: cgi none suphp
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --ea-php55=cgi
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php56 ea-php55 SAPI: cgi ea-php56 SAPI: cgi ea-php70 SAPI: suphp