|

[PHP-INSTALL] PHP w/Apache on WinXP
From: Anthony Calderon (acalderon <email protected>)
Date: 09/17/03
I've installed Apache 2.0.47 and PHP 4.3.3 on a Windows XP machine, but I
can't for the life of me get the damn thing to work. (Yes, I'm new at this.)
I've attempted to view a test page in the C:\Program Files\Apache
Group\Apache2\htdocs directory, both by right-clicking and choosing to open
it with Internet Explorer or by typing the address http://localhost/test.php
within IE. In both cases, when I open it, I get a blank space where the PHP
code should be. Viewing the source from a right-click open gets me the PHP
code and an HTML line I had written; when I go through localhost, the source
is the bare HTML, Head, and Body tags, without even the HTML line I had
added.
The directory of my PHP files is C:\php. Here are some relevant lines of
code:
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
ScriptAlias /php/ "C:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
Action application/x-httpd-php "/php/php.exe"
I have placed php4ts.dll in the Windows/System32 directory. I've looked at a
number of user suggestions, to no avail. If anyone can help, I would be
GREATLY appreciative.
Thanks much...
-AC
|