<Surf & Perf/>

  • About
  • Archive
  • Contact
  • 🔎

How to Setup IIS and PHP on Windows 10 Desktop

Basically I followed this step-by-step from Microsoft, but for my own sake I’m writing my own so it’s easier to find.

Setup IIS from Windows Control Panel

• Open Control Panel >> Programs >> Turn Windows features on or off

• Select Internet Information Services >> Expand and check CGI under World Wide Web Services — Application Development Features

• Test by opening http://localhost/ on your browser

Download and Install PHP

• Create a C:\PHP folder on your local drive

• Download latest PHP non-thread-safe zip package from Windows PHP Download Page

• Download WinCache from SourceForge

• Extract PHP zip files to C:\PHP

• Extract WinCache zip files to C:\PHP\ext

• Open Control Panel >> System and Security >> System >> Advanced System Settings

• On System Properties >> Go to Advanced tab and add a C:\PHP System Variable under Environment Variables

• Open IIS Manager >> Select your machine under connections >> Open Handler Mappings


• Add Module Mapping with the following details:

  • Request path: *.php
  • Module: FastCgiModule
  • Executable: C:\PHP\php-cgi.exe (location of php-cgi.exe within your PHP folder)

• Add Default Document by going to Default Document >> Add >> add default.php and index.php

• Create a PHP Info page to test

  • Create a phpinfo.php file on Notepad++ (run as Admin) with the following code: 
    <?php phpinfo(); ?>  
    … and save inside C:\inetpub\wwwroot\

• Open http://localhost/phpinfo.php on your browser and you should see this page

End. 🙂

Hope this helps.

February 3, 2023
IIS Web Server, PHP, Windows
Uncategorized
←Previous: [UiPath] How to use variable as delay duration (convert String to TimeSpan)
Next: [Powershell] How to zip multiple files using 7-Zip (with password protection)→

Leave a Reply Cancel reply

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

Other topics

Active Directory Ajax Truclient Automation Blogger CSS Eggplant Functional Error How to HTML IE IIS Web Server Javascript Macro PHP PHP 7 Powershell QTP Regex RPA Server Management SQL SQL Server Tutorial UFT UIPath VB VB.net VBA VB Script Video Visual Basic Vugen Vugen 11.52 Web Design Windows Windows Server

Search

(c) 2023