.pdf)
WHM Plugins
php.ini the PHP binary should utilize
/var/cpanel/apps/. .conf file extension.
| Key | Status | Description |
|---|---|---|
| url | Required | The URL path to the application to run. |
| service | Required | The service in which the URL is served. This value must be either cpanel, whostmgr, or webmail. If your application is used in more than one service, you will need to create configuration files for each service. This key may only contain one value. |
| user | Optional | The user who will run the application. |
| phpHandler | Optional | The php.ini file the application should use. |
/usr/local/cpanel/base/3rdparty/. Only applications in /usr/local/cpanel/base/3rdparty/ are accessible to AppConfig.
For example, specifying /3rdparty/Foo.php will run an application called Foo.php in /usr/local/cpanel/base/3rdparty.
service key specifies the service (cPanel, WHM, or webmail) in which the URL is served. This key must contain one of three values: cpanel, whostmgr (WHM), or webmail. If your application is used in more than one service, you will need to create configuration files for each service. This key may only contain one value.
cpanel. This will denote that the user is used to run an application inside of cPanel, but is not a cPanel user.
For example, setting this key's value to cpanelUser will run the application you specified in URL as cpanelUser.
php.ini file your application will use. This value must contain the directory inside of /usr/local/cpanel/3rdparty/etc/ that contains the php.ini file your application will use.
For example, specifying Foo as this key's value will use the file /usr/local/cpanel/3rdparty/etc/Foo/php.ini to run the application specified in url as the user specified in user.
Foo.php as cpanelUser with the php.ini file located at /usr/local/cpanel/3rdparty/etc/Foo/php.ini.
# Service that will serve this app service=cpanel # Physical path: /usr/local/cpanel/3rdparty/Foo.php # Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php url=/3rdparty/Foo.php # System user to run process as user=cpanelUser # Directory containing php.ini # - must exist in /usr/local/cpanel/3rdparty/etc/ phpHandler=Foo
Copyright © cPanel 2000–2011.