Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


LinuxQuestions: Optimizing PHP, Part Three

Oct 12, 2006, 06:00 (0 Talkback[s])
(Other stories by Jeremy Garcia)

[ Thanks to jeremy for this link. ]

"Last month's 'Tech Support' column showed you how to install and configure the Alternative PHP Cache to speed up your PHP applications without changing any code. This month, let's go one level deeper in the stack and tune your PHP installation itself.

"While pre-packaged binaries are convenient, high-traffic sites typically need a roll-your-own PHP and Apache to fine-tune features and yield extra performance. Start with the latest version of PHP. The 5.1.x branch has finally brought PHP 5 performance up to an acceptable level, and includes many advances over PHP 4.x. After downloading and unpacking the latest version of PHP 5 (5.1.4 as the magazine went to press), set your CFLAGS, an environment variable for compiler flags that are passed to gcc. The correct compiler flags depend on what kind of machine you have, what kind of CPU you have, how much cache the CPU has, and a variety of other factors..."

Complete Story

Related Stories: