Long story short… I needed a way for a specific folder to use PHP 5.3 and to keep using PHP 5.2 for the rest of the system, and I needed to do this without breaking the existing CPanel (blergh) configuration (Luckily the system was already using suphp – if yours isn’t just change it using easyapache) .

In the end it was easier than I thought…

  1. Compile and install PHP 5.3 to a folder under /opt
  2. Add Application Handler to Apache Configuration
  3. Add Handler to htaccess on the folders I needed the PHP5.3 (this could also be done within the VHost config)

Read the rest of the post for the full details
Continue reading