execle() failed: Exec format error

Addady <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hello,

I install the latest version of php and fastcgi, but I fail to run php
script via fastcgi.
I tried on two different version of Centos v4.4 and v4.1

When I try to access the php
http://10.200.1.30/cgi/test.php

I get "Internal Server Error"

#tail /var/log/httpd/error_log
[Wed Dec 20 02:13:26 2006] [warn] FastCGI: (dynamic) server
"/var/www/html/cgi/test.php" started (pid 31927)
FastCGI: can't start server "/var/www/html/cgi/test.php" (pid 31927),
execle() failed: Exec format error
[Wed Dec 20 02:13:26 2006] [warn] FastCGI: (dynamic) server
"/var/www/html/cgi/test.php" (pid 31927) terminated by calling exit with
status '255'

The httpd relevant configuration:

LoadModule fastcgi_module modules/mod_fastcgi.so

FastCgiIpcDir /tmp/fcgi-ipc/
FastCgiServer /usr/local/php5/bin/php
AddHandler php-fastcgi .php

<Location /cgi>
    SetHandler fastcgi-script
</Location>

Action php-fastcgi /cgi-bin/php
AddType application/x-httpd-php .php

<Directory "/var/www/html/cgi">
Options ExecCGI
</Directory>

I compile php with:

./configure \
--prefix=/usr/local/php5/ \
--with-config-file-path=/usr/local/php5/etc/ \
--with-mysql \
--with-gd \
--with-zlib-dir \
--with-xml \
--with-zlib \
--with-curl \
--enable-fastcgi \
--enable-discard-path \
--enable-force-cgi-redirect \
--enable-sockets

#/usr/local/php5/bin/php -v
PHP 5.2.0 (cgi-fcgi) (built: Nov 23 2006 19:10:27)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

Any help will be appreciate


Regards,
Addady


___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.