
Originally Posted by
saeed.ashour
i'm using cpanel (11.25 Stable 46156) with mod security installed , how i can i know the version of mod security that installed in the server.
second how i can update mod security manually or make it update automatically ?
and when cpanel updated is mod security updated too?
The mod_security version is logged to the Apache error_log upon starting or restarting Apache/httpd; the specific version can be determined using the following command via root SSH access:
Code:
# grep "modsecurity" /usr/local/apache/logs/error_log
If you do not see the mod_security version, perhaps due to the log being rotated, simply restart Apache/httpd and then run the above command once more; if needed, you may use the following command to restart Apache/httpd:
Code:
# /scripts/restartsrv_httpd
Here is an example of what the log entry may look like:
Code:
[notice] ModSecurity for Apache/2.5.12 (http://www.modsecurity.org/) configured.
ModSecurity is updated independently of cPanel. When a new stable version of mod_security is released it will be put through Quality Assurance testing and upon passing it should then be available for installation and upgrades via EasyApache. When running EasyApache it will check for any available updates and automatically use the new version when rebuilding your Apache/httpd installation. EasyApache may be accessed using either of the following two methods:- Via root access to WebHost Manager (WHM):
WHM: Main >> Software >> EasyApache (Apache Update)
- Via root access to command-line SSH/console:
Code:
# /scripts/easyapache
# /scripts/easyapache --help
# /scripts/easyapache --perldoc
For additional EasyApache information I recommend the following documentation resource: Apache & cPanel/WHM