Re: php cgi
On Tue, 20 Mar 2001, :yegon wrote:
> When I start a php script (first row is #!/usr/bin/php) from the commandline
> it works well, but when I call it in browser as cgi it fails with Internal
> server error.
> commandline php works well, outputing the right headers
> when i invoke such script in browser no error message apear so I think the
> php is not executed
> just a standard error message in apache error log "premature end of script
> headers"
In /etc/apache/httpd.conf, UNcomment the line:
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
That should do the trick.
msw
--
Martin Wheeler - StarTEXT - Glastonbury - BA6 9PH - England
[1] mwheeler@startext.co.uk http://www.startext.co.uk/
- Share your knowledge. It's one way to achieve immortality. -
Reply to:
- References:
- php cgi
- From: ":yegon" <lists@yegon.sk>