Troubleshoot - by Hostrare
In cPanel & WHM 11.38.1, the AppConfig system was expanded. You can now apply the AppConfig method to record and perform WHM Plugins.
Note: By error, certification is needed for WHM addons and is full support for cPanel & Webmail addons.
Note: Booking is only wanted if the admin has damaged the Allow apps that have not recorded with AppConfig to be run when logged in as a reseller to WHM tweak setting (Home >> Server Configuration >> Tweak Settings). This option defaults to on in translation 11.38.1.
You must use AppConfig to register your plugin’s urls, entry url, name, and display name.
The following error will display when you installed mod security plugin.
HTTP error 401cgi/addon_modsec.cgiWHM is configured to disallow execution of unregistered applications when logged in as root or a reseller with the "all" ACL. To enable this functionality you must do one of the following: Register this addon using /usr/local/cpanel/bin/register_appconfig (AppConfig), Enable the "Allow apps that have not registered with AppConfig to be run when logged in as root or a reseller with the "all" ACL in WHM" option in "Tweak Settings", or add permit_unregistered_apps_as_root=1 to /var/cpanel/cpanel.config, and run /usr/local/cpanel/etc/init/startcpsrvd
Create folder if it does not exist.
mkdir /var/cpanel/apps
chmod 755 /var/cpanel/apps
Create a configuration (.conf) file for your plugin. For mod security,
vi addon_modsec.conf
# namename=addon_modsec# Service that will serve this appservice=whostmgr# Physical path: /usr/local/cpanel/3rdparty/Foo.php# Literal URL path: $server:$port/$cpsession/3rdparty/Foo.phpurl=/cgi/addon_modsec.cgi# System user to run process asuser=root# Required aclsacls=any# Display name as show in the service uidisplayname=addon_modsec
Then register mod security plugin
/usr/local/cpanel/bin/register_appconfig addon_modsec.conf
Thats all…
In order to unregister, use this command
/usr/local/cpanel/bin/unregister_appconfig addon_modsec.conf
/usr/local/cpanel/bin/show_appconfig — This script performs a YAML-formatted list of treatments that are registered with AppConfig and their environments.
our suuport team here for you 24/7
+8801977507015support@hostrare.comsend a leter Whether you are looking for a personal website hosting plan or a business website hosting plan, We are the perfect solution for you. Our powerful website hosting services will not only help you achieve your overall website goals, but will also provide you with the confidence you need in knowing that you are partnered with a reliable and secure website hosting platform.