ComputerBasForum

Hier tips en tricks

Je bent niet ingelogd.

#1 2022-11-07 02:20:33

Bas
Administrator
Geregistreerd: 2019-11-10
Posts: 79

How to install PHP 8 on IIS 10 in Server 2022?

How to install PHP 8 on IIS 10 in Server 2022?

If you try to open a PHP file from your website and PHP is not properly installed you will get an Internal Server Error 500 in your browser.

500 Error Code

Solution:

How to install PHP 8 on IIS 10 in Server 2022?

- Install Server 2022

- Install IIS with the CGI option ticked

- Install Microsoft Web Platform Installer 5.1

In Web Platform Installer:

- Install PHP 8.0 64bit

Test:

Make a file called info.php

<?php
phpinfo();
?>

goto http://localhost/info.php

Do you see the PHP info page?

PHP 8.0

Yes?

You're good to go!

So do this:

Install Server 2022
Install IIS with the CGI option ticked
Install Microsoft Web Platform Installer 5.1

In Web Platform Installer:

Install PHP 8.0 64bit

Do not make any changes to php.ini
Do not enable any extensions
Do not use PHP Manager
Do not make a Module Mapping in Handler Mappings

Because all settings are already done!

So this should work for you if you follow this guide.

Offline

Forum footer

Powered by FluxBB 1.5.11