Apache on Plesk: Difference between revisions
Jump to navigation
Jump to search
Created page with " == Optimizations == In Plesk, Apache optimizations are set in:<br /> <code>/etc/httpd/conf.d/</code> You'll want to change the settings in the appropriate file for the MPM..." |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Main config file:<br /> | |||
<code>/etc/httpd/conf/httpd.conf</code> | |||
Line 8: | Line 10: | ||
You'll want to change the settings in the appropriate file for the MPM: | You'll want to change the settings in the appropriate file for the MPM: | ||
mpm_prefork.conf | mpm_prefork.conf<br /> | ||
mpm_event.conf | mpm_event.conf | ||
(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> |
Latest revision as of 03:23, 1 November 2017
Main config file:
/etc/httpd/conf/httpd.conf
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