In this article we'll discuss disabling mod_security on your account via our Modsec Manager plugin for cPanel.

If you don't know what mod_security is, you might want to first check out our article on what is mod_security and why is it important.

Also you might be getting 406 Non Acceptable Error Messages from having mod_security enabled as well.

Below are the steps to follow to disable mod_security for one of your domains.

Note! You may not have the option to enable or disable mod_security in your cPanel on VPS or Dedicated servers. To disable mod_security on accounts that don't have the option in cPanel, you will need to use command line via SSH or contact tech support to disable/enable it for you.

  1. Login to cPanel
  2. modsec-managerUnder the Security section, click on Modsec Manager.
  3. modsec-manager-default-onmod_security will be on by default for all your sites, shown by a checkmark beside them.
  4. modsec-manager-update-offRemove the checkmark beside the domain you wish to turn mod_security off for, and click Update.
  5. modsec-manager-completeYou should now see that mod_security was disabled for the domain you selected.
  6. modsec-manager-disabledIf you have mod_security disabled, you'll see a blank checkbox beside the domain.
  7. modsec-manager-update-onTo enable mod_security on a disabled domain, place a checkmark beside the domain and click on Update.
  8. modsec-manager-enabledYou should now see that mod_security was enabled for the selected domain.

You should now know how to turn mod_security on and off for any of your domains that might be encountering problems relating to it being enabled by default.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Mod_Security Error in Drupal Install
The mod_security error on the server?
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-07-18 9:35 am
i am searching the mod_securty on cpannal i upload the vedio in admin pannal so find the error in my cpannal modsec option not appere Not Acceptable

An appropriate representation of the requested resource /admin/manage_conditions.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



Staff
8,511 Points
2014-07-18 10:49 am
This error is indeed typically caused by mod_security. We recommend using the Modsec Manager described in this article to turn mod_security off.
n/a Points
2014-08-08 8:00 pm
I disabled mod security on all my domains, as instructed in a support ticket, and it didn't solve the problem.
n/a Points
2014-08-31 6:27 pm

I followed the instructions but I am still recieving the an error message on my site. The error message Looks like:

"Error 406 - Not Acceptable

Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner." 

Staff
18,772 Points
2014-09-02 1:18 pm
Hello Janice,

If you are still getting the error, you will want to contact our Live Support team to have them take a look for the specific rule that is being violated.

Kindest Regards,
Scott M
n/a Points
2014-08-31 6:28 pm

I followed the instructions but I am still recieving the an error message on my site. The error message Looks like:

 

"Error 406 - Not Acceptable

Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner."

Staff
8,511 Points
2014-09-30 7:11 pm
There are some things which cannot be disabled due to them being critical security issues. Could you clarify what exactly you are trying to do when you get this?
n/a Points
2014-09-30 6:59 pm

Thanks for the article. Saved me from having to start a chat session! :)

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

8 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!