[php-maint] Re: php5-cgi problem
sean finney
seanius at debian.org
Thu May 10 13:39:43 UTC 2007
hi nir,
first of all, please send questions like this to the address listed in
the Maintainer: field of the php packages, as this will give you a
larger audience for your troubles (i've cc'd this address, please send
followups there)
On Wed, 2007-05-09 at 17:32 +0300, Nir Aides wrote:
> Hello Sean,
>
> I installed php5-cgi on Feisty/apache2 and I am having trouble getting
> cgi php scripts to work.
secondly, this is on feisty so my ability to help you is somewhat
limited to the fact that i maintain the debian packages, but they're
probably close enough that what helps you will work in both distros.
>
> I have a trivial script called phpinfo.php in /usr/lib/cgi-bin with
> execution permissions:
> <?php phpinfo(); ?>
my first thought: does anything change by putting a #!/usr/bin/php5-cgi
shebang at the top of the file? this could be wrong advice--i'm not
very familiar with running cgi based php.
> However I am getting the following error in my log file:
> [Wed May 09 17:23:51 2007] [error] [client 127.0.0.1] (8)Exec format
> error: exec of '/usr/lib/cgi-bin/phpinfo.php' failed
> [Wed May 09 17:23:51 2007] [error] [client 127.0.0.1] Premature end of
> script headers: phpinfo.php
>
> If I enter the cgi-bin folder and run './php5 phpinfo()' it runs fine.
what about "php5-cgi phpinfo.php" ? they're two seperate cmdline
programs so they might behave differently.
othewrise, you should try disabling any installed extensions and see if
that helps. otherwise, i'm not sure :)
sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20070510/8c6be66d/attachment.pgp
More information about the pkg-php-maint
mailing list