Third party plugins interfaces are not displayed from WHM (cPanel 11.44)

vipin

Active Member
Aug 23, 2013
28
0
1
cPanel Access Level
Root Administrator
Hello,

Today I have update cPanel server to new version (11.44) after updating i had tried to install CSF plugin but the plugin interface was not working from WHM >> Plugins page.In previous cPanel versions all plugins config files were saved in /var/cpanel/apps (Eg : /var/cpanel/apps/csf.conf) but in new cPanel release it is a file which is causing this problem.

Please see the errors encountered while registering CSF plugin.
---------

Code:
[B]# /usr/local/cpanel/bin/register_appconfig /usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf/csf.conf[/B]
Failed to write /var/cpanel/apps/csf.conf: Not a directory


/usr/local/cpanel/bin/register_appconfig: Summary

This tool allows you to install an appconfig file an ensures that it is
registered with the system and available for use.  For more information
please see the documentation for this system:

[url]http://go.cpanel.net/appconfig[/url]

Example usage:

  /usr/local/cpanel/bin/register_appconfig <conf_file>

  /usr/local/cpanel/bin/register_appconfig ./pkg/appconfig/myapp.appconfig

  /usr/local/cpanel/bin/register_appconfig --help

-------------------
Code:
[B]# cat /var/cpanel/apps[/B]
# name
name=lview
/var/cpanel/apps
# Service that will serve this app
service=whostmgr

# Physical path: /usr/local/cpanel/3rdparty/Foo.php
# Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php
url=/cgi/logview/lview.cgi

# System user to run process as
user=root

# Required acls
acls=software-LogView-lview

# Display name as show in the service ui
displayname=System Log Viewer - <b>LogView</b>

# Url to show in the service ui (relative to install path for whm this is cgi/)
entryurl=logview/lview.cgi

# Path to upgrade script
upgradecall=/usr/local/cpanel/whostmgr/docroot/cgi/logview/lview.cgi

--------------------
I have just moved the file /var/cpanel/apps to another location and just created a directory with same name .Now i am able to install plugins without any issues.Is it safe/proper to do like this ?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

"/var/cpanel/apps" should in-fact be a directory, and not a file. This is documented here:

Creating WHM Plugins
cPanel AppConfig

It looks like a custom plugin you installed may have mistakenly created "/var/cpanel/apps" as a file, which is not a valid method of registering an app.

Thank you.