General Community > Scripting Help
php tries to download instead of displaying
(1/1)
Hans v. M.:
My first attempt to install Apache2 and PHP succeeded, but when I click on my fist .php document (test.php) it tries to download it instead of displaying.
I installed php in C:/php
Apache installed automaticaly in c:/programfiles/..
I edited httpd.conf by adding:
Action application/x-httpd-php4 "/php/php.exe"
ScriptAlias /php4/ "c:/php/"
AddType application/x-httpd-php4 .php
(exactly, I copied the code)
php.ini was copied to the /windows directory (XP home edition) and not edited (used php.ini.recommended and renamed it)
Errorlog, last line:
[Mon Aug 11 17:55:18 2003] [error] [client 127.0.0.1] File does not exist: C:/www/php, referer: http://localhost/
What do I wrong?
Thanks Hans
[edit] Well, found it, forgot "4" after php in php/php.exe.
Thanks anyways [edit]
Navigation
[0] Message Index
Go to full version