Current Location: Home> Latest Articles> Detailed Guide to Configuring and Using PHP 5.6.33 on IIS

Detailed Guide to Configuring and Using PHP 5.6.33 on IIS

gitbox 2025-08-04

Why Choose PHP 5.6.33?

PHP version 5.6.33 is known for its stability and compatibility, still widely used in many legacy projects. Although not the latest version, it remains essential for maintaining existing systems. Knowing how to configure PHP 5.6.33 on IIS is crucial to ensure these applications run smoothly.

Installation Steps for PHP 5.6.33

Download PHP 5.6.33

First, visit the official PHP Windows download page and select the PHP 5.6.33 package suitable for your system. Choose the appropriate VC build and thread safety options according to your environment, with thread-safe versions recommended for production.

Extract and Configure php.ini

Extract the downloaded package to a directory like C:\php. Then copy php.ini-development or php.ini-production, rename it to php.ini, and adjust settings as needed for your environment.

Configure IIS to Support PHP

After installation, integrate PHP with IIS by following these steps:

Open IIS Manager.
Select your server name and go to "Handler Mappings".
Click "Add Module Mapping".
Set the request path to *.php.
Choose FastCgiModule as the module.
Set the executable path to C:\php\php-cgi.exe.
Name the mapping, for example, PHP_via_FastCGI.
Click OK and confirm any prompts.

Verify PHP Configuration

Create a test file to verify PHP is working correctly. In the C:\inetpub\wwwroot directory, create info.php with the following content:

<?php
phpinfo();
?>

Open http://localhost/info.php in your browser. If you see the PHP info page, your configuration is successful.

Common Issues and Solutions

403 Error When Accessing info.php

Make sure the IIS_IUSRS user has read permissions on the wwwroot directory to avoid access issues.

PHP Extensions Not Loaded

If certain functions are unavailable, the corresponding PHP extensions may not be enabled. Edit your php.ini file to uncomment relevant extension lines. For example, to enable MySQL extensions:

;extension=php_mysql.dll
;extension=php_mysqli.dll

Summary

Following this guide, you should be able to configure and run PHP 5.6.33 on IIS smoothly. Regularly review your settings to maintain security and performance. We hope this tutorial aids your development work effectively.