Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple httpd.conf problem?

Status
Not open for further replies.

Naoise

Programmer
Dec 23, 2004
318
IE
[date] [error] [client 127.0.0.1] Premature end of script headers: php.exe

Upgraded to Apache 2.0.52 and PHP5 and previously working code gives the above error.

Even a simple

<?

echo "test";

?>

gives this error. Is this a php.ini problem or a httpd.conf error? I know that everything in the .conf is pointing to the correct PHP directory. Furthermore when I actually run php.exe from the commandline and pass it the php file as an argument it executes it fine which leads me to believe it is an httpd.conf problem. Any suggestions as to how I could test this further?
 
hmmm, so I cannot see a mod_php in the modules directory where Apache is installed. Is it just a case of downloading it and placing it in this directory? To the other post, I have tried using strict php tag delimiters before and it just gave the same error unfortunately.
 
Can anyone help me with this?

Is it just a case of downloading mod_php.exe and placing it in the modules directory?

Any replies appreciated
 
I suggest installing WebMin and then use it to administer the Apache setup.
 
Does webmin really "install" modules? I think it can enable/disable modules but that was about it.

If you have DSO support (most likely) then you might be able to find just the module.

Another option is to use apxs to build the dso.

I usually build from source.

To replicated a web sever, you must save the output of:
./httpd -V
./httpd -l
and httpd.conf
Look at all the modules and if you use them
and replicate that onto your new server.
Compare the old httpd.conf and a fresh one to check differences.

eugene
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top