Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Wed Dec 16, 2009 10:11 am 
Offline
Senior Member
User avatar

Joined: Tue Dec 01, 2009 10:31 pm
Posts: 57
Well this is a weird one...

I installed spawn-fcgi and will monitor it to see how it runs.. strangely it doesn't like to startup after a reboot, is there any way on ubuntu where I can check if it's set to run?

I've created an init script at /etc/init.d/init-fastcgi
Running this script manually does start php-cgi
Quote:
ps -ef | grep php
www-data 2719 1 0 00:54 ? 00:00:00 /usr/bin/php-cgi -q -b localhost:9000
www-data 2722 2719 1 00:54 ? 00:00:08 /usr/bin/php-cgi -q -b localhost:9000
www-data 2723 2719 0 00:54 ? 00:00:04 /usr/bin/php-cgi -q -b localhost:9000
www-data 2724 2719 0 00:54 ? 00:00:03 /usr/bin/php-cgi -q -b localhost:9000
www-data 2725 2719 0 00:54 ? 00:00:03 /usr/bin/php-cgi -q -b localhost:9000
www-data 2726 2719 0 00:54 ? 00:00:02 /usr/bin/php-cgi -q -b localhost:9000
root 4120 2694 0 01:08 pts/0 00:00:00 grep php


I ran
update-rc.d init-fastcgi defaults

There is a symbolic link in the startup folder
Quote:
ls /etc/rc0.d -lthr | grep cgi
lrwxrwxrwx 1 root root 22 2009-12-17 00:39 K20init-fastcgi -> ../init.d/init-fastcgi


but I need to manually start it after a reboot. Any log I can check for this?

Cheers,
Moses.


Top
   
 Post subject:
PostPosted: Wed Dec 16, 2009 3:20 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
I like /etc/rc.local for making stuff start at boot which isn't under the control of my package manager. I leave /etc/init.d alone, for the most part.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Wed Dec 16, 2009 3:56 pm 
Offline
Senior Newbie

Joined: Mon Oct 12, 2009 10:13 am
Posts: 8
Website: http://www.alextambellini.com
I basically followed this guide exactly for nginx with fastcgi php on nginx and everything worked fine:

http://tomasz.sterna.tv/2009/04/php-fas ... on-ubuntu/


Top
   
 Post subject:
PostPosted: Thu Dec 17, 2009 5:52 pm 
Offline
Senior Member
User avatar

Joined: Tue Dec 01, 2009 10:31 pm
Posts: 57
Thanks Jed for that startup link, it's actually working now.

I've switched over to spawn-fcgi (wish I'd read atambo's link first) and it's been a lot more stable... though I now get this message popping up in my console several times a minute!

Quote:
sh: host: not found


It doesn't seem to affect anything, but damn if I know where it's coming from!


Top
   
 Post subject:
PostPosted: Thu Dec 17, 2009 6:01 pm 
Offline
Senior Newbie

Joined: Sun Nov 22, 2009 12:16 pm
Posts: 15
Had something like that error on my install.

Code:
apt-get install host


If I recall, something in your site is trying to do reverse lookups on domains. Install 'host' and the error goes away. Or disable anything doing a reverse lookup.


Top
   
 Post subject:
PostPosted: Thu Dec 17, 2009 6:26 pm 
Offline
Senior Member
User avatar

Joined: Tue Dec 01, 2009 10:31 pm
Posts: 57
saiboogu wrote:
Had something like that error on my install.

Code:
apt-get install host


If I recall, something in your site is trying to do reverse lookups on domains. Install 'host' and the error goes away. Or disable anything doing a reverse lookup.

Thanks saiboogu,
That fixed the host not found errors, and replaced them with "invalid query name 1" errors!

I googled this one and it led me to a conflict between that version of host and smf (simple machines forum). The solution was to install bind9-host, and the error has gone now so thanks for your help.


Top
   
 Post subject:
PostPosted: Thu Dec 17, 2009 11:04 pm 
Offline
Senior Newbie

Joined: Sun Nov 22, 2009 12:16 pm
Posts: 15
Moses wrote:
I googled this one and it led me to a conflict between that version of host and smf (simple machines forum). The solution was to install bind9-host, and the error has gone now so thanks for your help.


That explains why it was familiar, I'm also running SMF. :) Installing 'host' was enough to fix mine, guess we're dealing with different versions. Glad you could find it though.


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


Who is online

Users browsing this forum: No registered users and 3 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:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group