php 服务器的最佳设置

发布于 2024-08-07 17:20:27 字数 286 浏览 7 评论 0原文

我们有许多服务器运行各种不同的 LAMP 设置。根据服务器设置者的不同,PHP 的配置方式似乎有所不同。有些设置为使用 Apache DSO 模块,其他设置为使用 CGI。有些服务器已打开 suEXEC,而其他服务器则已关闭。我们一直在尝试调整我们的应用程序以提高性能,但我不确定在这个级别上可以获得什么收益。

如果它有帮助的话,我们服务器的标准设置是这样的:

  • PHP 5.2.8
  • MySQL 5.0.81
  • Apache 2.2.11

谢谢。

We have a number of servers running various different LAMP setups. One thing that seems to be different depending on who set the server up is the way PHP is configured. Some are set up to use the Apache DSO module, others are setup to use CGI. Some have suEXEC turned on, other servers its turned off. We are always trying to tweak our apps for performance but i'm not sure what gains there are to be had at this level.

If it helps a standard setup for our server is something like this:

  • PHP 5.2.8
  • MySQL 5.0.81
  • Apache 2.2.11

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷情 2024-08-14 17:20:27

我一直发现灯箱上的三件事可以最大程度地提高性能:

1)安装 PHP 缓存
2)大幅增加分配给MySQL用于排序的内存
3) 雇用优秀的程序员

你还可以通过限制 apache 在某一时刻运行的线程/分支的数量来获得一些良好的内存改进。

I have always found that you get the biggest performance boost out of three things on a lamp box:

1) Installing a PHP cache
2) Drastically increasing memory allocating to MySQL for sorting
3) Hiring good programmers

You can also get some good memory improvements by limiting the number of threads/forks apache runs at any one time.

落墨 2024-08-14 17:20:27
  1. 如果由于某些原因您无法安装“ZendServer”:与您的团队召开一次快速会议,决定 Apache2 的哪些模块是不必要的并将其删除。还可以制作您自己的 PHP 二进制文件来控制包含哪些内容以及不需要哪些内容

  2. 如果您能够安装“ZendServer”,请从 zend.com 获取该软件并享受 Zend 的 php 优化器大幅提高的性能。

  1. If you are not able to install 'ZendServer' due to some reasons: Have a quick meeting with your team and decide which modules of the Apache2 are not necessary and remove them. Also make your own PHP binaries to control what is included and what is not needed

  2. If you are able to install 'ZendServer', get the software from zend.com and enjoy the highly increased performance of Zend's php optimizer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文