Configure PHP and suEXEC  is the tool in WHM which allows you to configure the Apache PHP Handler, the default PHP version and suEXEC support.

If you wish you may also check and configure Apache PHP Handler from the command line.. To do so you may use the below commands 🙂

 

1. Currently used Apache PHP Handler the server can be checked with

[root@Server ~]# /usr/local/cpanel/bin/rebuild_phpconf –current

2. Available Apache PHP Handler the server can be checked with

[root@Server ~]# /usr/local/cpanel/bin/rebuild_phpconf –available

3. Set default Apache PHP Handler to dso

[root@Server ~]# /usr/local/cpanel/bin/rebuild_phpconf 4 dso none 1

4. Set default Apache PHP Handler to suphp:-

[root@Server ~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1

5. Set default Apache PHP Handler to cgi

root@Server ~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none cgi 1