Re: PHP4 setup problems
On Tue, May 28, 2002 at 02:40:08PM +0100, Andrew Pritchard wrote:
> Quoting Colin Watson <email@example.com>:
> > On Tue, May 28, 2002 at 01:12:07PM +0100, Andrew Pritchard wrote:
> > > However when I try to go to the test script I wrote, it comes up with
> > > a "500 error message". Looking in the error log I notice this:
> > >
> > > (8)Exec format error: exec of /usr/lib/cgi-bin/hello.php failed
> > >
> > > What is an Exec Format error?
> > It means that the kernel didn't know how to execute that file. Perhaps
> > you need '#! /usr/bin/php4' as the first line of the PHP script?
> I don't think so - it's supposed to be a PHP enabled webpage. The PHP is
> embedded into the HTML, so you shouldn't need to do things like that.
You mean hello.php is an HTML file with PHP embedded in it? Then I'd
have thought that it shouldn't be in /usr/lib/cgi-bin and shouldn't have
the .php extension; that's for standalone PHP scripts that generate all
the content themselves.
Colin Watson [firstname.lastname@example.org]
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org