APACHE HTTP SERVER
LINUX SERVER RHEL/CENTOS 7.X
-
Log in to the Linux Host (RHEL/CentOS) that has Apache Server installed
-
If the Apache Server is running, stop it using the below commands:
-
service httpd stop
OR
-
<Apache_Directory>/httpd -k stop
-
-
Verify that all the httpd processes are stopped using the below command:
-
ps -ef | grep -i httpd
-
-
If the httpd processes are still running, kill them using:
-
kill -9 <httpd-pid>
-
-
Start the httpd2.4 Server with VSP-2.2.0 protection using the below command:
-
/opt/virsec/vsp_memory/vsp-memory <Apache_Directory>/httpd -k start
OR
-
-
Start the httpd2.4 Server with VSP-2.2.0 protection as a Service
-
cd /usr/lib/systemd/system/
-
vi httpd.service
-
Append the below text to the ExecStar argument
/opt/virsec/vsp_memory/vsp-memory
-
Before Change:
#Type=notify
ExecStart=<Apache_Directory>/httpd $OPTIONS -DFOREGROUND
-
After Change:
#Type=notify
ExecStart=/opt/virsec/vsp_memory/vsp-memory <Apache_Directory>/httpd $OPTIONS -DFOREGROUND
-
-
Save the file httpd.service
-
Execute the below commands to start the service:
-
systemctl daemon-reload
-
service httpd start
-
-