cPanel Home Loaders
Posted: November 10th, 2008 | Author: telcor | Filed under: Information Technology (IT), PHP | Tags: cPanel, Technical |Last
time, we discussed the interfaces in cPanel to manage Programming Language
modules, such as PEAR packages. We were left
with this problem:
Once the particular module is installed to
the user’s home directory, it is available for use in his application. However,
the application must be modified, or the environment configured, to inform the
application of the location of these modules.
With cPanel 11, there is an easy way to do this using what are known as Home
Loader modules. These modules allow a user to use modules in
/home/user/lang without modifying existing applications to add
the appropriate path information. The Home Loader modules perform this
dynamically, adding the /home/user/lang path in the
appropriate manner.
For example, the PHP Home Loader modifies the include_path to include ~/php
There is a Home Loader module for each of PHP, Perl and Ruby. To enable or
disable the Home Loader module for a particular language, login to WHM as root
and Click the Module Installers link in the Software section. Click the Manage
link for the appropriate language. Please note, for PHP, one must select PHP
Extensions and Applications Package as the PHP Pecl management interface does
not contain the Home Loader functionality.
Once in the Manage interface for the appropriate language, one can view the
Status of the Home Loader module, as well as change the Status. A status of
disabled signifies the module is not installed A status of enabled signifies
the module is installed. To change the status, click the button labeled ‘Enable’
or ‘Disable.’ Source for the modules exist in /usr/local/cpanel/src/user${lang}
where ${lang} is replaced by the language name. For example, the source for the
PHP Home Loader module is in /usr/local/cpanel/src/userphp
These modules are not enabled by default.
Related posts
- cPanel Language Module Interfaces Scripting languages often provide a central location to obtain modules...
- Securing PHP in Shared Hosting Environment One of the problems inherent to using an Apache Module...
- Multiple email domains for a home user - Part 2 Sometime ago, I posted this article about having/managing email accounts...
- Business with GNU/Linux: Timesheets Note: This is the first of a series of articles...
- Writing a site engine At DevShed you can find many articles about all spects...
Related posts brought to you by Yet Another Related Posts Plugin.
Leave a Reply