2

I have 2 websites on a single server, but one site's PHP version must be 5.2.17, and the other must be 5.5+.

I am using Ubuntu 14.04.2 LTS with Apache2 and PHP.

I have already installed PHP 5.5 (via apt-get) and 5.2.17 (via installation from source). Can somebody tell me how to configure and use different PHP versions for each specified website? Thanks.

Will
  • 24,082
  • 14
  • 97
  • 108
Sanborn
  • 41
  • 8

2 Answers2

0

You can get it by using PHP version manager and there are so many available, explore these:

devpro
  • 16,184
  • 3
  • 27
  • 38
  • 1:can't manage exist version 2:ing 3:can't install curl have some Alien code... so is there have other way? – Sanborn Dec 29 '15 at 07:07
0

You can run multiple PHP versions on one server using Docker, see my answer in another thread: Multiple PHP versions on the same box

Note that with this solution different PHP versions will be available on different ports.

Community
  • 1
  • 1
Code Your Dream
  • 347
  • 3
  • 11