Re: Help !!
| From: | Pablo Vera | Date: | Tue, 19 Sep 2000 15:48:49 +0000 |
| Subject: | Re: Help !! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2738@lists.php.net to get a copy of this message | ||
d> Help !
d> 1. OS = Win98SE
d> 2. Web server = Apache web server 1.3.12
d> 3. PHP => PHP 4.0.2
d> I have done the followings
d> 1. insall PHP in c:\php
OK
d> 2. edit c:\windows\php.ini
d> extension_dir = c:\php
OK
d> doc_root = c:\apache\htdocs
YOU DON'T NEED TO SET THIS, LEAVE IT BLANK:
doc_root = ;
d> 3. edit c:\apache\conf\httpd.conf
d> ScriptAlias /php/ "c:/apache/php/"
THIS ONE IS WRONG, IT SHOULD BE:
ScriptAlias /php/ "c:/php/"
d> AddType application/x-httpd-php .php
d> AddType application/x-httpd-php .phtml
CHANGE THIS TWO AS FOLLOWS:
AddType application/x-httpd-php .php .phtml
d> Action application/x-httpd-php "c:/php/php.exe"
CHANGE THIS ONE TO:
Action application/x-httpd-php "/php/php.exe"
d> 4. edit c:\apache/php/test.phtml
d> <?php phpinfo() ?>
d> 5. test http://127.0.0.1/test.phtml
PLACE YOUR PHP SCRIPTS IN C:\Apache\htdocs, side by side with your
.html files.
Hope this helps.
Saludos,
Pablo Vera