#!/bin/bash
RESTART="/sbin/service httpd restart"
PGREP="/usr/bin/pgrep"
HTTPD="httpd"
$PGREP ${HTTPD}
if [ $? -ne 0 ] # if apache not running
then
$RESTART
fi
Get link
Facebook
X
Pinterest
Email
Other Apps
Comments
Popular posts from this blog
-
GTX1050tI STABILITY ASUS GTX1050TI +100 CORE CLOCK INNO3D GTX1050TI +115 CORE CLOCK (OC TO 85 DUE TO ERRATIC AT 115) ZOTAC 1050TI LOW PROFILE +50
How to instal modsecurity in centos $ yum install modsecurity ( use atomic repo or other repository dont compile ) Download the base rules on modsecurity official site extract it in /etc/httpd/modsecurity/ Edit your /etc/httpd/conf.d/00-modsec (some file like this) add the path of the folder of the standard base rules just copy the existing path and edit restart apache $ service httpd restart This will block almost all sql so if you have a website like oscommerce, joomla, wordpress be sure to edit the rules, I haven't so I cant put it here :)
Comments