Hello the list,

I'm trying to run an Apache server with FastCGI and PHP.

The install seems to works :

"[Wed Feb 12 16:25:35 2003] [notice] FastCGI: process manager initialized
(pid 19259)
[Wed Feb 12 16:25:35 2003] [warn] FastCGI: server "/bin/php" started (pid
19260)
[Wed Feb 12 16:25:35 2003] [info] created shared memory segment #2555904
[Wed Feb 12 16:25:35 2003] [notice] Apache/1.3.27 (Unix) mod_fastcgi/2.4.0
PHP/4.3.0 configured -- resuming normal operations
[Wed Feb 12 16:25:35 2003] [info] Server built: Feb 12 2003 09:17:29
[Wed Feb 12 16:25:35 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)


So, I put a simple php script in my fast-cgi directory :

=> info.php :
<?php
phpinfo();
?>

But when I try to run this script (http://www.server.com/fast-cgi/info.php)
I have the following error message

[Wed Feb 12 16:26:16 2003] [warn] FastCGI: (dynamic) server
"/fast-cgi/info.php" started (pid 19267)
FastCGI: can't start server "/fast-cgi/info.php" (pid 19267), execle()
failed: Exec format error

Is there a special way to design php scripts for FastCGI ? or what is wrong
?

Below my apache.conf to run FastCGI :

#Fast-CGI
FastCgiServer /bin/php
 <Directory /fast-cgi>
     AddHandler php-fastcgi .php
     Action php-fastcgi /bin/php
     Options +ExecCGI
     SetHandler fastcgi-script
 </Directory>


Thank you in advance for your help

Best regards

Stephane Rozes


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to