News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

php tries to download instead of displaying

Started by Hans v. M., August 11, 2003, 12:00:34 PM

Previous topic - Next topic

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]

Advertisement: