Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using cpanel (11.25 Stable 46156) with mod security installed. How can I know the version of mod security that installed in the server?

How can I update mod security manually or make it update automatically ?

share|improve this question

closed as off-topic by masegaloeh, mdpc, Jenny D, Sven Mar 8 '15 at 11:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – masegaloeh, mdpc, Jenny D, Sven
If this question can be reworded to fit the rules in the help center, please edit the question.

Another way to find it out is by simply restarting your Apache server and look in the logs for info:

$ sudo service apache2 restart

$ grep -i modsecurity /var/log/apache2/error.log

[Sun Mar 08 19:14:02.000210 2015] [:notice] [pid 1912] ModSecurity for Apache/2.7.7 (http://www.modsecurity.org/) configured.
[Sun Mar 08 19:14:02.000278 2015] [:notice] [pid 1912] ModSecurity: APR compiled version="1.5.1-dev"; loaded version="1.5.1-dev"
[Sun Mar 08 19:14:02.000290 2015] [:notice] [pid 1912] ModSecurity: PCRE compiled version="8.31 "; loaded version="8.31 2012-07-06"
[Sun Mar 08 19:14:02.000300 2015] [:notice] [pid 1912] ModSecurity: LUA compiled version="Lua 5.1"
[Sun Mar 08 19:14:02.000308 2015] [:notice] [pid 1912] ModSecurity: LIBXML compiled version="2.9.1"
share|improve this answer

cPanel Apache 1.3 uses Mod security 1.x and Apache 2.x uses mod security 2.x

To know which apache you have running type on the shell command line: httpd -V

To know the exact version of mod_security installed, find the file mod_security.c open it with any editor such as nano, vi or the one you prefer and look for the line: #define MODULE_RELEASE

If you have apache 2.x you can simple compile it again with the latest tarball file to upgrade it to the latest version, a step-by-step is available at:

http://www.modsecurity.org/documentation/modsecurity-apache/2.5.12/html-multipage/installation.html

share|improve this answer
    
sorry but i could not find mod_security.c file , by the way i'm using rhel 5 – Libyano Aug 24 '10 at 16:33
    
in your httpd.conf what is the loadmodule line you have for mod_security ? – Prix Aug 24 '10 at 16:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.