Windows 98, Apache 1.3.19, PHP 4.0.4 (was trying 4.3 but reverted until problem solved), AMD CPU

I've been trying to install PHP on my computer for days but get a problem with Apache:

"Syntax error on line 203 of c:/apache/conf/http.conf: Cannot load
c:/php/sapi/php4apache.dll into server: (1157) One of the library files needed to run this application can not be found"

I've tried moving the various DLL's etc around various directories but always get the same error message.

My current install went as follows:
1) Uninstalled Apache, deleted directories for Apache and PHP, rebooted and reinstalled Apache 1.3.19. Worked fine so Stopped Apache.
2) Checked my autoexec.bat included c:\WIN98;c:\WIN98\SYSTEM32 (WIN98 is my %WINDOWS% folder)
3) Extracted PHP 4.0.4 to c:\php
4) Renamed php.ini-dist to php.ini and opened in HomeSite making these changes:
a) doc_root = c:\Apache\htdocs
b) extension_dir = c:\php\extensions\ [was .]
5) Moved new php.ini to c:\WIN98\
6) Moved php4ts.dll & php4ts.lib to c:\WIN98\SYSTEM32\
7)Opened c:\Apache\conf\httpd.conf in Homesite making these changes:
a) LoadModule php4-module c:/php/sapi/php4apache.dll (to line 203 [tried with \'s but no change])
b) AddType application/x-httpd-php .php (line 769)
8) Checked php4apache.dll was were I said it was. Checked php4ts.dll and php4ts.lib were in SYSTEM32
9) Saved open files and exited Homesite, then re-started Apache and lo the same freaking error msg

This is driving me nuts... please help.
Many thanks.

    I too, am awaiting an answer to this problem. I too, have
    done all the things that you have done with no luck as
    yet. Waiting for the top PHP gurus to come up with an
    answer....

      I'm afraid no one has replied. And this is the 6th board I've posted to 🙁

      I will post to the main phpbuilder board later if neccesary.

      Please let me know if you get a solution first 🙂

      Cheers.

        same error on my machine.
        note the circumstances:

        Once upon a time, i had anything work fine on machine A.
        Then i moved any php and apache files to a machine B.
        (still, everything worked fine on B!)
        Then i had to reformat machine A and setup a new system
        (which is win95 on A and on 😎
        Finally i copied anything concerning apache and php back to A again. Now, the error occurs on A.

        Also, i tried to use other dlls in HTTPD.conf, but no success.
        Meanwhile i believe that something else is missing on my machine, but what???

        Yours, Cris

          hi folks,
          the solution for my machine:
          Copy your file .../php/php4ts.dll to your /windows/system or /windows/system32 folder. (try both).
          Seems that apache has some probs with following this path through php4ts.dll.

            I've copied every version of php4apache.dll to the
            system/system32 directories and still get the same error.
            I am thinking of going back to my older versions for now...
            this older version was working ok....

              hi ibi001,
              i wasnt speaking about php4apache.dll, but about php4ts.dll.
              Did you notice ? :-)))
              C.

                Thx for the info Cris:

                However, I still get the same error msg from Apache, in fact I get this error message wherever I put the files
                (%WINDOWS%/SYSTEM32, %WINDOWS%/SYSTEM, C:\PHP\, c:\php\isapi\, c:\php\extensions\ ETC)

                This is so frustrating.

                Does anyone know if the problem's with Apache, PHP or Windows with any degree of confidence as I'm thinking of submitting this as a bug (I assume there's an etiquette to that so any help appreciated on that)

                Also, someone suggested dropping to an earlier version of PHP; well I've dropped down to 4.04 (from my PHP & MySQL Web Dev book) but dont want to go down any further as some php functionality I use only came in with 4.03. Should I drop down to 4.01 and use Patches to get back up to a higher version?

                Many thanks.

                  dont get frustrated!
                  i just noticed that tikal formerly got "...One of the library files needed to run this application can not be found", while i only had problems to load php4apache.dll itself.
                  perhaps you should try to comment out some extensions in php.ini. maybe this helps you to isolate the prob.
                  now, at my office i cannot tell you more, but lets see tonite...
                  C.

                    I looked at the php.ini file but all the extensions listed under the
                    ;Windows Extensions section are already commented out

                    Many thanks,
                    Steven.

                      hi,
                      i had a glance at my system (Win95):
                      Apache 1.3.19 (Win32) PHP/4.2.0
                      active extensions:
                      extension=php_dba.dll
                      extension=php_gd2.dll
                      extension=php_zlib.dll
                      others are disabled.

                      Yet I didnt have to copy any of the dlls located in the PHP/Dlls subfolder to system folders. However this might get necessary if using some other extension (?!?).
                      There is no version info available about php4apache.dll.

                      My apache httpd.conf has the following entries (in this order):
                      #--------Schnipp--------- Added for PHP Support
                      #for the apache module
                      LoadModule php4_module c:/php/sapi/php4apache.dll
                      AddType application/x-httpd-php .php4

                      #for the cgi binary (you can use that one compiled with force cgi redirect too)
                      ScriptAlias /php4/ "C:/php/"
                      Action application/x-httpd-php4 "/php4/php.exe"
                      AddType application/x-httpd-php4 .php
                      AddType application/x-httpd-php4 .htm
                      AddType application/x-httpd-php4 .html
                      #--------Schnapp---------

                      Thats it, i got no other ideas.
                      Cris

                        I made the changes you suggested, and I was able to
                        get by that error with the load of php4apache.dll.. but.
                        I also got an error with missing variables. I must not be
                        setting the variables because I cannot browse my
                        mysql database. The key is not getting to the read
                        properly. I mentioned this error way back when.... I will
                        try to set the globals and see if that does the trick. thanks
                        for all your help.... Have never set the globals before,
                        so I will have to read up on how to do it....

                          Write a Reply...