Menu

Newbe install problems with Apache2 and PHP5

Help
2005-08-09
2013-04-15
  • Nobody/Anonymous

    Hi, any wisdom, or inspired ideas would be greatly valued on the second day trying to get this working. XP, SP2, out-of-the box install of WebServ-1.2.9.0_PHP-5.0.4.exe

    Port 80 problem overcome, but now I am stumped on PHP. Apache2 is running. However PHP is not being parsed.
    My file is test.php

    <? phpinfo(); ?>

    and displays only the literal code. I have tried .html files with PHP content and only the HTML is acted on.

    I see many others have had similar problem, but, dissapointingly, what worked for them is not working for me.

    My httpd.conf currently has this fragment, and the paths are accurate
    ####  PHP  ###
    #@@PHP4@@LoadModule php4_module "C:/WebServ/php/php4apache2.dll"
    LoadModule php5_module "C:/WebServ/php/php5apache2.dll"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .html
    AddType application/x-httpd-php-source .phps
    PHPIniDir "C:/WebServ/php"

    I have tried several php.ini files, making sure that I include the line
    extension_dir = "c:/WebServ/php/ext"

    The php.ini file is in C:/WebServ/php , though I have tried several other locations according to suggestions. This location is also in the Windows PATH.

    There is one thing I am wondering about:
    Why does the Windows task manager show two instances of Apache running? The Apache Service Monitor shows a service stauts for Apache and Apache2, though only Apache2 can be turned on.
    There are no other installations or versions of Apache.exe on the machine.

    Hoping for some helpful suggestions

    -Brian

     
    • Nobody/Anonymous

      To add to the above:

      I can run PHP from the command line. In this mode I know it is finding the ini file as it reports missing extensions if there are any

      -brian

       
    • Nobody/Anonymous

      Arrrrrrrgh

      Sorted!   What a stupid mistake. Somewhere along the line I stopped typing http://localhost/test.html and was just accessing the file from the Open File menu in the browser. Of course I was not using the web server at all. Duh....

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.