I had lots of issues with mod_security blocking my sites on Ubuntu 14.04, so I uninstalled it by running:
apt-get remove libapache2-mod-security2
But, this still left the /etc/modsecurity/ folder intact, so I manually removed it by running rm -rf /etc/modsecurity
I reinstalled modsecurity again and enabled it, but can’t proceed further with the configuration because, at /etc/modsecurity/, I can’t find the two files modsecurity.conf-recommended and unicode.mapping. All I get when I change to the directory /etc/modsecurity/ and do an ls -la is this:
The file modsecurity.conf-recommended at this path has to be renamed to modsecurity.conf for mod_security to work, but it’s just not there.
I think it was a mistake to manually delete the /etc/modsecurity folder and would greatly appreciate any pointers to fix this issue.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!