Forum Moderators: coopster

Message Too Old, No Replies

Configuring php5 on apache 2.2 as CGI

OS:Windows XP;php 5.1.1

         

kadnan

8:52 pm on Apr 1, 2008 (gmt 0)

10+ Year Member



Hi

I am trying to configure php as CGI on apache 2.2. Following are entries:

[codes]

<Directory "c:/php/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /php/ "c:/php/"
Action application/x-httpd-php "/php-cgi.exe"
Addhandler php5-script .php action php5-script /cgi-bin/php
[/codes]

and when i try to access:

[localhost...]

it's asking to save test.php.

in php.ini I have:

[codes]cgi.force_redirect = 0[/codes]

Thanks

kadnan

9:51 pm on Apr 1, 2008 (gmt 0)

10+ Year Member



ok i solved it, even as a Module. It was al due to not using <?php. I am used to use short tags rather.