I have been searching through this forum, but I have yet to find a working solution. I am progressing from php3 to php4 (or I should say regressing, since that is the way I feel right now).

I have Apache set up fine. I grabbed php4.0.3-dev-win32 from whatever that site was (because I needed Oracle support), as well as, the fix that was just released. Before I installed the fix, I tried accessing the php.exe directly, and I received the errors saying that it could not find the ming, ifx and curl DLL files. Once I installed the fix, now I am receiving the following error:

:::::::::::::::::::::::::::::::::::::::::::::
PHP Warning: Unable to load dynamic library 'c:/php/extensions/php_ifx.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0.
:::::::::::::::::::::::::::::::::::::::::::::

The strange thing is that the php_ifx.dll file is in the extensions folder, but it is not seeing it. Here is my setup and the steps I followed for configuration so far...

Win 98
Apache
php4.0.3-dev-win32 w/fix

1.) I unzipped all of the PHP files to c:/php

2.) I moved the php4ts.dll to the windows/system dir.

3.) I added the following lines to the httpd.conf file for Apache:

ScriptAlias /php/ "c:/php/"
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php

4.) I added the directory in the php.ini file:

extension_dir = C:\php\extensions

5.) I saved the php.ini file in C:\windows

And I think that is it...so what am I missing here? Please help if you can. This is the cause of much frustration. If I had an extra system here, I would just set up linux on it, and forget about windows, but I have to get it set up on this system for development purposes... Thanks in advance.

    Change of plans... I totally removed all of the PHP files. If someone could be so kind as to cut n paste a correct copy of steps to get this thing to work from beginning to end, I would be much appreciative. Please don't cut n paste something you haven't tried yourself, as I have already wasted about 25 hours on this. 🙁

    So basically...based off of my above setup description, can someone help me get this thing up and running? I will give you my first born if you do. 🙂

      Do you have a line like this in php.ini?

      extension=php_XXXX.dll

      Make sure it is uncommented.

      I believe your procedure as described is otherwise ok.

      Let me know, I struggled a long time with 4.01, it never worked, but 4.02 worked immediately (all on Win98)

      Paul

        Yep. I made sure that it was not commented out, but that didn't help. 🙁

        I was going to try the 4.02 version from php.net, but I need to have Oracle support, and the .dll files were not with that version, so I grabbed the version from swwwwing, which is php4.0.3dev ...

        I have a feeling that I can get the PHP.net version (4.02) to work properly, but do you happen to know how I can get Oracle support with that version? It doesn't have the correct .dll files, and I can't swap the ones from the 4.0.3 version I have. (Or so I hear).

        Thanks Paul...

          I want to know if there is a "php.ini" in the directory of the PHP. if it does, please delete it.
          Once I encountered a error like this. at last I found that although I edit the php.ini in the \windows but there still a php.ini in the \php . make sure you had this php.ini removed.
          by the way, you can download a good php at php4win.de which is a good site for phpuser of windows.

            Valentine: THAT WAS IT!!! :-)

            Thanks so much for that info. That is an extremely strange occurence. All of the install directions say COPY the php.ini file, not MOVE. How strange.

            Now if I can only get a connection to the Oracle database, I will be all set. I have the extensions installed, and phpinfo() says that oci is enabled, but when I try to access a page with my connection code, it gives an alert box saying "PHP has causes and error and will be shutdown". The error is:

            PHP caused an invalid page fault in
            module ORANLS8.DLL at 0257:60801ecf.

            Once I click on OK, the page gives a 500 Error.

            Anyway...if you happen to know anything in regards to that, your help would be appreciated. I will try to figure that part out... Thanks again for your help everyone. :-)

              Got It Fixed.. :-)

              I had the ORACLE_HOME declared wrong, which would cause a 500 Error everytime I tried to access a php page with the putenv() method on it.

              All is well in PHP land...Thanks everyone.

                Write a Reply...