HTTPD and APACHE: Difference between revisions

From Cheatsheet
Jump to navigation Jump to search
Created page with 'Guide For Diagnosing apache. to distill changes to the httpd.conf /usr/local/cpanel/bin/apache_conf_distiller --update apache uptime /usr/bin/lynx -dump -width 500 http://12…'
 
m 1 revision
 
(No difference)

Latest revision as of 23:51, 23 October 2014

Guide For Diagnosing apache.

to distill changes to the httpd.conf

/usr/local/cpanel/bin/apache_conf_distiller --update

apache uptime

/usr/bin/lynx -dump -width 500  http://127.0.0.1/whm-server-status

Total connections on port 80

netstat -nap |grep -c :80

rough per sec hits

/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | grep GET | awk '{print $12}' | sort | uniq -c | sort -rn | head

Tells how many are using port 80

netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -f1 -d: | sort | uniq -c | sort -rn | head