Setting Up MultIPle Php Variations In Webmin Virtualmin Time4VPS Help Heart

At this level, you might have configured two web sites to run two completely different variations of PHP. Now that you have configured Apache to serve each website, you’ll take a look at them to verify the right PHP versions are working. With the stipulations completed, you’ll now set up PHP versions 7.2 and seven.three, in addition to PHP-FPM and a number of other extra extensions. This is beneficial because totally different functions could require completely different versions of PHP, but some server stacks, like a frequently configured LAMP stack, can solely manage one. Collectively, you need to use Apache and PHP-FPM to host multiple PHP web-applications, each using a unique version of PHP, all on the same server, and all at the identical time.

  • Make positive to use the correct ServerName and directory path based on your setup.
  • In this part, you will replace your website config to be certain that it’ll use proper model of php.
  • Then, if you install PHP and all of the required modules and PHP packages, PHP 8.1 might be put in as your default PHP model.
  • This is helpful because different purposes may require different versions of PHP, however some server stacks, like a regularly configured LAMP stack, can only manage one.

After you’ve arrange a new website, comply with steps 2 by way of four utilizing a unique version of PHP. Some time back I wrote a post about how to run a number of PHP versions on the identical server with IIS (Running A Number Of PHP Variations with IIS). Each websites are now installed and configured run with a quantity of versions of PHP. Next, you’ll need to create an Nginx digital host file for area site1.linuxbuz.com that makes use of PHP 7.0. Eradicating packages you do not want is a good idea. Install the related PHP7.four packages that you want on your project.

If you’ve difficulty with the PHP settings of your hosting account, do not hesitate to contact the FastComet technical help group. If you just need to change the version of PHP site-wide you probably can comply with the steps of our step-by-step tutorial. There are totally different functions, which sometimes could require specific PHP variations. You have now combined digital hosts and PHP-FPM to serve multiple web sites and a number of variations of PHP on a single server.

Setting Up MultIPle Php Variations In Webmin Virtualmin Time4VPS Help Heart

Step 3 — Configuring Apache For Each Web Sites

As Soon As the repository is in place, every supported PHP version becomes installable by name. The default Debian and Ubuntu repositories carry just one PHP model, so to put in multiple you add a repository that packages them all. Before the commands, picture the format, as a result of the entire setup is easier than it sounds once you alexhost.com see it. The Nginx wiring within the later steps applies to you unchanged. This guide takes you thru the whole thing on a Debian or Ubuntu server, from installing the versions to wiring up Nginx and confirming every site runs precisely the model you count on.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top