The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by vipin, Jun 18, 2014.

  1. vipin

    vipin Active Member

    Joined:
    Aug 23, 2013
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    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 ?
     
    #1 vipin, Jun 18, 2014
    Last edited by a moderator: Jun 18, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,724
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page