Installing APC on PHP 5.3

In a previous post I had some instructions for building PHP 5.3 on 64-bit CentOS 5. Turns out the caching extension listed there, eAccelerator, didn’t show a marked performance benefit in our benchmark testing. So instead I decided to play with APC, one of the competitors. Getting this installed was a bit tricky though (e.g.,… Continue reading Installing APC on PHP 5.3

Warnings when upgrading a CakePHP application to PHP 5.3

If you’re moving to PHP 5.3, you’ll find that CakePHP throws a lot of “Deprecated” warnings. Since Cake sets error_reporting to E_ALL, you’ll have to edit the core. Change cake/libs/configure.php as follows: error_reporting(E_ALL); to error_reporting(E_ALL ^ E_DEPRECATED); That should do it.

Controlling the PHP error level in a WAMP virtual host

I usually set error_reporting to E_ALL when developing (forces you into good coding habits). When upgrading to PHP 5.3, a lot of “Deprecated” messages started showing up in some external software, though (things like CakePHP, WordPress, and Joomla). Since I’m not about to touch that stuff, it’s far easier to simply lower the error reporting… Continue reading Controlling the PHP error level in a WAMP virtual host