Error loading WSO2 extension WSF.dll using apache2.2.22 on Windows Server 2003 R2-Collection of common programming errors

I’m having problems starting apache on Windows with the WSF.dll dynamic extension. When running httpd on command line, I get the following error (also see screenshots below):

C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd
Warning: PHP Startup: Unable to load dynamic library ‘C:\Program Files\P HP\ext\wsf.dll’ – The specified procedure could not be found. in Unknown on line 0

Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0

I’m running an Amazon AWS instance with the following config/software:

  • Windows 2003 R2 Server Service Pack 2
  • Apache thread-safe server (httpd) version 2.2.22 including OpenSSL 0.9.8t (MSI)
  • PHP 5.4 VC9 x86 Thread Safe
  • WS02 PHP Library for Web Services (downloaded binary, not source) installed on C:\Program Files\WSO\wsf-php
  • PATH variable on Windows is set as: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\WSO\wsf-php\wsf_c\lib;C:\Program Files\PHP

Originally posted 2013-11-09 23:08:57.