![]() There’s a LOT that can go wrong, but by Googling one error at a time you should eventually be able to get a Windows 10 machine with IIS to serve up PHP Web pages. The contents are (I use an image because my blog software would choke on HTML text): For example: To downgrade the latest version to some older. Well, those who want to downgrade the latest version to some previous one or planning to install multiple versions of PHP on Windows 10 or 11, need to define a parameter with the Choco command. Create a file test.php and save it at C:\inetpub\wwwroot. For more version history check out the Choco official page. Launch Notepad with Administrative privleges. ![]() Module: FastCgiModule (from the dropdown)Įxecutable (optional): C:\PHP\php-cgi.exeĥ. uncomment the 24 Windows Extensions entries: Make a copy of file C:\PHP\php.ini-development and save it as C:\PHP\php.iniĮdit file php.ini by finding the following entries, uncomment them, and change values to:ħ. This is the part you’d never figure out without some help. Now edit the System PATH variable so IIS knows where the PHP executables are:Ĭontrol Panel | System and Security | System | Advanced System Settingsģ. Install the NTS (non-thread safe) 64-bit version of PHPĮxtract all the contents of the zip file to C:\PHP My instructions are highly abbreviated and are intended for someone who has a medium amount of familiarity with Windows and IIS.Ĭontrol Panel | Programs | Turn Windows features on or offĬheck IIS | World Wide Web Services | Application Development Features | CGIĢ. Configure IIS to handle PHP page requests ![]() Configure the php.ini configuration fileĤ. Enable (if necessary) IIS on the machine, and IIS-CGI on the machine.ģ. There are five basic steps to install PHP on a Windows 10 machine:ġ. It is possible install PHP using the Microsoft Web Platform Installer, but I prefer to manually install PHP because if something goes wrong using the Web Installer, it’s very, very difficult to fix, but errors in a manual install are easier to track down. However, installing PHP on a Windows machine has always been kind of a pain in the patooty. I find PHP to be much simpler than ASP.NET for some kinds of Web sites. I’ve always liked PHP for creating dynamic Web pages.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |