Re: [PHP] APC & FastCGI != upload progress ?

Igor Clark <igor-+wACT2lsjD7SUeElwK9/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel,gmane.spam.detected
Message-ID <[email protected]>
Hello Steve.

I've found that the mod_fastcgi code and Apache 2.x aren't  
particularly happy together, and there are process management issues.

Conversely I run PHP as a FastCGI server in several production  
environments with few or no problems and use APC on all of them with  
no trouble.

I've had PHP/FCGI communicating over TCP with Apache 2.2 & mod_fastcgi  
but only in a test envrionment; the config is confusing and seems a  
bit convoluted. There's some info at http://www.hilluzination.de/php-fastcgi/php-fastcgi.html#id2450887

These days however we use http://nginx.net/ pretty exclusively, for a  
number of reasons (including the performance gains over Apache),  
notably that the configuration is significantly more readable and  
seems to scale better than Apache's. The FastCGI support is also good.

Cheers,
Igor

On 30 Mar 2008, at 18:52, steve wrote:

> Hmmm... I am working on a PHP daemon for comet style connections...
> I'll keep that idea in mind. I guess that using Flash is best solution
> at the moment.. at least the only one I have working...
>
> I'm guessing that FastCGI is buffering the upload until complete. PHP
> docs might want to document that.
>
> FastCGI is also breaking Apache's deflate module, but that is  
> another issue...
>
> -s
>
> On Wed, Mar 26, 2008 at 6:35 PM, Jim Lucas <[email protected]> wrote:
>>
>> steve wrote:
>>> We can get upload progress to work with the APC extension for PHP
>>> 5.2.x only on machines that are not using FastCGI. (Apache2.2 if it
>>> matters).
>>>
>>> Does anyone have a suggestion where to look?
>>>
>>> Will it even be possible?
>>>
>>> Thanks in advance,
>>> -s
>>>
>>
>> I built a work around.  It requires you to run a PHP daemon.  It  
>> handles
>> the uploads and passes the information off how ever you want.  To a  
>> DB,
>> to the filesystem.  Your choice.  From that information, you can  
>> create
>> a progress meter.
>>
>> I haven't fleshed out all the bugs, but it seems to work like I  
>> want it
>> too at least.
>>
>> Jim Lucas
>>
> ___________________________________
> fastcgi-developers mailing list
> http://fastcgi.com/fastcgi-developers/

--
Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 5355  
• www.pokelondon.com



___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.