Please Please Help

I am try to configure and run php4 & apache under win98.Apache says it's configured OK and
brings up the default index file when the address http://localhost/ is entered
in my browser.
I have followed the steps listed in the "php" install file and basically carried out the following;

  1. Unzipped php to C:php

  2. moved the php4ts.dll to the windoows\system directory

  3. Edited apache httpd.conf and added the following lines

under DSO module support "LoadModule php4_module c:/php/sapi/php4apache.dll"
just beneath that "AddType application/x-httpd-php .php4"
under ScriptAlias " ScriptAlias /php4/ "C/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType applicatin/x-httpd-php4 .php "
under Action " Action application/x-httpd-php "php/php.exe" "

  1. Copied php.ini-dist to C:windows re-named it php.ini

  2. Copied the php extensions to C:windows\system

  3. editted php.ini with

doc_root="C\Program Files\Apache Group\Apache\htdocs"
&
extension_dir ="C:\windows\system"

  1. used a text editor to create a file containing <? phpinfo(); ?> and called it test.php
    and saved it my document root directory.

As i said Apache seems to run fine and displays "Apache/1.3.19 (win32) PHP/4.0.4pl1 running..."
butwhen I address http://localhost/test.php all I get is "<? phpinfo(); ?>"

As I said I would appreciate any help so I get this thing running and my life back to normal, thanks.

    Did you restart Apache after the conf edit?

      The default Index. page will be displayed untill u dont change the index.html file in the Document Root which is "C\Program Files\Apache Group\Apache\htdocs". Either change the Document Root Path or upload all ur files in the same folder. Also, restart Apache everytime you make changes to httpd.conf file or else it will not take effect.

        hey Jeremy, I'm pretty new to this so thank you for such a speedy reply.

        Yes, I did start Apache after the conl edit.
        I have experimented and the mention of php in the apache header disappears if I comment out the LoadModule line. But what good si that?

        Shane

          The problem seems to be that the test file is only being served as text. what now, please.

            Do you want to run both the servermodule AND the CGI-Version? I don't know if you can mix that. If you just want tu run one of them, read /php/install.txt for each installation of the different versions.

            Best regards,

            King Louie

              If you copied the lines directly from your httpd.conf, you may wish to go back and correct the spelling of:

              "addType applicatin/x-httpd-php4 .php"

              may help

                Write a Reply...