Click to See Complete Forum and Search --> : Configuration Error: Returns Text Files


Anon
07-18-2000, 05:52 AM
Instead of returning a php document, my server returns the source code in the form of a text file. I have an Apache Web Server.

ScriptAlias /php/ "c:/program files/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "C:/program files/php/php.exe"

Thats how my changes to httpd.conf look. I have no idea what the problem is. Any help will be greatly appreciated.

Anon
07-18-2000, 11:57 AM
Change your Action line to this:
Action application/x-httpd-php "/php/php.exe"

Anon
07-18-2000, 07:25 PM
Thanks for the help:/ But it didn't work. May I ask you what changes you made to your php.ini file? Because I suspect that may be the problem. Also, did you copy and paste the entire php folder to be under the Apache directory? I did, and I tried putting that folder in the cgi-bin, too. But neither works for me.