Introduction
Use AppConfig to register plugins with the WHM interface. AppConfig registration adds plugin icons to the WHM interface automatically. It also configures the plugin's ACL requirements, upgrade script information, and other plugin variables.
Notes:
- This method is available in cPanel & WHM version 11.32 and later, and is required for cPanel & WHM version 11.38.1 and later.
AppConfig registration
To register your WHM plugin with AppConfig, perform the following steps as the root
user:
- If it does not already exist, create the
/var/cpanel/apps
directory. -
Run the following command to set the correct directory permissions:
chmod
755
/var/cpanel/apps
- Create an AppConfig configuration file for the plugin.
-
Run the following command to register the configuration file, where
example.conf
is the configuration file:/usr/local/cpanel/bin/register_appconfig
~
/example
.conf
-
Run the following command to confirm that the plugin created its own
.conf
file in the/var/cpanel/apps/
directory:ls -al /var/cpanel/apps
This command's output should resemble the following example:
total
12
drwxr-xr-x
2
root root
4096
Aug
6
22
:
41
./
drwxr-xr-x
83
root root
4096
Aug
7
18
:
00
../
-rw-------
1
root root
259
Aug
6
22
:
41
example.conf