Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Apr 11, 2010 1:14 pm 
Offline
Senior Newbie

Joined: Sun Apr 11, 2010 11:56 am
Posts: 15
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) mod_fastcgi/2.4.6 mod_ssl/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/ (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...?

<VirtualHost 109.74.204.98>
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
</VirtualHost>

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

_________________
Jean


Top
   
 Post subject:
PostPosted: Sun Apr 11, 2010 4:05 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
I see neither apache2-mpm-worker nor php5-cgi in your installed package list.


Top
   
 Post subject:
PostPosted: Mon Apr 12, 2010 9:02 am 
Offline
Senior Newbie

Joined: Sun Apr 11, 2010 11:56 am
Posts: 15
Yessss, that it. Perfect.
Big thanks Guru hybinet!

_________________
Jean


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group