PHP not running on Apache with FastCGI
I'm a new bie, running Ubuntu 9.10 with AMP, thanks to a Linode stack.
Apache runs well but php not
My Apache error log give me 2 errors (the 2 last lines):
[Sun Apr 11 16:01:47 2010] [notice] FastCGI: process manager initialized (pid 3293)
[Sun Apr 11 16:01:47 2010] [notice] Apache/2.2.12 (Ubuntu) modfastcgi/2.4.6 modssl/2.2.12 OpenSSL/0.9.8g configured – resuming normal operations
[Sun Apr 11 16:02:47 2010] [warn] FastCGI: scheduled the start of the last (dynamic) server "/var/local/fcgi/php-cgi-wrapper.fcgi" process: reached dynamicMaxClassProcs (1)
exec: 12: /usr/bin/php-cgi: not found
[Sun Apr 11 16:02:47 2010] [warn] FastCGI: (dynamic) server "/var/local/fcgi/php-cgi-wrapper.fcgi" (pid 3301) terminated by calling exit with status '2'
Basically I've followed the procedure I found here :
The packages installed on my boxes are:
For Apache:
dpkg-query -l 'apache2*' | egrep '^ii'
ii apache2 2.2.12-1ubuntu2.2 Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.12-1ubuntu2.2 Apache HTTP Server - traditional non-threade
ii apache2-prefork-dev 2.2.12-1ubuntu2.2 Apache development headers - non-threaded MP
ii apache2-utils 2.2.12-1ubuntu2.2 utility programs for webservers
ii apache2.2-bin 2.2.12-1ubuntu2.2 Apache HTTP Server common binary files
ii apache2.2-common 2.2.12-1ubuntu2.2 Apache HTTP Server common files
For PHP:
dpkg-query -l 'php' | egrep '^ii'
ii php-pear 5.2.10.dfsg.1-2ubuntu6.4 PEAR - PHP Extension and Application Reposit
ii php5-cli 5.2.10.dfsg.1-2ubuntu6.4 command-line interpreter for the php5 script
ii php5-common 5.2.10.dfsg.1-2ubuntu6.4 Common files for packages built from the php
ii php5-dev 5.2.10.dfsg.1-2ubuntu6.4 Files for PHP5 module development
ii php5-mysql 5.2.10.dfsg.1-2ubuntu6.4 MySQL module for php5
For CGI (fastcgi)
dpkg-query -l 'cgi' | egrep '^(ii)'
ii libapache2-mod-fastcgi 2.4.6-1 Apache 2 FastCGI module for long-running CGI
It could also be something to do with my virtual host, missing something, but what…?
ServerAdmin
DocumentRoot /srv/www/exemple.com/public_html/
ErrorLog /srv/www/exemple.com/logs/error.log
CustomLog /srv/www/exemple.com/logs/access.log combined
Is there any guru of the Gurus beeing able to point me to the right direction?
Many thanks for your help/ideas and good advices
Jean
2 Replies
Big thanks Guru hybinet!