|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I have configured Apache to run PHP4 as a Cgi module, But I keep getting an error in the Apache error log when a php page is accessed, the error is -
"Premature end of script headers" This is the first time we have used PHP4 as a Cgi module, in the past we have configured it to run as an Apache module. Can anyone help, here is a simple example page which causes this error. <? echo"<html>"; echo"<body>Test message"; echo"</body></html>"; ?> Many Thanks in advance Chris |
|
#2
|
|||
|
|||
|
CGI module doesn't use <? .. ?>. You need to set the first line to something like #!/usr/local/bin/php Check the PHP manual on how to write a PHP script as CGI.
|
|
#3
|
|||
|
|||
|
Thanks for the reply Freebsd, I did have that line in as well, just forgot to include it in the question.
Solved the problem this morning, it was a path problem, thanks for your help |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Premature end of script header using Apache |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|