Development Guides Home >> Guide to WHM Plugins
AppConfig configuration files store each plugin's or application's AppConfig settings.
Warning:
The system will not apply changes to AppConfig configuration files until the
cpsrvdservice restarts. For more information, read our How to Restart Services documentation.Configuration files must exist in the
/var/cpanel/apps/directory and must use the.conffile extension.
When you create an AppConfig file, use the key=value pairs from the tables below.
Note:
The AppConfig configuration file supports comments.
| Key | Type | Description | Possible values | Example |
|---|---|---|---|---|
service | string | Required The service that will serve the application. |
| whostmgr |
user | string | The system account that runs the application. For WHM applications, this value defaults to root. |
| username |
phpConfig | string | The directory that contains the application's php.ini file. | A valid directory name, relative to the /usr/local/cpanel/3rdparty/ directory. | Example |
url* | string | Additional URLs through which the system can access your application.
| A valid application location. | http://www.example.com/application.php |
| Key | Type | Description | Possible values | Example |
|---|---|---|---|---|
url | string | Required The application's location. | A valid location, relative to the /usr/local/cpanel/whostmgr/docroot/ directory. You must prefix the URL with a slash (/), or your WHM plugin will not function. | /cgi/example.cgi |
acls | string | Required A list of ACLs. The authenticated user must possess at least one of these ACLs to access the application. |
| any |
entryurl | string | The URL to access the application through the WHM interface.
| A valid location, relative to the /usr/local/cpanel/whostmgr/docroot/ directory. | addons/example/index.cgi |
displayname | string | The application's display name in the WHM interface. | A valid string. | My Application |
icon | string | The application's icon's filename. | A valid WHM icon filename. For more information, read our Guide to WHM Plugins - Plugin Files documentation. | example_icon.png |
searchtext | string | Custom keywords for searching and locating your plugin in the WHM interface.
| A space-separated list of keywords. | MyPlugin Keyword1 Keyword2 |
target | string | The targeted browser window in which to open the application link.
| A valid target attribute. Specify _self to open in the current browser tab. | _blank |
| Key | Type | Description | Possible values | Example |
|---|---|---|---|---|
url | string | Required The URL to access the application through the cPanel or WHM interface. |
| 3rdparty/example.php |
features | string | Required
|
| any |
# The application's service.
service=cpanel
# Physical path: /usr/local/cpanel/3rdparty/Example.php
# Literal URL path: $server:$port/$cpsession/3rdparty/Example.php
url=/3rdparty/Example.php
# System user to run process as
user=cpaneluser
# Directory that contains the php.ini file.
# (in the /usr/local/cpanel/3rdparty/ directory)
phpHandler=Example
# Features required
features=any