SamCogan.com

Posts Tagged ‘PHP’

Installing PHP LDAP (or other) extension after using Web Platform Installer

Thursday, August 12th, 2010


I recently used the web platform installer to install IIS 7.5 and PHP on a Windows 7 machine. I also needed to install the LDAP extension, however after some time struggling to use an extension from the PHP site, or from an old install I discovered the best way to do this

  • Go to control panel, programs and select your PHP install
  • Click on change
  • Click next, then change
  • Select IIS fast CGI
  • Expand the Extensions section and tick the extensions you want to install
  • Complete the install



The extension should now be installed.

Tags: , ,
Posted in sysadmin | No Comments »


Detailed PHP errors in IIS 7

Wednesday, September 30th, 2009


After having to solve this problem a number of times I figured I ought to write this down. IIS7 by default will not show detailed PHP error messages, just a friendly 500 error, not much use when debugging.

So to enable detailed errors you need to run the following from the command line:

%windir%\system32\inetsrv\appcmd.exe set config -Section:system.webServer/httpErrors -errorMode:Detailed

Then resset IIS with IISReset

Tags: ,
Posted in Uncategorized | No Comments »