[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] small problem with php4 cgi



Hi,
have just got my first raq4 (after raq3). Installed php4.1.1 successfully as a DSO. Runs fine
Installed php4.1.1 as a cgi as well (in diff area obviously). This runs fine as a command line cgi and does what I want. On the RAQ3 I could also run it from the browser as well but it doesnt seem to work on my 4 - obviously I have done something wrong on the setup.

Can someone critique this srm.conf and see where I have gone wrong ? - i want the cgi version to run with extension .phpc and the DSO to run with .php, .php3,.php4 (that part works fine)

# PHP4 (backwards compatible with php3)
AddType application/x-httpd-php4 .php3 .php4 .php

AddType application/x-httpd-phpc  .phpc
Action application/x-httpd-phpc /usr/local/php/bin/php

a sample script that I am running is:

#!/usr/local/php/bin/php -q
<?
phpinfo();
?>

which doesn't work (asks me if I want to download the file)

cheers

Jim Carey
www.OZbcoz.com discount domain registration
www.iluvoz.com affordable hosting services