PHP installation on windows

As far as I can see there are no MSI installers for PHP 5.4.x available from http://windows.php.net/

Additionally, since PHP 5.3 there are no MSI installers available that work together with the binaries from apache.org and you have to use the binaries from http://www.apachelounge.com/


First: go to www.php.net and click on downloads, or go directly to
http://www.php.net/downloads.php
http://windows.php.net/download

Choose the latest PHP x.y.z (Current stable) For IIS, download the non-threadsafe zip file

  1. Extract the downloaded zip file to c:\PHP

  2. Download PHP-Manager for IIS 7 (that's an IIS-controlpanel-extension, also works for IIS 8) from https://github.com/phpmanager/phpmanager/releases‎ (make sure you choose the right bitness (32 vs. 64)

  3. Open the IIS management console (inetmgr.exe)

  4. Double-click PHP-Manager and click on "register new PHP installation"
    (note to self: never remove the PHP directory, otherwise "rien ne va plus") enter image description here

  5. Choose php-cgi.exe and click ok enter image description here
  6. Click on "Configure error reporting". Check "Development machine" and click apply, then click "back to main page" enter image description here
  7. Go to C:\inetpub\wwwroot and create a new textfile called "phpinfo" and put this content into it :

<?php phpinfo(); // Show all information, defaults to INFO_ALL ?>

enter image description here Create a new file called hello.php in c:\inetpub\wwroot with this content
<?php echo "Hello World !" ; ?>

enter image description here 10. open cmd.exe and execute "iisreset"

  1. Use your browser of choice, and navigate to those pages:
    http://localhost/phpinfo.php
    http://localhost/helloworld.php

Now IIS is (should be) serving PHP.


Try this direct link: http://windows.php.net/downloads/releases/

You will find some old msi distributions...


*** Files now moved to http://windows.php.net/downloads/releases/archives/


windows.php.net/download/.

Read the sidebar there to determine which one you should download. The MSI versions are the ones labelled "Installer".

Tags:

Php