Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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,888
    Likes Received:
    90
    Trophy Points:
    78
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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,888
    Likes Received:
    90
    Trophy Points:
    78
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Have you tried to run following command

    Code:
    /usr/local/cpanel/bin/register_appconfig addon_modsec.conf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    11
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice