[NEWBEE] PHP5 RC1 install problem

From: Gene Kahn (jenjhiz_at_yahoo.com)
Date: 03/27/04


Date: 27 Mar 2004 09:12:52 -0800

Windows XP, Apache 2, PHP5 RC1
Hello,
A total newbie here. I can't seem to get Apache2 to load the php5
module. When I loaded up this html file in a browser, only the Today's
date: line prints on the page.

<html>
<head>
<title>Listing 1-7</title>
</head>
<body>
Today's date:
<?php
        /*
        ** print today's date
        */
        print(Date("l F d, Y"));
?>
</body>
</html>

It looks like the PHP preprocessor is not loading. I have added these
lines to Apache's httpd.conf, then re-started Apache.

LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php

How do I get this corrected? Any help will be appreciated!

gk



Relevant Pages

  • Re: PHP5 IIS Setup
    ... If there were any html tags, ... Incidentally I'm using Apache 2, ... You haven't added a type association so Apache knows to use PHP to process ... it not processing PHP files. ...
    (alt.php)
  • Re: Content negotiation in Apache
    ... >Someone already mentioned the rewriting rules which will work for you. ... Sorry I hadn't posted anything in awhile, but Apache and I move ... The other is that I'm learning PHP and did not originally have the ... and got 600 visitors this December, and the page ends in ".html" and now ...
    (RedHat)
  • Re: PHP-Yes, HTML-No --- Why?
    ... Surely a dynamic web server should appear exactly the same as a static one - all files that contain HTML when viewed should be called ... If you know how, say, the PHP apache module works, you'll see that the hit is ... Apache was designed to do just this. ...
    (comp.lang.php)
  • Re: Convert from .html to .php - What are SEO implications of file name changes?
    ... you can leave all your pages as .html and any embedded PHP ... I think we are using Apache, so I'll try your suggestion if we are. ... And while we are on the subject of Apache, .htaccess, etc, are there ...
    (alt.internet.search-engines)
  • Re: php in ".html" documents
    ... On my computer apache will see php in .php documents but not in .html ... Can I configure apache to see php in .html documents? ...
    (comp.lang.php)