RE: [PHP-WINDOWS] Question installing and running php

From: Date: Wed, 07 Jun 2000 00:10:34 +0000
Subject: RE: [PHP-WINDOWS] Question installing and running php
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-256@lists.php.net to get a copy of this message
Hi James, James Ku-Ok Chung Wrote: > hello, > I am having trouble with the php. > > on a apache 1.3.12 and php4 (also tried php3) > > and followed all the directions of .ini and stuff... > > when I run the sample php on the web browser.. I don't get what I want > but it appears <? phpinfo() ?> the script itself... > > meaning it doesn't run the script but it just shows me the script code > on the > browser. > > any hints of what I have done wrong? You need to tell apache about php. At the bottom of the /your/apache /path/conf/httpd.conf add the following. #PHP4 Directives ScriptAlias /php4/ "c:/php4/" AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Action application/x-httpd-php "/php4/php.exe" Set c:/php4/ to your path to php4. If you already have some setting like these then check them to make sure they're correct. These setting, or lack there of will be the problem. Andrew

« previous php.windows (#256) next »