Hey all,
I'm just wondering if you can help me out with something. I just installed PHP and MySQL at home, and it all seems to be working fine, with one exception- when I go to a test php page (phpinfo.php) it asks me to download the file. If I choose to open the file from its current location, it just displays the file as text. I've checked httpd.conf and it does have the LoadModule lines and the AddType lines for it. Can anyone think of anything I might be doing wrong? If you want I can post a copy of the pertinent parts of my httpd.conf file...
Thanks,
Dan

    don't you also have to add something like

    ScriptAlias /php/ "c:/php/"

    or something like that to it?

    and then i think you need something like

    Action application/x-httpd-php "/php/php.exe"

    paths should be changed to the correct ones of course.

      I installed apache & php on a win98 system to test new php scripts--having the same problem. If the html file calls the php file, the php just lists in the browser as if I opened it with notepad. If I click on th php file the same thing hapens.

      I think this whole thing is a pain!

        This isn't on 98 though, it's on Linux. (Come on, be a man! 😉 Doing the same thing though... I'll double check the path to make sure that it's loading all right.

          I have a similar problem and have isolated it done further but with no success so far.

          I am developing a hosted site using php with the following: linux/Apache 1.3.12/php 4.0.1pl2 as a module/mysql 3.23.47. phpinfo() and all my web pages and php scripts work fine with IE6.0/Netscape 4.73 and Opera 6.0.

          I develop localy and upload using the following W2K/Apache 1.3.20/php 4.1.1 as a module/mysql 3.23.47. I just changed php from cgi to a module. Before I made the change all my pages worked fine with all three browsers(except for PNG files on netscape which I am going to change to JPEGs.) and phpinfo() worked fine.

          I unistalled php cgi and reinstalled php as a module today. All my pages work fine and phpinfo() works fine on Netscape and Opera but has the download problem with IE6. The ScriptAlias and Action directive make no difference. With or without them I get the download problem in IE6.

          My relevant lines in my local httpd.conf are as follows:

          LoadModule php4_module modules/php4apache.dll
          AddModule mod_php4.c
          AddType application/x-httpd-php .php

          Since I can use phpinfo() in Netscape or Opera and my pages work fine its not a real problem for me but I would like to find out what's going on here.

            Ok,

            I found a solution to MY version of this problem--I hope you all do too:

            If I open http://C:\Apache\htdocs\project_name\index.html it does NOT work.

            If I open http://localhost/project_name/index.html IT WORKS!!

            Good luck everyone!

            Lance

              Because if you enter

              http://C:\Apache\htdocs\project_name\index.html

              it is not being served by apache

              by using http://localhost/ (which is pointing to C:\Apache\htdocs in your httpd.conf) you are getting the page served by apache

              Mike

                Write a Reply...