php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36943 SCGI support
Submitted: 2006-04-01 19:57 UTC Modified: 2018-07-08 14:06 UTC
Votes:7
Avg. Score:4.3 ± 1.2
Reproduced:6 of 6 (100.0%)
Same Version:1 (16.7%)
Same OS:1 (16.7%)
From: webstorm at netcourrier dot com Assigned:
Status: Suspended Package: Other web server
PHP Version: 5.1.2 OS: Windows
Private report: No CVE-ID: None
 [2006-04-01 19:57 UTC] webstorm at netcourrier dot com
Description:
------------
SCGI doesn't seems to be supported by PHP.

Running PHP as CGI is slow, and using PHP as Apache module is not an option as I'm develloping a web server using Java.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-01 20:05 UTC] tony2001@php.net
PHP also supports FastCGI or it's not enough for Java web-server?
 [2006-04-01 20:55 UTC] scottmacvicar at ntlworld dot com
It's just another FastCGI type protocol but far easier to implement, see http://python.ca/nas/scgi/protocol.txt for the spec.

Creating a SCGI API would be fairly straight forward.
 [2006-04-02 14:04 UTC] webstorm at netcourrier dot com
I tried to use FastCGI but I have 2 problems :
  1) I didn't found the FastCGI binaries, do i need to recompile source (i'm using Windows) ?
  2) According to the FastCGI specification, when the FastCGI is started, the web server have to pass the handle (file number) of the opened socket to the FastCGI. How can this be done with Java ?
 [2007-09-23 08:43 UTC] js at iksz dot hu
SCGI is supported by Apache, FastCGI is not.  Go ahead.
 [2010-03-15 18:14 UTC] peter_jones_jr at yahoo dot com
Please discuss this on the PHP mailing list before sending feature requests.

PHP should not support each and every protocol out there, especially if it has NO advantage over FastCGI. From the "spec":

"When the SCGI server sees the end of the request it sends back a response and closes the connection. The format of the response is not specified by this protocol."

This "protocol spec" doesn't make any sense to me. 

Note that there are several Java FastCGI servlets available, so there's no need to add more complexity to the PHP core.
 [2010-03-15 18:17 UTC] pajoye@php.net
-Package: Feature/Change Request +Package: *General Issues
 [2010-03-15 18:17 UTC] pajoye@php.net
> SCGI is supported by Apache, FastCGI is not.  Go ahead.

FastCGI is actually supported by apache and next versions should have it included.
 [2010-03-15 18:18 UTC] pajoye@php.net
-Package: *General Issues +Package: *Web Server problem
 [2010-03-16 12:49 UTC] jani@php.net
-Package: *Web Server problem +Package: Other web server
 [2013-09-22 20:12 UTC] a at b dot com
Fast-CGI ties up the CGI until the request is handled.  SCGI allows multiple requests to be concurrently handled by a single CGI.  This matters if handling one request has significant latency.

Apache 2.5 does not support fast-cgi out of the box and I think mod_proxy_fastcgi has fallen prey to bitrot; I could not make it compile.
 [2018-07-08 14:06 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2018-07-08 14:06 UTC] cmb@php.net
Anyhow, this clearly requires discussion on the internals@ mailing
list, and likely the RFC process.  For the time being, I'm
suspending this ticket.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 18 19:01:28 2024 UTC