There are several reasons you might need to run multiple versions of PHP on the same server. Maybe you have a PHP 5.2 application running on your server and you need to start working on another application based on a new framework like Symfony2 or Lithium? Perhaps you haver a client with a legacy site that runs PHP 5.2, or maybe you simply want to test some of the new functionality? This post is going to explain how to setup a server to run multiple versions of PHP. Apache doesn’t allow multiple versions of PHP using mod_php, so we need to compile it using FastCGI support. This will allow us to configure multiple sites, each one with a different version of PHP. I also allow us to specify the owner of the PHP process so we don’t have to use the default Apache user. Assigning specific users for each site has a number of advantages, including eliminating those pesky permissions problems when you have files created both by users and the webserver. Pre-requisites Before the start, w...
Comments
Post a Comment