How to manage multiple php versions on Windows server?

kumkumsharma

Administrator
Staff member
If your website supports another version or feature of PHP then you have to install that version on your server too. In this article you can learn about managing multiple PHP version on sserver.

First download latest PHP version

As you know you will get default PHP 5.x version on windows server but if you want to install any other version then you have to download it from https://windows.php.net/download.

After downloading now you have to extract PHP folder at C:\Program Files (x86)\PHP location.

Second register new downloaded PHP version in IIS
  • First click on “Start” and search for “Run”.
  • Now type “inetmgr” and press enter top open IIS (Internet Information Service Manager).
  • On the left side of screen “Connections” pane is available; you have to click on your particular website.
  • In the “Features view” you will find “PHP Manager” option, click on it.
  • You can see new window where you have to click on “Register new PHP version” link which is available under “PHP Setup”. Now you have to browse for PHP folder path and select php-cgi.exe file file.
Third change new PHP version for a website in IIS
  • First click on “Start” and search for “Run”.
  • Now type “inetmgr” and press enter top open IIS (Internet Information Service Manager).
  • On the left side of screen “Connections” pane is available; you have to click on your particular website.
  • In the “Features view” you will find “PHP Manager” option, click on it.
  • You will find “Change PHP version” link which is available under “PHP Setup”. Now you can choosedesired PHP version from drop-down.
  • Click on “OK”.
  • You can check the current PHP version of your website by using phpinfo().
 
Top