PHP for maximum performance." /> PHP for maximum performance."/>
x
Loading
 Loading
Join 10,000+ Fans Join 5,000+ Followers Join 1,000+ Members Join 10,000+ Subscribers Subscribe to Daily Updates
Follow linuxdlsazine
Hello, Guest | Login | Register

Optimizing PHP, Part Three

This article shows you how to configure and compile PHP for maximum performance.

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.1x branch has finally brought PHP 5 performance up to an acceptable level, and includes many advances over PHP 4. 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…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. Webinar: Best Practices for Building Linux Installers
  2. Websense Reliably Installs their Solution on Linux using InstallAnywhere
  3. Shell vs. Java: Overcoming the Challenges of Shell Scripting for UNIX Installations
  4. Managing Distributed Software Development Teams
  5. The Party of Gno
Comments
Downloads
BlackBerry
The CIO's Guide to Mobile Security
M86 Security
Real Time Code Analysis: Proactive Protection Against Malware Threats
Raritan
Measuring Power in Your Data Center
Astaro
Astaro Outperforms Cisco as an Integrated Security Solution at Devine Millimet
Columns
Ken Hess on
Systems
Joe Brockmeier on
Software
Frank Ableson on
Mobile
Jeffrey Layton on
Storage
Douglas Eadline on
HPC
Chris Smart on
Distros