I have install php4 with php3 ( with normal install , didn't uninstall php3 and didn't install with apxs )
I can access php script (with connect to mysql) in shell prompt , but when I try to access from browser , it show error "Internal Server Error", when I check in log file , it say
"[error] (8)Exec format error: exec of /usr/local/apache/htdocs/phptest/test.php failed
[error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/htdocs/phptest/test.php "
[ I have set Options in <Directory / > to have ExecCGI already ]
test.php :
<? echo phpinfo() ?>
If I rename test.php to test.php3 , he browser ask me to open or save the file, when I choose to open.. it appear as normal text file.
How can I solve this problem ? Have any suggestion ? Please help me.