Below are the prerequisites for setting up an IIS server.
On the lefthand column of Programs and Features select Turn Windows features on or off. Here you are able to select the check box to turn on Internet Information Services. Also turn on IIS Management Console under Web Management Tools under IIS, and CGI under Application Development Features under IIS
The x64 Non-Thread Safe is the most stable for IIS Services Version 10. Unzip this into a directory that has permission to execute on windows. If you do not setup the permissions, then a fatal exception will appear
You can find the PHP Manager from within the IIS Manager by clicking Get New Web Platform components. Select the Downloads tab and install PHP Manager 1.5.0 for IIS 10. Once this is done open the IIS Manager, find the PHP Manager under Features View, and use Register new PHP version to select the php-cgi.exe of the PHP you downloaded. You can use the PHP manager to change the PHP version or PHP settings you want IIS to use.
In the IIS Manager select the Features View and then double click Handler Mappings. Right-click on PHP_via_FastCGI or CGI and select edit. Click Request Restrictions..., select the Verbs tab, select One of the following verbs and enter GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS. You may then be prompted to double quote the path under Executable.
Microsoft's web installer will also install the
URL Rewrite module. However, if you use another installation method you may need to install it manually. You can verify whether it is installed or not in IIS Manager's
Features View. For more information and to download the URL Rewrite module click
here.
Locate the php.ini file for the new installation of PHP. You may have multiple copies on your computer. The default install path will be under Program Files (x86) or Program Files depending on whether you installed the 32 or 64 bit version. The root of the install directory will be PHP. You will find the php.ini file in the subdirectory that was named for the version you installed. You may need to open the file as an administrator to have permission to edit it. Open php.ini with Notepad and search for ;extension=pdo_mysql. Uncomment it by removing the colon. Copy and paste extension=php_fileinfo.dll on the next line. Save and close the file.
Download the MySQL Server
here. For help with installation see the
documentation. Do not forget to start the server. If you installed MySQL Server as a service, you can start it by doing the following:
- Win + R
- Run services.msc
- Right-click on MySQLXX
- Start
Alternatively, if you did not install MySQL server as a service or have a web development environment like WampServer installed, you can start MySQL Server from the command line. You will need to open a command prompt and change directory to the directory that contains
mysqld.exe.