How to Install PHP for Windows Internet Information Service (IIS)

preview_player
Показать описание
#Windows #IIS #WebServer #PHP

--------------------------------------------------------------------
What is IIS (Internet Information Services)?
--------------------------------------------------------------------
 
 
--------------------------------------------------------------------
What is PHP (PHP Hypertext Preprocessor)?
--------------------------------------------------------------------
A popular general-purpose scripting language that is especially suited to web development.
 
 
 
   01. Log into the Windows server with an account with admin privileges
   04. Install Microsoft Visual C++
   05. Extract the downloaded PHP for Windows .zip file
   06. Rename the extracted folder PHP
   07. Cut the PHP folder to a safe location to run from, such as C:\Program Files
   08. Click the Start button ≫ Search Control ≫ Click Control Panel
   09. Click on System ≫ Advanced system settings
   10. Click the Environment Variables...
   11. Edit the System Path variable
   12. Click the New button
   13. Add the PHP installation directory (ie C:\Program Files\PHP\
   14. Click OK to all open dialog windows
   15. Launch Server Manager from the Start
   16. Click Add roles and features
   17. Click Next on the Before you begin screen
   18. Select Role-based or feature-based installation ≫ Next
   19. Leave Select a server from the server pool selected and select the current Windows server ≫ Next
   20. Expand Web Server (IIS) ≫ Expand Web Server ≫ Expand Application Development ≫ Check the box next to CGI to select it
   21. Click Next
   22. Click Next on the Select features screen
   23. Click Install on the confirmation screen
   24. Leave the installation progress screen open until the install completes
   25. Once the Feature installation completes successfully, click the Close button
   26. Back in Server Manager, click Tools ≫ Internet Information Services (IIS) Manager
   27. Click the server name to select it ≫ Double click Handler Mappings
   28. Click Add Module Mapping at the top right of the dialog
   29. Complete the Add Module Mapping form as follow
         Request Path: *.php
         Module: FastCGIModule
         Name: PHP
   30. Click OK
   31. Click Yes to confirm creating the FastCGI application
   32. Click the server name again to select it and return to the main options menu ≫ Double click Default Document
   33. Click Add... at the top right of the dialog
   35. Right click on the server name ≫ Stop
   36. Right click on the server name again ≫ Start
   37. Expand the server name ≫ Expand sites ≫ Right click on Default web Site ≫ Select Explore
   38. A File Explorer window will display the wwwroot folder for IIS
         ≪?php
          phpinfo();
         ?≫
 

### Connect with me and others ###
Рекомендации по теме
Комментарии
Автор

HTTP Error 500.0 - Internal Server Error
File monitoring is enabled for a file which could not be found
Most likely causes:

IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
IIS was not able to process configuration for the Web site or application.
The authenticated user does not have permission to use this DLL.
The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

ntaanh
Автор

Thank you Web platform can't no more install php very useful good video !!

habadimamaluk
Автор

Thank you, very easy to follow. Why didn't i found your video earlier, I would save a lot of time.

anonyme
Автор

HTTP Error 500.0 - Internal Server Error C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly

JACK
Автор

How easy! Thank you very much for the clear instructions!

HarshaMadushan
Автор

Leaving a comment to show my grattitude!! this video delivered!

dipereira
Автор

- good job. I used to use Web Platform Installer - this video saved the day.

tonyevers
Автор

This video is so helpful. Thank you so much keep up the great work

avstarProduction
Автор

thank you for your step by step list . subscribed 👍

teachkhmerbinary
Автор

Why should we download the Non-thread safe PHP verson instead of the Thread-Safe?

DexCode
Автор

Thanks for this video, it is very helpful, greetings from Caracas, Venezuela

bycolby
Автор

hello nice video, my ask why installed in "c:\programs files" is there reason in to this folder

macintoshelectronics
Автор

why mine said either there are no servers in the server manager server pool, or there are no servers that support remote installation or removal of roles and feature. to add supported servers, use the add servers command on the manage menu of the server manager console

ytguy
Автор

Amazing Tutorial, Thank you very much

heshamelsayed
Автор

Thanks brother 🙏
Very easy to follow

qaderhadan
Автор

How do add php to a windows 11 laptop for local development ?

janneman
Автор

HI, I have followed your steps, but the error I faced is “PHP Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\inetpub\wwwroot\DMS BI Toolss\tt.php:11
Stack trace:
#0 {main}
thrown in C:\inetpub\wwwroot\DMS BI Toolss\tt.php on line 11”

yapmunhau
Автор

I don't have step 15, because i am using a PC only

dhr.gilbert
Автор

Is there any problem using thread safe version of php ?

rafaelnobre
Автор

Hey i have windows server 2019, i dont have FastCgiModule in Dropdown menu. I followed all steps so far..

kickbanfpv