unable to restart spawn fcgi

hi all,

i have setup my linode follow the instruction using the spawn-fcgi

http://library.linode.com/web-servers/n … .10-karmic">http://library.linode.com/web-servers/nginx/php-fastcgi/ubuntu-9.10-karmic

now my node can serve php without problem, but i m unable to restart the fastcgi,when i try to initial /etc/init.d/php-fastcgi restart, i will be getting

php: no process found

spawn-fcgi: bind failed: Address already in use

can any one advice anything i need to fix ?

3 Replies

This is the same as the problem with my system.

The "problem" occures since the instances are running as a daemon, which means that they are not reachable for the command "kill" by the root.

If you start them manually you will see that the instances are listed in "ps x" and you are even able to kill them.

Fixing this is only possible by restarting your server - I think ;)

Paul

No, this doesn't seem right.

Check which name your php processes are running under:

ps -e | grep php

It may be php-cgi or something similar. Now sudo killall and start as normal via /etc/init.d/php-fastcgi. If there are no errors, edit the stop and restart cases in the init file to reflect the correct process name.

@paulengstler:

The "problem" occures since the instances are running as a daemon, which means that they are not reachable for the command "kill" by the root.

That makes no sense whatsoever, root can kill whatever it wants to.

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