Apache on Plesk: Difference between revisions

From Psygen Wiki
Jump to navigation Jump to search
No edit summary
Line 12: Line 12:


(Might be httpd.conf on older Plesk versions)
(Might be httpd.conf on older Plesk versions)
== Domlog diving ==
<pre>
find /var/www/vhosts/*/logs/ ! -path /var/www/vhosts/system -name access_log | while read LOG; do echo -e "`echo $LOG|awk -F'/' '{print $5}'`: `wc -l $LOG|awk '{print $1}'`";  done |sort -rnk2 |head -25
</pre>

Revision as of 22:59, 24 October 2017


Optimizations

In Plesk, Apache optimizations are set in:
/etc/httpd/conf.d/

You'll want to change the settings in the appropriate file for the MPM:

mpm_prefork.conf
mpm_event.conf

(Might be httpd.conf on older Plesk versions)


Domlog diving

find /var/www/vhosts/*/logs/ ! -path /var/www/vhosts/system -name access_log | while read LOG; do echo -e "`echo $LOG|awk -F'/' '{print $5}'`: `wc -l $LOG|awk '{print $1}'`";  done |sort -rnk2 |head -25