php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #41060 php-cgi (FastCGI) should have an option to daemonize
Submitted: 2007-04-12 01:14 UTC Modified: 2012-02-26 07:52 UTC
From: e at osterman dot com Assigned: stas (profile)
Status: Closed Package: CGI/CLI related
PHP Version: 5.2.1 OS: Fedora 6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: e at osterman dot com
New email:
PHP Version: OS:

 

 [2007-04-12 01:14 UTC] e at osterman dot com
Description:
------------
It would be great if in addition to -b, there was a flag to daemonize. Granted, this is possible with shell scripting, it seems that it's more appropriate if php-cgi supported this by itself. Then it could truely be a standalone PHP FastCGI server.


The ugly shell version of daemonizing...

(/usr/bin/nohup env - PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS /usr/bin/php-cgi -b 0.0.0.0:1234 < /dev/null 2> /dev/null 1> /dev/null )&



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:05 UTC] jani@php.net
-Package: Feature/Change Request +Package: CGI related
 [2012-02-26 07:52 UTC] stas@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: stas
 [2012-02-26 07:52 UTC] stas@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Try PHP-FPM: http://us.php.net/manual/en/install.fpm.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 31 16:00:03 2025 UTC