EasyApache Custom Modules

Before you begin

  • What are these modules for?
    These modules allow you to add custom Apache and PHP modules to EasyApache which will be accessible from the command line and WHM interfaces. Custom modules are compiled into Apache and/or PHP just like the modules provided with EasyApache.
  • Where is the documentation for making custom modules?

Documentation can be found on your server at WHM -> EasyApache -> Help -> "Cpanel::Easy Framework POD" and via CLI `/scripts/easyapache --perldoc`. Documentation can also be found here

  • Does cPanel provide support for custom  modules?
    No, these are "use at your own risk".

  • Will modules here be included in EasyApache?
    More than likely, no. This site is not a proving ground for future inclusions.

  • What happens if I have problems building?
    If you are unable to troubleshoot the problem, run /scripts/easyapache --skip-custom-optmods to build Apache and PHP without any custom modules (or the WHM equivalent found in EasyApache's 'Help' section).

  • How do I get cPanel to include my favorite modules?
    Add your module to this poll so that we can be aware of any draw for the module.


Custom Modules


In order to install a custom module, it must be downloaded and unzipped into /var/cpanel/easy/apache/custom_opt_mods/. From your server as root, you can install any module listed below by running these commands while replacing NAME.tar.gz with the filename of the module you wish to download.

wget http://easyapache.cpanel.net/optmods/NAME.tar.gz
tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf NAME.tar.gz

In order to remove a custom module from the server, simply delete the files that were created by the above commands and the module will be removed from all future builds and the EasyApache UI.



Available Modules


MPM ITK - This module allows you to run each Apache VirtualHost under a seperate uid and gid. The project page can be found here.
          download: custom_opt_mod-apache_2.2_mpm_itk.tar.gz
mod_auth_mysql - this modules allows you to authenticate users and authorize access through a MySQL database. The project page can be found here.
          download: custom_opt_mod-mod_auth_mysql.tar.gz
mod_GeoIP - This module looks up the IP address of the client web user in the GeoIP database. The project page can be found here.
         download: custom_opt_mod-mod_geoip.tar.gz
mod_python - This module embeds the Python interpreter into Apache for faster Python applications. The project can be found here.
         download: custom_opt_mod-mod_python.tar.gz 

GD with JIS mapped Japanese font support - This module provides JIS mapped Japanese font support for the GD library under PHP5.
         download: custom_opt_mod-php5-gd_jis_mapped_japanese_font_support.tar.gz
Turkish Locale patch for PHP5 - This module improves PHP5 support for Turkish.
         download: custom_opt_mod-php5-turkish_locale_patch.tar.gz
SuPHP PAM patch - This module allows you to use limits (/etc/security*.conf) with SuPHP. More information about the patch can be found here.
         download: custom_opt_mod-suphp_pam_patch.tar.gz