You are here: Re: what is the pid when running php in FASTCGI server mode « PHP Programming Language « IT news, forums, messages
Re: what is the pid when running php in FASTCGI server mode

Posted by Steve on 10/05/07 21:28

"ebeard" <ecbearden@gmail.com> wrote in message
news:1191618297.730678.157670@o3g2000hsb.googlegroups.com...
>I have replaced apache with nginx and now run php in FASTCGI server
> mode like this:
>
> PHP_FCGI_CHILDREN=6 php -b 127.0.0.1:9086 -c /my/php/ini/path
>
> nginx reverse proxies to php and this works great!
>
> Now I want to monitor the php processes using monit but it requires a
> pid file. Here's the question. How do I generate these pid files? I
> would like them to be /var/run and be in the form of:
>
> php.9086.pid
>
>
> where the number is the port the php process is bound to.

the webserver is 'bound' to a port. php is a deferred application spun off
of the webserver.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация