0

我正在为我的客户运行带有多个 WordPress 安装的 Apache2 服务器。我正在使用 FCGI-PHP 和 suexec。服务器是专用的 16GB RAM,Intel i5 2,6GHZ 4 核。服务器 MPM:工作者。网络 100mbs。

我允许我的 WordPress 用户上传最大 100MB 的文件。
我启用了 mod_pagespeed 和 mod_bw。我已将每个虚拟主机的带宽限制设置为 1mbs。

我想听听一些提示如何调整 Apache 以适应这种用途。我是专用服务器的新手。我安装了 webmin,但没有安装任何分析应用程序。用网络浏览器监控服务器的好监控应用程序是什么?另外我想听听如何设置我的 apache2.conf 和 cfgi-conf。现在是:

Timeout 720
KeepAlive On
MaxKeepAliveRequests 250
KeepAliveTimeout 5

<IfModule mpm_worker_module>
    StartServers          10
    MinSpareThreads      15
    MaxSpareThreads      75 
    ThreadLimit          128
    ThreadsPerChild      100
    MaxClients          200
    MaxRequestsPerChild 10000
 </IfModule>

FCGI 配置为:

<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
FcgidMinProcessesPerClass 0
FcgidMaxProcessesPerClass 14
FcgidMaxProcesses 250
FcgidIdleTimeout 60
FcgidProcessLifeTime 720
FcgidIdleScanInterval 20
FcgidConnectTimeout 720
FcgidMaxRequestLen 131072000
</IfModule>

如果您能给我一些提示/帮助,我将非常高兴。非常感谢!

4

1 回答 1

0

我的所有服务器上都有http://newrelic.com/ 。

对于 Apache 调整,此脚本提供了配置提示 https://github.com/gusmaskowitz/apachebuddy.pl

对于 MySQL 调整,此脚本提供了配置提示 https://raw.github.com/major/MySQLTuner-perl/master/mysqltuner.pl

您有足够的可用内存来运行一些繁重的 WordPress 网站。所以我会使用这些工具并决定从那里去哪里。

于 2014-03-17T19:51:58.210 回答