#apache
8 one-liners with this tag.
All one-liners tagged apache
Check whether Apache hit MaxRequestWorkers
#grep -i "MaxRequestWorkers" /var/log/apache2/error.log* | tail -20
Count HTTP status codes in the access log
#awk '{print $9}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn
Count running Apache processes
$ps -C apache2 --no-headers | wc -l
Find the most requested URLs in the access log
#awk '{print $7}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn | head -20
Find the top IP addresses in the access log
#awk '{print $1}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn | head -20
Follow the Apache error log in real time
#tail -f /var/log/apache2/error.log
Regenerate the web server configuration of a domain
#plesk sbin httpdmng --reconfigure-domain example.com
Repair a domain's web server configuration with plesk repair
#plesk repair web example.com -y