开发者

optimum setup for php server

开发者 https://www.devze.com 2022-12-09 03:32 出处:网络
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 a开发者_运维问答re set up

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 a开发者_运维问答re 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.


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.


  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.

0

精彩评论

暂无评论...
验证码 换一张
取 消