Re: [NEWBEE] PHP5 RC1 install problem

From: Andy Hassall (andy_at_andyh.co.uk)
Date: 03/27/04


Date: Sat, 27 Mar 2004 17:22:22 +0000

On 27 Mar 2004 09:12:52 -0800, jenjhiz@yahoo.com (Gene Kahn) wrote:

>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

 Just to be clear - you say you "re-started" Apache - how exactly did you do
this? Did you Stop and then Start it, or did you use Restart?

 You have to completely stop then start to get it to load new modules.

 If not that, then check both the Apache error_log and the Windows event log
(the Application section of it).

 Does PHP show in the server signature? Or in server-info? (Look in httpd.conf
for how to enable this if you haven't got it set up).

--
Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk         / http://www.andyhsoftware.co.uk/space


Relevant Pages

  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have ...
    (alt.os.linux.suse)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have access ...
    (alt.os.linux.suse)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have access ...
    (alt.os.linux.suse)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the default ... so if you want to use one of the html builders or one of the more elaberate ...
    (alt.os.linux.suse)
  • Re: +" in dateiname.html = 404
    ... Wenn dann der Server den Browser nicht versteht, ... Php ist immer noch nicht wirklich threadsave. ... Apache im preforked mode laufen damit es mit php zu keinen ...
    (de.comp.os.os2.apps)