Archive for March, 2011


Cpanel Apache options related to PHP

Cpanel Apache options related to PHP

Apache options that directly affect how PHP is served.

* CGI (mod_cgi) — This module is required for Apache to execute CGI scripts. Leave this option enabled. Disabling it will prevent mod_cgi from serving PHP pages.

* CGID (mod_cgid) — This module is only available for Apache 2.x and is required as a replacement for mod_cgi when using threaded MPMs. If you wish to use a threaded MPM, make sure this module is enabled.
* Mod FCGID — This module is only available with Apache 2.x and allows Apache to create and manage FastCGI server processes that remain in memory between HTTP requests. Because any binary capable of using the FastCGI protocol can be managed using this module, you can enable mod_fcgid independently of FastCGI support in PHP. This would, for instance, allow you to serve Ruby via FastCGI.

Referemce : FastCGI documentation -

Choosing which main PHP version to build

Though it is possible to enable both PHP 4 and PHP 5, Cpanel recommend only enabling one version of PHP. This is because when only one version is installed, the binaries are configured in such a way to mirror EasyApache’s installation, simplifying configuration and management.

A CGI binary is installed in /usr/bin/php.
A CLI binary is installed in /usr/local/bin/php


When both PHP 4 and PHP 5 are enabled, PHP 5 is installed in the standard locations, listed above, while:

A CGI binary for PHP 4 is installed in /usr/php4/bin/php.
A CLI binary for PHP 4 is installed in /usr/local/php4/bin/php.

Pls Note: PHP 4 is no longer supported by its developers. WCpanel strongly recommend you use PHP 5.


Cpanel Standard PHP extensions

Standard PHP extensions

EasyApache has the ability to install, uninstall, and update several popular PHP extensions as part of the build process. When EasyApache runs, it will automatically determine which extensions are active in the main php.ini file at /usr/local/lib/php.ini.

Active extensions will automatically be selected in the EasyApache interface.

Rerunning EasyApache is not required in order to enable or disable the standard PHP extensions. cPanel now provides a tool called

/scripts/phpextensionmgr that can also be used for the installation or removal of PHP extensions.

For detailed information about this tool, run the following command:

/scripts/phpextensionmgr –help

WHM News - The Apache security/version table

The News link at the top of the WHM screen provides up-to-date information about your server. The information is divided up into 3 sections:

This table shows selected Apache modules you have installed on your server.

The information is divided into 4 columns:

Module — The module to which the other information in the row pertains.
Apache Core — The Apache web server. For more information visit
mod_ssl — The module that provides SSL cryptography to the Apache web server. For more information visit
OpenSSL — A general purpose, open source, cryptographic library for SSL and TLS. Fore more information visit
Passthrough Authentication — Also seen as mod_auth_passthrough. A module that is installed with Apache to allow other programs to use their own authentication methods. cPanel uses it specifically to allow FrontPage® to use its own authentication system.
Bandwidth Limiter — Also seen as mod_bwlimited. The module that is installed with WHM and cPanel that allows you to limit your users’ bandwidth usage.
FrontPage® — The FrontPage extensions that are installed with WHM and cPanel.
Latest Version — The newest version of the corresponding module that is available.
Installed Version — The version of the module that is currently installed on your server.
Status — Shows whether or not the corresponding module is considered secure.



EasyApache3 and Mod SuPHP

EasyApache3 and Mod SuPHP

This module is the replacement for EasyApache 1’s PHPSuexec patches. This module provides an easy way of running PHP as the owner of the VirtualHost who is serving the request.

If you have already running Apache with mod_so (DSO-support), mod_suphp should have been installed to your Apache server automatically.

If it is not working look for the two lines

LoadModule suphp_module /usr/lib/httpd/

and in your “httpd.conf”.

AddModule mod_suphp.c

Next »