Installing PHP on IIS using Web Platform Installer - SkillBakery Studios

Breaking

Post Top Ad

Post Top Ad

Wednesday, July 8, 2026

Installing PHP on IIS using Web Platform Installer

Installing PHP on IIS using Web Platform Installer

Screenshot from the tutorial
Screenshot from the tutorial

Installing PHP on IIS Using Web Platform Installer

In this blog post, we will guide you through the process of installing PHP on Internet Information Services (IIS) using the Web Platform Installer. This method is efficient and straightforward, allowing you to get PHP up and running on your Windows server in just a few minutes.

What is PHP and IIS?

PHP (Hypertext Preprocessor) is a widely-used open-source scripting language designed for web development. It can be embedded into HTML and is particularly suited for creating dynamic web pages.

IIS (Internet Information Services) is a flexible, secure, and manageable web server created by Microsoft that runs on Windows Server. It supports a variety of technologies, including PHP, making it a powerful choice for hosting web applications.

Prerequisites

Before we begin, ensure that you have the following:

  1. A Windows server with IIS installed.
  2. Administrative privileges on the server.
  3. An internet connection to download the necessary components.

Step-by-Step Guide to Install PHP on IIS

Step 1: Open the Web Platform Installer

  1. Launch Web Platform Installer: If you don't have the Web Platform Installer installed, you can download it from the Microsoft website.
  2. Run the Installer: Once installed, open the Web Platform Installer from your Start menu.

Step 2: Search for PHP

  1. Search for PHP: In the Web Platform Installer, use the search bar to type in "PHP".
  2. Choose the Version: You will see different versions of PHP available for installation. Select the version you wish to install (for example, PHP 8.0).

Step 3: Install PHP

  1. Add to Installation: Click on the version of PHP you want, then select the "Add" button to include it in your installation list.
  2. Review the Installation: You will now see a summary of the components that will be installed. Review the items to ensure you are installing PHP.
  3. Click Install: Once you are satisfied with your selections, click on the "Install" button.

Step 4: Accept the License Agreement

  1. License Agreement: You will be prompted to accept the license agreements for the components being installed. Read through the agreements, and if you agree, check the box and click "I Accept".

Step 5: Complete the Installation

  1. Installation Process: The Web Platform Installer will now begin downloading and installing PHP along with any dependencies.
  2. Finish Installation: Once the installation completes, you will see a confirmation message. Click on "Finish" to exit the installer.

Step 6: Configure PHP on IIS

After installing PHP, you need to configure it to work with your IIS server.

  1. Open IIS Manager: Press Windows + R, type inetmgr, and hit Enter to open the IIS Manager.
  2. Select Your Server: In the left pane, select your server node.
  3. Handler Mappings: In the middle pane, double-click on Handler Mappings.
  4. Add Module Mapping:
    • Click on Add Module Mapping in the right pane.
    • Enter the following details:
      • Request path: *.php
      • Module: FastCgiModule
      • Executable: Browse to the PHP installation folder (e.g., C:\Program Files\PHP\v8.0\php-cgi.exe)
      • Name: PHP_v8.0
    • Click OK to save your changes.

Step 7: Test the PHP Installation

To ensure that PHP is installed correctly, you can create a simple PHP file to test it:

  1. Create a PHP File: Open a text editor and create a file named info.php with the following content:

    <?php
    phpinfo();
    ?>
    
  2. Save the File: Save this file to your web server's root directory (usually C:\inetpub\wwwroot\).

  3. Access the PHP File: Open your web browser and navigate to http://localhost/info.php. You should see the PHP information page, confirming that PHP is installed and functioning correctly.

Conclusion

Congratulations! You have successfully installed PHP on IIS using the Web Platform Installer. This setup will allow you to run PHP applications on your Windows server.

If you encounter any issues during the installation process or need further assistance, feel free to leave a comment below, and we will be happy to help!

Another screenshot from the tutorial
Another view from the tutorial

Connect with SkillBakery Studios

Explore more tutorials, tools, and resources:

Posted by SkillBakery Studios

No comments:

Post a Comment

Post Top Ad