500 error - unregistered applications
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
-
Hello, You can register your app in ACL through following command /usr/local/cpanel/bin/register_appconfig /cgi/addon_modsec.cgi
Please check : [url=http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/AppConfig]AppConfig0 -
Thanks - The bit i was missing was add-on_modsec.cgi Where do you find that info out ? [COLOR="silver">- - - Updated - - - Hmm When i type your code in i get [QUOTE]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 /usr/local/cpanel/bin/register_appconfig ./pkg/appconfig/myapp.appconfig /usr/local/cpanel/bin/register_appconfig --help 0 -
Okay, Try to create file addon_modsec.conf in /var/cpanel/apps directory with the following 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/usr/local/cpanel/bin/register_appconfig addon_modsec.conf0 -
There is already this file modsec.conf in /var/cpanel/apps ? [COLOR="silver">- - - Updated - - - Which contains 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.cgi0 -
Have you tried to run following command /usr/local/cpanel/bin/register_appconfig addon_modsec.conf0 -
[quote="24x7server, post: 1491492">Have you tried to run following command /usr/local/cpanel/bin/register_appconfig addon_modsec.conf
Yes - see post 3 Same result0 -
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. 0 -
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 ? 0 -
You can run Configserver Script Updater: [url=http://blog.configserver.com/?p=12]ConfigServer Script Updates | ConfigServer Services Blog 0 -
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. 0
Please sign in to leave a comment.
Comments
10 comments