How do I use the latest version of php with Windows IIS?


Once you’ve installed php on IIS using the web platform installer, you might find that your websites do not automatically use the latest version. I had this problem while using Windows Server 2016.

If you go to handler mappings in IIS (either by selecting it for your whole server or one particular site) you can see the list of CGIphp versions although some of the later ones may not show the version (eg. phpv7) next to the name but may instead say something like PHP_via_FastCGI with a number at the end. If you double-click on one of these it will show you to the path to your php version, so you will know which is the right one to use.

Once you know which one you want to prioritise, click on ‘View Ordered List…’ to the right of the list and move this version to the top of the list. The system should automatically update instantly.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

About Author

David Cropley

Dave has been programming computers for over 30 years. It's more of an obsession than a hobby! As well as having his own moderately successful Crystals retail business, Dave used to work as a Web Developer for a company called Radikls, a web design company in the South of the UK. Dave is also a member of the presitgious Havik eSports Team.

Leave a Reply

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