![]() ![]() PHP Isn’t WorkingĬreate a PHP test file, C:\inetpub\contents of the file should include the following: īrowse to to see if PHP is loaded and working. I’ve had much better success with PHP Manager 2. I’ve had trouble getting PHP Manager to install on Windows Server 2019. Enjoy! Troubleshooting PHP Manager won’t install You now have a working IIS Server running PHP meeting all requirements of a default PHP installation. PHP and PHP Manager for IIS should now download and install successfully.Ĭongratulations. Select Install and accept the terms and conditions.Enter “PHP” in the search field and select the version of PHP you’d like to install.Double click Web Platform Installer under Management.Select your server’s name from the navigation tree.Select Tools → Internet Information Services (IIS) Manager.This should launch the Server Manager application. Click Start and type “ Server Manager” and then hit enter.Once you’ve installed all the prerequisites you can go ahead and install PHP using the Web Platform Installer. Install PHP using the Web Platform Installer After the WPI is installed, it will automatically launch. You can download the Web Platform Installer from here. As long as these prerequisites are installed, PHP and the PHP Manager should install successfully. NET Framework 3.5, or the required DLL files (installed by Visual C++ Redistributable). For example, when installing PHP it does not perform a prerequisites check for CGI. But honestly it falls short of expectations. The Web Platform Installer is a small utility by Microsoft which is supposed to make it quicker and easier to deploy web services and deployment tools. Be sure to grab the 32-bit version (VSU_4\vcredist_x86.exe) as the 64-bit version will not work (or maybe it’s not required?). You can download the Visual C++ Redistributable from here. Without it you will receive HTTP 500 errors and PHP will throw the error “The FastCGI process exited unexpectedly”. It will install DLL files that are required by numerous PHP extensions. The Visual C++ Redistributable is required when installing a default installation of PHP. Enter the path to the sources\sxs directory, click OK and then click Install. For example, if you’ve mounted the Windows Server 2012 R2 installation media to D:\, then the path would be D:\sources\sxs. At this point we’ll need the Server 2012 R2 installation media.On the confirm installation selections screen, click Specify an alternate source path.NET Framework 3.5 Features and click Next. On the Select features screen, select.On the Select server roles screen, click Next.Before you proceed, obtain the Windows Server installation media and attach it to the server either by physical media or mounting the ISO. NET Framework 3.5 can be installed using the Add Roles and Features wizard on Server, it still requires the Windows Server installation media when installing the feature. ![]() With that said, the PHP Manager application can come in handy and I recommend installing it by completing this simple prerequisite.Īlthough. NET Framework 3.5 installed on the server, PHP will still install but you’ll be presented with an error regarding PHP Manager – it’s safe to ignore if you don’t need it. NET Framework 3.5 is required for the PHP Manager for IIS application which will install by default when using the Web Platform Installer to install PHP. At this point I recommend rebooting the server. Wait for the installation to complete and then click Close.On the confirm installation selections screen, click Install.I typically check off ASP, ASP.NET, HTTP Redirection and/or Windows Authentication (some of these options will also automatically select prerequisite features as well). Once you have everything you need selected, click Next. At this point I also recommend checking off any other IIS features that you may require or you’re interested in. On the Select role services screen, under Application Development, check off CGI.On the Web Server Role (IIS) screen, click Next.On the Select features screen, click Next.On the Select server roles screen, select Web Server (IIS), click Add Features when prompted to add additional features, and click Next.Select the local server and then click Next.Select Role-based or feature-based installation and click Next.On the Before you being screen, click Next.Click start and type “Server Manager” and then hit enter.The first thing you should do is add the IIS role with FastCGI support. More information on installing IIS and FastCGI can be found on the official PHP website but I’ll cover the basics here. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |