Apache#
Some useful links to explain the concepts of Apache
Concepts#
http://code.tutsplus.com/tutorials/an-introduction-to-apache–net-25786
https://anturis.com/blog/get-insight-into-your-website-performance-with-key-apache-statistics/
http://middlewaretechnologies.blogspot.in/2013/04/have-you-ever-tried-installing-apache.html
Information about MPM (Multi Processing Modules)#
http://articles.slicehost.com/2010/12/3/configuring-the-apache-mpm-on-gentoo
https://serverfault.com/questions/383526/how-do-i-select-which-apache-mpm-to-use
Configuration#
https://www.linode.com/docs/websites/apache/apache-web-server-on-centos-6
https://www.linode.com/docs/websites/apache-tips-and-tricks/redirect-urls-with-the-apache-web-server
http://www.tecmint.com/creating-your-own-webserver-and-hosting-a-website-from-your-linux-box/
https://serversforhackers.com/video/php-fpm-configuration-the-listen-directive
https://coderwall.com/p/hmsr5a/have-php-fpm-listen-on-unix-socket
Virtual Hosting#
HTaccess checks and guides#
Tuning & Hardening#
Apache Server Status Page#
Other Optimizations#
http://linuxbsdos.com/2015/02/17/how-to-reduce-php-fpm-php5-fpm-ram-usage-by-about-50/
http://blog.chrismeller.com/configuring-and-optimizing-php-fpm-and-nginx-on-ubuntu-or-debian
https://serversforhackers.com/video/php-fpm-process-management
http://www.acunetix.com/blog/articles/10-tips-secure-apache-installation/
https://haydenjames.io/strip-apache-improve-performance-memory-efficiency/
Troubleshooting & Log Parsing#
Find Original IPs of sites using CDNs like Cloudflare#
Levels of traffic with Apache access log#
Commands#
Find hits by IP to server from access log in ascending order
1sudo tail -n 10000 <path-to-log-file> | awk '{print $2}' | sort | uniq -c | sort -n
2sudo grep 'text' <path-to-access-log> | cut -d' ' -f1 | sort | uniq -c | sort -r
Finding connections to all server IPs source/destination & sorting in ascending order
1sudo netstat -antulp | awk '{print $4}' | cut -d":" -f1 | sort | uniq -c | sort -n
2sudo netstat -antulp | awk '{print $5}' | cut -d":" -f1 | sort | uniq -c | sort -n