0

On Apache you could easily configure it through an htaccess file:

<IfModule mod_fcgid.c>
Action    php-fcgi    /fcgi-bin/phpcgi-starter-5.3
</IfModule>
<IfModule mod_fcgid.c>
Action    php-fcgi    /fcgi-bin/phpcgi-starter-5.4
</IfModule>

Is there something similar for Nginx + PHP-FPM?

Jürgen Paul
  • 1,265
  • 4
  • 15
  • 22

1 Answers1

0

Just run each version of php-fpm on a different port (or socket) and configure the appropriate port in your fastcgi_pass parameter in your nginx server block. For instance, you might have 5.3 run on port 9000 and 5.4 run on port 9001.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972