Verifying IIS Configuration for PHP Scripts


How to verify IIS configuration for PHP scripts?


If you have followed our Configuring IIS for PHP Scripts tutorial, you are ready to verify the configuration by follow this tutorial. This tutorial assumes that your IIS is configured to server Web documents from C:\inetpub\wwwroot.

1. Make sure that IIS is running.

2. Use "notepad" to enter this simple PHP script:

This is <?php echo "my first PHP script"; ?>.

3. Save this script as C:\inetpub\wwwroot\my_first.php.

4. Run a Web browser and enter the this URL: http://localhost/my_first.php. You will see IIS runs the script with the PHP engine and returns the result in the browser window as: IIS First PHP Script

2023-10-21, 14315🔥, 1💬