Compile right

One of the biggest advantages to using a Unix box is that you get to compile your software yourself, and it really does make a big difference to the speed of your software. If you are able to, I suggest you compile Apache, PHP, and MySQL yourself using GCC 3.4.x, and as many optimisations turned on as you have time to wait for.

Particularly important here is the PHP compilation, as you are not likely to get much improvement in your MySQL compilation over the stock binaries you can grab direct from MySQL.

 

Want to learn PHP 7?

Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!

If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!

Next chapter: Ignore the myths >>

Previous chapter: Take advantage of new features

Jump to:

 

Home: Table of Contents

Copyright ©2015 Paul Hudson. Follow me: @twostraws.