Hello,

Having a problem upgrading to the
new Apache and PHP releases on Windows 98.

Apache 2.0.35 [3.1M] - 09-Apr-2002 - MSI Installer Package
http://www.apache.org/dist/httpd/binaries/win32/apache_2.0.35-win32-x86-no_ssl.msi

PHP 4.2.0 [4,898Kb] - 22 April 2002
http://ca.php.net/do_download.php?download_file=php-4.2.0-Win32.zip

Installed Apache into c:\apache2 and
extracted the PHP zip into c:\php.

  1. Copied php4ts.dll (1,004 KšŸ˜Ž into c:\windows\system.

  2. Copied all the dll's from the c:\php\dlls folder into c:\windows\system.

  3. Copied php.ini-dist into c:\windows and renamed php.ini.

  4. Extension_dir directive in php.ini is set to: "c:\php\extensions"
    NOTE: ALL extensions are commented out in php.ini - NOTHING LOADED!

  5. Added the following lines to httpd.conf:

    LoadModule php4_module c:/php/sapi/php4apache.dll

    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps

  6. Start Apache from command line:

    C:\Apache2\bin>apache

    Syntax error on line 947 of C:/Apache2/conf/httpd.conf:
    Cannot load C:/PHP/sapi/php4apache.dll into server:
    One of the library files needed to run this application cannot be found.

What the... Syntax error ???

It's definitely having a problem with php4apache.dll.

I then tried copying php4apache.dll into C:\Apache2\modules
and changed the LoadModule to read:

LoadModule php4_module modules/php4apache.dll

Same error message?

Anyone else encounter this problem?

This has always worked great in the past?

Steve

    Exact same problem.

    I've done everything you have, and Apache fails to load while the LoadModule line containing php4apache is still in the config file. Has anyone actually gotten this to work yet? Does anyone have php as a .so file? Throw us a bone.

    -Kyle

      For anyone else with THIS problem using
      PHP 4.2.0 on Windows:

      Apparently, I was using the wrong dll.
      It's called 'apache2filter.dll' and it can
      be found in the experimental folder in the zip.

      So I changed from:
      OLD - LoadModule php4_module c:/php/sapi/php4apache.dll
      NEW - LoadModule php4_module c:/php/experimental/apache2filter.dll

      BINGO! We have liftoff!

      Hope this helps!!

        Write a Reply...