Home MiscellaneousHow to Install custom Apache or PHP modules via easy apache on Cpanel servers?

How to Install custom Apache or PHP modules via easy apache on Cpanel servers?

by SupportPRO Admin

We can install additional modules not listed in the cPanel easyapache config options .To add custom module, we must know the version of Apache and PHP to which we need to add the module. Easy Apache allows us to specify any configure option supported by Apache and/or PHP. Place the option in the appropriate file; the files are as follows:

Apache 1.3.x /var/cpanel/easy/apache/rawopts/Apache1
Apache 2.0.x /var/cpanel/easy/apache/rawopts/Apache2
Apache 2.2.x /var/cpanel/easy/apache/rawopts/Apache2_2
All PHP 4.x versions /var/cpanel/easy/apache/rawopts/all_php4
All PHP 5.x versions /var/cpanel/easy/apache/rawopts/all_php5
Mod_suPHP /var/cpanel/easy/apache/rawopts/all_suphp
Specific PHP Version /var/cpanel/easy/apache/rawopts/PHP-X.X.X

Adding entries to the appropriate file, easyapache will pick them up.

For example, if we need to add LDAP support to PHP5,

Create all_php5 file under /var/cpanel/easy/apache/rawopts.
In this file please add the line –with-ldap

echo –with-ldap >> /var/cpanel/easy/apache/rawopts/all_php5

Note: Please make sure that the file having only one item per line.

Then rebuild the Apache/PHP. It will include the ldap module.

If you need to avoid this module please use the –skip-rawopts option with easy apache command.

#/scripts/easyapache –skip-rawopts

WHM interface to skip these custom flags:

1. Click the Help link on the first EasyApache (Apache Update) screen.
2. Check the Do not use raw opts support checkbox.
3. Click Submit.
Return to the previous screen and build the profile.

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

You may also like

Leave a Comment