From EZP Knowledge Base
Your WHM control panel lets you compile and install the Apache webserver software with ease. Increasingly, websites now are powered by PHP. Lucky for us, WHM also allows us to compile PHP with ease.
There are 3 main methods in which PHP can be configured to work with Apache:
1) As a DSO (aka mod_php) - which makes PHP one of Apache's dynamic shared object module and this is by far the fastest possible approach. Since PHP is a part of the Apache binary; it executes under the privileges of Apache user and therefore the security is minimum in this approach.
2) SuPHP - This is a very secure method in which the Apache module called mod_suphp handles the request for PHP pages, switching to the correct user before doing so.
3) FastCGI - This method uses mod_fastcgi in Apache to handle requests and the module maintains dynamic connection pool to a group of PHP processes. You can use Suexec with mod_fastcgi to make the installation secure.
Oh, there is one more method, but it is really outdated: CGI - This is slowest and oldest approach in configuring php with apache. It can also be made secure by using SuExec.
You can configure php from the link "Configure PHP and SuExec" under the "Service Configuration" section in your WHM. Here you will be able to switch to the various above mentioned PHP configurations if you have compiled PHP in the "Apache update" section of WHM.
At EZProvider Networks we configure PHP in any of the above configurations to meet your specific requirements.