php on vergil not working?
lbmelton at u.washington.edu
Mon Dec 16 01:05:35 PST 2002
On Mon, 16 Dec 2002, Kolbe Kegel wrote:
> no idea on that, but if you make php scripts and access them via the
> web, they work perfectly fine.
> C&C will respond eventually.. it usually takes them several days. and
> they are probably understaffed for the quarter break, too. and usually
> they're not real helpful when it comes to things beyond "my internet
> doesn't work. do you have an ethernet card and cable? a what? jesus..."
I would like to speak up for C&C. The one time I contacted them, because
my PHP webpages were intermittently borking with server errors
(unconnected with any changes I was making), I got a prompt response
saying "other people complained too, hang on, we're working on it" and
then another email not too long after that (less than a day I think)
saying what the problem was and that it was fixed. Admittedly the server
had been borking for several days before I emailed them, but and it wasn't
fixed in that time, but they were helpful once I did.
As for the original problem...
> Adam Monsen wrote:
> > Sorry if this is offtopic...
> > I'm unable to use PHP on vergil... anyone know why it doesn't work?
> > When I try the command line client, I get this:
> > % php
> > Could not load program php:
> > Dependent module libdb2.a(shr.o) could not be loaded.
> > Could not load module libdb2.a(shr.o).
> > Error was: No such file or directory
> > And trying to run any scripts through the Web server just gives me
> > "Premature end of script headers" errors.
> > I've tried to contact C&C help by email but they're unresponsive as of
> > yet.
It sounds to me like you're trying to execute PHP scripts like CGI
scripts. This won't work. Just name the file .php and put it in a normal
See <http://www.php.net/manual/en/features.commandline.php>; I suspect
that your "premature end of script headers" error is caused by the fact
that no headers are outputted with the command-line SAPI.
More information about the Linux