PHP not running on Apache with FastCGI

Hi everyone,

I'm a new bie, running Ubuntu 9.10 with AMP, thanks to a Linode stack.

Apache runs well but php not :shock: It seems to be linked to FastCGI and more specificaly to mod_fastcgi I've installed. I've also install APT and Worker Thread MPM.

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)

[Sun Apr 11 16:02:47 2010] [warn] FastCGI: (dynamic) server "/var/local/fcgi/php-cgi-wrapper.fcgi" started (pid 3301)

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 : ~~[http://window.punkave.com/2010/03/08/faster-php-kill-kill/" target="_blank">](http://window.punkave.com/2010/03/08/fa … kill-kill/">http://window.punkave.com/2010/03/08/faster-php-kill-kill/]( (starting in the middle of the page)

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…?

ServerName exemple.com

ServerAdmin admin@exemple.com

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 :lol:

Jean

2 Replies

I see neither apache2-mpm-worker nor php5-cgi in your installed package list.

Yessss, that it. Perfect.

Big thanks Guru hybinet!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct