Michael Cheung wrote:
Hi Seung,

On my system I have Win XP, Apache 2 with PHP 4.

If you are using Apache 2, you may need to use php4apache2.dll.



My system does not have "php4apache.dll"

Yes, it's in your php folder. i.e. c:\php-xxx\sapi



Should this have come with PHP or Apache? I have also tried your comment below at work on Win2000Pro but still I don't have it on my computer.


in my case (httpd.conf) - i installed php as apache2 module.


// php 5.00b2
// apache 2.0.48

// line 173
LoadModule php5_module c:/php/sapi/php4apache2.dll

// if you are using php 4.xx, it should be like this
LoadModule php4_module c:/php/sapi/php4apache2.dll

// line 322
DirectoryIndex index.htm index.html index.php

// 780
# To use PHP scripts
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

You just need to add 3 lines, and index.php in DirectoryIndex, that's all for httpd.conf.

If it doesn't work, let me or others know. :)

Any ideas?

-----Original Message-----
From: Seung Hwan Kang [mailto:[EMAIL PROTECTED] Sent: 07 December 2003 07:41
To: [EMAIL PROTECTED]
Subject: [PHP-INSTALL] Re: Installation on XP





Clive R Sweeney wrote:


I tried for some hours last night to get Apache and PHP working together in a Windows XP machine. Apache 1.3 seems to work and PHP 4.3.4 seems to work, but I still can't open a PHP test file in my web browser. Believe me, I've tried to follow the instructions very carefully -- although the instructions that come with PHP seem *less than precise*. I then tried finding other guides online. They tend to vary but none of the variations seems to do the trick.

Here's just one example of the potential for error in "install.txt" that comes with the PHP download:


Just add the following lines to your httpd.conf:
  LoadModule php4_module c:/php/sapi/php4apache.dll
  AddModule mod_php4.c
  AddType application/x-httpd-php .php


add to yourapache\conf\httpd.conf file.



Where do you add them? Anywhere? Altogether, or each line in a separate location?


it doesn't matter!


Can anyone recommend an accurate set of instructions that will apply to XP?

Thanks very much.


Clive R Sweeney [EMAIL PROTECTED]


Reply via email to