I recently downloaded PHP4.0 and Apache on my Windows NT 4.0 and Win 98 machine.

I have followed(more or less) all the instructions of Installation of both Apache and PHP.

Apache is successful. it is running.
When it comes to PHP, if I try to run a phpinfo.php from http://localhost/phpinfo.php it gives me this Download screen interface, and asking me to either download or open it.
Why is this happening instead of Executing it and showing me the result on my browser(IE5)

Where have i made mistake in Installation ?
I have kept my PHP folder name as phpwin.
In NT it is lying in D: and in Win 98 it is under C:
In both cases same Download screen interface is executed.

Any ideas to correct this problem ?

Thank you, in advance.
Bijal.

    Hello,

    I try to install PHP 4.0.3 on Apache Server and Win NT but a few extensions
    are not found by the php.ini file . The path (extension_dir) is correct, the
    file exists but the php.ini can not load it.

    If you have any experience with PHP under Windows system,
    please tell me about it. I would be very gratefull.

    With best regards
    Camelia

      Hi,
      i have the same problem of you.
      if you have the answer please give-me!!!
      All right!

        I don't now the answer; Sorry.
        In DataBase Talk is something that can help you. A put that message here:

        got a problem connecting to Oracle by the tnsnames. I'm running PHP4 as CGI and it seemed there was no way to connect to a remote database. so what i do:

        $dbname = "(DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = xxxx))
        (CONNECT_DATA = (SID = xxxx))
        )";

        $conn = OCILogon("user","psw",$dbname);

        print "Server Version: " . OCIServerVersion($conn);

        OCILogOff($conn);

        well! it worked!!!!!!!!!

        ;-)

        OK! You can find yourself this answer on Database Talk the subject is PHP4.O.3 + ORACLE 8.0.5 & WINNT4.0

        Good luck,
        Camelia

          a year later

          Did you ever find an answer to this question? I have the same problem.

            5 days later

            Yes, my installation was later on successful. It's long time now, can't exactly remember how was it done ?

            Mine was slightly different situation in the sense that my PC win 98 already had PHP 3.

            I upgraded to PHP 4. And since some trace of PHP 3 were still remaining, my Apache was still detecting PHP 3.

            After having changed the httpd.conf, keeping the php.ini in Windows directory (remove the old one, php3 etc. if any),
            restart the machine, restart Apache, remove cache from browser and run a script with phpinfo(), it should work.

            Make all the necessary changes in httpd.conf for the PHP, like php handler and script alias, etc.

            If Apache is running while u are making all this changes, 1st shutdown apache. If it fails to shutdown, kill all processes of Apache (CTRL-ALT-DELETE), whereever u find. There may be > 1 apache process in the dialog box.

            Try all this. it should work.

              4 days later

              I used very similar conditions to yours, Win 98, PHP4, Apache, MySQL.

              I followed the tutorial of David Lyndsay on the webmonkey site. I found this a good tutorial and it worked once I had followed the instructions correctly.

              The lines at the bottom of httpd.cof that you have to add are very important.

              I think we wrote out our instructions for future ref, and if you have not solved your problem I could send them.

              Regards

              Paul

                Write a Reply...