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.

500 error - unregistered applications

Discussion in 'Security' started by Cloud9, Oct 27, 2013.

  1. Cloud9

    Cloud9 Active Member

    Joined:
    Sep 17, 2012
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    In WHM i have config server modsec control as an app

    I get a 50 error as ist not a registered app in ACL

    Rather than turning this off how do i register the app CFS Modsec control
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    You can register your app in ACL through following command

    Code:
    /usr/local/cpanel/bin/register_appconfig /cgi/addon_modsec.cgi
    Please check : AppConfig
     
  3. Cloud9

    Cloud9 Active Member

    Joined:
    Sep 17, 2012
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Thanks - The bit i was missing was add-on_modsec.cgi

    Where do you find that info out ?

    - - - Updated - - -

    Hmm

    When i type your code in i get

     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Okay, Try to create file addon_modsec.conf in /var/cpanel/apps directory with the following code

    Code:
    # name
    name=addon_modsec
    
    # 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/addon_modsec.cgi
     
    # System user to run process as
    user=root
    
    # Required acls
    acls=any
    
    # Display name as show in the service ui
    displayname=addon_modsec
    
    Once you add this try to run following command

    Code:
    /usr/local/cpanel/bin/register_appconfig addon_modsec.conf
     
  5. Cloud9

    Cloud9 Active Member

    Joined:
    Sep 17, 2012
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    There is already this file

    modsec.conf in /var/cpanel/apps

    ?

    - - - Updated - - -

    Which contains

    Code:
    name=modsec
    service=whostmgr
    url=/cgi/addon_modsec.cgi
    user=root
    displayname=Mod Security
    entryurl=addon_modsec.cgi
    acls=any
    upgradecall=/usr/local/cpanel/whostmgr/docroot/cgi/addon_modsec.cgi
     
  6. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Have you tried to run following command

    Code:
    /usr/local/cpanel/bin/register_appconfig addon_modsec.conf
     
  7. Cloud9

    Cloud9 Active Member

    Joined:
    Sep 17, 2012
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Yes - see post 3

    Same result
     
  8. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    ConfigServer ModSecurity Control should be able to register itself.
    I'd suggest you uninstall it and then reinstall and it should be fine after that.
     
  9. Cloud9

    Cloud9 Active Member

    Joined:
    Sep 17, 2012
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I could do that but have found in the past that doing such can break things and cause me more agro - at present modsec is working just fine - surely there is some way to get this app registered ?
     
  10. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    ConfigServer's update should register the application in this case. You can find more information on the the cPanel application configuration process at:

    cPanel - AppConfig

    Thank you.
     
Loading...

Share This Page