buc99
Don't Tread on Me!
I created a file called hello.php with the following contents:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "Hello World<p>"; ?>
</body>
</html>
I get an internal server error when I try to load this page. So I tailed my error_log and got the following:
[Tue Nov 26 13:31:29 2002] [error] (8)Exec format error: exec of /Library/WebServer/CGI-Executables/hello.php failed
[Tue Nov 26 13:31:29 2002] [error] [client 127.0.0.1] Premature end of script headers: /Library/WebServer/CGI-Executables/hello.php
I followed the howto on howto set up PHP/mysql. My php module is loaded in apache. I changed the permissions of the file to 755. Any ideas what I'm doing wrong?
Thanks.
SA
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "Hello World<p>"; ?>
</body>
</html>
I get an internal server error when I try to load this page. So I tailed my error_log and got the following:
[Tue Nov 26 13:31:29 2002] [error] (8)Exec format error: exec of /Library/WebServer/CGI-Executables/hello.php failed
[Tue Nov 26 13:31:29 2002] [error] [client 127.0.0.1] Premature end of script headers: /Library/WebServer/CGI-Executables/hello.php
I followed the howto on howto set up PHP/mysql. My php module is loaded in apache. I changed the permissions of the file to 755. Any ideas what I'm doing wrong?
Thanks.
SA
