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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC