Php on win2000 with apache 1.3.22 assistance.
| From: | (Rajeev Ramdas) | Date: | Sat, 20 Jul 2002 16:59:30 +0000 |
| Subject: | Php on win2000 with apache 1.3.22 assistance. | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-7843@lists.php.net to get a copy of this message | ||
Hi All...
I am having trouble installing and running php on windows 2000.
I have downloaded php-4.2.1-win32.zip and unzipped it into d:\program files\Php.
I have copied the php.ini-recommended to c:\winnt\php.ini
I have Apache 1.3.22 installed and running other stuff.
I have added D:\Program Files\PhP\php-4.2.1-Win32 and D:\Program Files\PhP\php-4.2.1-Win32\dlls to
the PATH variable on Win 2000.
.\php.exe -i gives me valid html output.
httpd configuration.
--------------------
I have added the following lines to httpd.conf
ScriptAlias /php/ "D:\Program Files\PhP/php-4.2.1-Win32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
<Directory "D:\Program Files\Php\php-4.2.1-Win32">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
LoadModule php4_module "d:/Program Files/Php/php-4.2.1-Win32/sapi/php4apache.dll"
I do not see any php related error messages in access_log or error_log
All i get when i type in the url
is a "; ?> , and when i look at view source i see the entire html that i had type in which
is
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "Hello World<p>"; ?>
</body>
</html>
i then added log_errors=on and error_log = d:\temp\psp_error_log.log in php.ini and no error log
gets written, which pretty much tells me that apache is not detecting php.exe...
Can anyone help me resolve this issue...?
Than You
-Rajeev.
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of
buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/