Click to See Complete Forum and Search --> : Problem install php4


Anon
09-10-2001, 06:38 AM
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.

Anon
09-17-2001, 03:55 AM
I can do it .
Just install apache and php again..
follow by
http://www.linuxguruz.org/z.php?id=31

Thank..