500 error - unregistered applications

Cloud9

Well-Known Member
Sep 17, 2012
46
0
6
UK
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
 

Cloud9

Well-Known Member
Sep 17, 2012
46
0
6
UK
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

The 'conf_file' must be readable and a plain file.


/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:

http://go.cpanel.net/appconfig

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
 

24x7server

Well-Known Member
Apr 17, 2013
1,907
95
78
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
 

Cloud9

Well-Known Member
Sep 17, 2012
46
0
6
UK
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
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
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.
 

Cloud9

Well-Known Member
Sep 17, 2012
46
0
6
UK
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 ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.