Rajeev,

first see this line in your httpd.conf..

Your line --->  ScriptAlias /php/ "D:\Program Files\PhP/php-4.2.1-Win32/"
                see the difference ...... you have set the Alias path incorrectly..
                change it to this... (A Slash can change a world)

        ScriptAlias /php/ "D:/Program Files/PhP/php-4.2.1-Win32/"

then save your file with the extension "filename.php" not the
"filename.html",
if you name it html, the server will not try to parse the file through
php.exe,
so you have to name it as ".php".

happy coding
Vk
www.CeyNet.net - Contact [EMAIL PROTECTED] for custom hosting plans.



-----Original Message-----
From: Rajeev Ramdas [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 20, 2002 11:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Php on win2000 with apache 1.3.22 assistance.


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/


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to