I want to have two versions of PHP
on one server and switch between them using a symlink.
I have PHP 5.3.2
installed. I want to install PHP 1.4.6
along side it and be able to switch back and forth between them eg;
/opt/php/5.3.2
/opt/php/5.4.21
/opt/php/live -> /opt/php/5.4.21
as suggested here. However I'm struggling to find out how to do this.
I'm using an Ubuntu 10.04 server running Nginx and PHP-FPM/FastCGI.
To my mind apt-get
seems to want to only have one version of each program so I guess having two versions side-by-side must avoid using apt-get
or similar utils.
php.ini
file innginx.conf
. Nginx passes the HTTP request to PHP using FastCGI ie. ip/port eg.fastcgi_pass 127.0.0.1:9000
. To Nginx, PHP is just another server.