LindonNetworks
03-05-2003, 08:22 AM
Help. Apache would server PHP files. I get a download. I have added the AddType application/x-httpd-php .php Action application/x-httpd-php "C:/php/php.exe".
Any ideas what the problem could be?
delpino
03-05-2003, 08:32 AM
You could download a complete php / apache package here:
http://www.firepages.com.au/
Its free and pre-configured as far as I know
DarktidesNET
03-05-2003, 08:49 AM
Try this
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "/php/php.exe"
delpino
03-05-2003, 09:39 AM
when would u use phps? to see the source code of a php script?
DarktidesNET
03-05-2003, 09:46 AM
Correct. It's easier than show_source() for most to just rename it ...
dilvie
03-05-2003, 10:36 AM
Originally posted by matrix28
Help. Apache would server PHP files. I get a download. I have added the AddType application/x-httpd-php .php Action application/x-httpd-php "C:/php/php.exe".
Any ideas what the problem could be?
There are two lines you need to add to your httpd.conf. They are both clearly spelled out in the php installation docs. You need to make sure that the PHP module is loading, along with the content type setting you have apparently already made. You can generally search for "php" in your default httpd.conf file to find what you need to configure. Usually the commonly needed settings are in there and commented out, in an out-of-the-box apache configuration.
dilvie
03-05-2003, 10:39 AM
One more thing: You need to make sure that the <directory> block associated with the location of your php files is set to allow script execution. As I said before, the default config file should have an example (look for the cgi-script directory example).