Apache commands
Custom script to start Apache (start_apache.sh)
#!/bin/sh
echo "------------------------"
echo "Verify Configuration"
echo "------------------------"
/opt/apache/bin/httpd -f /opt/apacheconf/httpd.conf -t -S
echo "------------------------"
echo "Start Apache"
echo "------------------------"
/opt/apache/bin/httpd -f /opt/apacheconf/httpd.conf -k start
echo "------------------------"
echo "List HTTP Processes"
echo "------------------------"
sleep 3
ps -ef | grep http
Custom script to stop Apache (stop_apache.sh)
#!/bin/sh
echo "------------------------"
echo "Stop Apache"
echo "------------------------"
/opt/apache/bin/httpd -f /opt/apacheconf/httpd.conf -k stop
echo "------------------------"
echo " List HTTP Processes"
echo "------------------------"
sleep 3
ps -ef | grep http
rm /opt/apachelogs/*
List statically compiled modules
/opt/apache/bin/httpd -l or /opt/apache/bin/apachectl -l
Which mpm is used by apache?
/opt/apache/bin/apachectl -l
List all loaded modules
/opt/apache/bin/httpd -t -D DUMP_MODULES
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home