Yes, because of the way PHP installs. On Ubuntu, for instance, /usr/bin/php is a link to the actual default version, and /usr/lib/php has a subdirectory for each PHP version. To use different versions for different web sites, you would just plug in the appropriate path for the php module.
Feb 10, 2023
People also ask
Can I have two versions of PHP?
Is PHP 5 backwards compatible with PHP 7?
Can I install both PHP 7 and 8?
What is the main difference between PHP 5 and PHP 7?
Mar 9, 2017 · I finally managed to run my two projects in FastCGI on different PHP versions, thanks to the guys from the PHP subreddit.
Missing: q=
Jun 24, 2011 · You can run 2 different PHP versions at once, but it's not as easy as just apt-getting them. You need to run one seperately installed version ...
Missing: q=
Many a time you will find more than one version of php installed on your system. Lately two of the most common versions are php5 and php7.
People also search for
Dec 10, 2017 · Yes, I believe you can. Way back with php 4 and 5 we did this by loading one version of php as an apache mod, and the other version using php- ...
This brief tutorial walks you through the steps to switch between multiple PHP versions in Ubuntu Linux and its derivatives.
There are a few incompatibilities and new features that should be considered, and code should be tested before switching PHP versions in production environments ...
Sep 4, 2019 · This is bugging me for some time now. I have 4 php versions installed. (2 and 3 are actually obsolete) php1_release=5.6 php1_mode=php-fpm
Missing: q=
Aug 15, 2023 · When using different software on one account, you may need to use one version of PHP while running multiple PHP versions on different ...
Missing: q=