Hi !

I've got a big problem while trying to load this damend library in order to
make php working as module 🙁
I'm working under Win 2K SP2, Apache 2.0, and PHP 411.
I've copied the php4ts.dll in the winnt\system32 directory
I've set in my httpd.ini :
LoadModule php4_module "c:/php/sapi/php4apache.dll"
AddType application/x-httpd-php .php
i've set in my php.ini :
doc_root = "c:\Web"
extension_dir = c:\php

since it still wasn't working i've copied all the dlls of my php\dll
directory in the winnt\system32\ directory but i've always got the same
problem :

Syntax error on line 175 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/PHP/SAPI/php4apache.dll into server:
cannot find c:/PHP/SAPI/php4apache.dll

I'm going slightly mad, Please help i'm really stuck ! 🙁

PS : I've read all the topics related to this in the forum, and no one of the solution given work (all tried), it's why i set this new topic up !

    Does the Apache service owner have read / write access to the PHP directory?

      Thank you very much for posting about this problem. I thought I was the only one who was losing my mind.

      But now that I've got PHP loaded as a module into Apache (when you check the W2K Services it shows "Apache/2.0.35 (Win32) PHP/4.2.0RC4" as the Description) but I still see only a blank page when I try to check http://localhost/phpinfo.php where phpinfo.php is the simple script:

      <HEAD>
      <TITLE>PHP Version Information</TITLE>
      </HEAD>
      <BODY>
      <?phpinfo()?>
      </BODY>

      Any ideas? I'd love to get this working....

        Solved my own problem by going to:

        http://www.webreview.com/2000/09_29/developers/09_29_00_2.shtml

        Upon reading the first tip in this file as to what all the php.ini settings were, I double checked my simple php script that I quoted in my last message. I had gotten that script by cutting & pasting directly from a html code window into a text editor, assuming it would work, as written.

        Nope. You need a space, a " ", between the short_open_tag: "<?" (without the quotes) and the php function call: phpinfo().

        Thanks again. This forum is a life saver.

          4 days later
          Write a Reply...