Re: [Mod-fcgid-users] apache2-mpm-itk different php versions per user php.ini / mod_fcgid

2013-02-22 Thread Josiah Purtlebaugh
No promises this will work as I am not a maintainer nor developer of mod_fcgid, but I have prepared a patch for you that should achieve the same effect. I'm not able to test compilation with mpm-itk (mainly because I'm not sure which package you're using), but it compiles cleanly without mpm-itk

Re: [Mod-fcgid-users] apache2-mpm-itk different php versions per user php.ini / mod_fcgid

2013-02-22 Thread mrg
Thanks, but it does not work: srwx-- 1 wwwrun wwwrun 0 23. Feb 02:26 10055.6 error_log: (13)Permission denied: mod_fcgid: can't lock process table in pid patch and compile without error greets martin Von: Josiah Purtlebaugh [mailto:josiah.purtleba...@gmail.com]

Re: [Mod-fcgid-users] apache2-mpm-itk different php versions per user php.ini / mod_fcgid

2013-02-22 Thread Josiah Purtlebaugh
I'm sorry, I should have considered that an unprivileged user would be unable to change ownership of an existing socket created with a different uid. I'll have to consider further what additional changes might be necessary. Josiah On Feb 22, 2013 5:34 PM, m...@unimx.de wrote: Thanks, but it

Re: [Mod-fcgid-users] apache2-mpm-itk different php versions per user php.ini / mod_fcgid

2013-02-22 Thread mrg
We test: /* Correct the file owner */ if (!geteuid()) { //#if defined(MPM_ITK) //if (chown(unix_addr.sun_path, procnode-uid, -1) 0) { if (chown(unix_addr.sun_path, web589, -1) 0) { //#else //if (chown(unix_addr.sun_path, ap_unixd_config.user_id, -1) 0)

Re: [Mod-fcgid-users] apache2-mpm-itk different php versions per user php.ini / mod_fcgid

2013-02-22 Thread Josiah Purtlebaugh
Right. The Unix socket is already owned by wwwrun and the chown is being executed by a different uid, I think. We need to enforce not only the chown but also the creation of the socket. It will be in another function. Josiah On Feb 22, 2013 5:48 PM, m...@unimx.de wrote: We test: ** **

Re: [Mod-fcgid-users] apache2-mpm-itk different php versions per user php.ini / mod_fcgid

2013-02-22 Thread mrg
Yes the socket -i think- is created by apache with user root, only the child get wwwrun and his child with mpm-itk get f.e. web589 So if we find the function create the socket, there it have to be created with the user of mpm-itk. May at this time the user is unknown. May it is possible

[Mod-fcgid-users] apache2-mpm-itk different php versions per user php.ini / mod_fcgid

2013-02-21 Thread m...@unimx.de
Hello Group, the problem using ITK+mod_fcgid is the fcgid socket. the socket is owned by wwwuser (wwwrun / www-data) of apache. ITK set vhost to user1, so fcgid says: Permission denied: mod_fcgid: can't lock process table in pid socket dir: srwx-- 1 wwwrun wwwrun 0 21. Feb 14:11

Re: [Mod-fcgid-users] [newbie] Delay after editing script?

2012-10-24 Thread Gilles
On Mon, 1 Oct 2012 09:08:39 +0600, Anton Khalikov an...@khalikov.ru wrote: ps aux | grep fcgi returns nothing. Can it run under a different name? You need to run ps axu | grep $(id -un) instead Thank you. -- Everyone

Re: [Mod-fcgid-users] [newbie] Delay after editing script?

2012-09-30 Thread Gilles
On Sat, 29 Sep 2012 11:41:06 -0700, Josiah Purtlebaugh josiah.purtleba...@gmail.com wrote: Sure Anton, assuming that the mod_fcgid process is running as the same user that he has shell access as. ps aux | grep fcgi returns nothing. Can it run under a different name?

Re: [Mod-fcgid-users] [newbie] Delay after editing script?

2012-09-30 Thread Anton Khalikov
ps aux | grep fcgi returns nothing. Can it run under a different name? You need to run ps axu | grep $(id -un) instead -- Best regards Anton Khalikov -- Got visibility? Most devs has no idea what their production app

Re: [Mod-fcgid-users] [newbie] Delay after editing script?

2012-09-29 Thread Anton Khalikov
Unfortunately, without access to the mod_fcgid configuration you are at the mercy of the timeout or max requests variables defined by the administrator. That is why it appears to take so long for your scripts to update. This is not exactly true. If you have an access to server's shell via ssh

[Mod-fcgid-users] [newbie] Delay after editing script?

2012-09-28 Thread Gilles
Hello I'm only getting started with FCGI to run Python web applications. On a shared host with Apache + mod_fcgid + the Flup FastCGI server that takes care of translating between FastCGI and WSGI, I noticed that there's a several minute delay between when I edit a script and when the change

Re: [Mod-fcgid-users] [newbie] Delay after editing script?

2012-09-28 Thread Josiah Purtlebaugh
Hello Gilles, Are you familiar with how mod_fcgid executes scripts? Basically, the executable is run and stays in memory so that it can serve any future requests without forking additional processes per request. Once the process reaches the timeout defined in the mod_fcgid configuration (or the

Re: [Mod-fcgid-users] [newbie] Delay after editing script?

2012-09-28 Thread Gilles
On Fri, 28 Sep 2012 16:56:39 -0700, Josiah Purtlebaugh josiah.purtleba...@gmail.com wrote: Unfortunately, without access to the mod_fcgid configuration you are at the mercy of the timeout or max requests variables defined by the administrator. That is why it appears to take so long for your

Re: [Mod-fcgid-users] Spawning explanation

2012-08-02 Thread ecommy . com
Exact Oliver, I have the exact same issue, have you managed to solve the problem? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed

[Mod-fcgid-users] uploadprogress working with mod_fcgid?

2011-08-22 Thread sunfire
Hi, how can i get uploadprogress (http://pecl.php.net/package/uploadprogress) working with mod_fcgid? The progress bar gets no progress update. Anyone the same problem? Best regards sunfire -- uberSVN's rich system

Re: [Mod-fcgid-users] uploadprogress working with mod_fcgid?

2011-08-22 Thread sunfire
Josiah Purtlebaugh josiah.purtlebaugh at gmail.com writes: Hello, From the page you linked: It is only known to work on Apache with mod_php, other SAPI implementations unfortunately still have issues. At least PHP 5.2 is needed. mod_php and mod_fcgid are fundamentally different; as

Re: [Mod-fcgid-users] Connection timed out: mod_fcgid:ap_pass_brigade failed in handle_request_ipc function

2011-06-06 Thread Mike Sayre
Walter Heck walterheck at gmail.com writes: Hi list, I'm running:  [09-02-11 15:07:09] [root at server02.yomamma.com] [~] # dpkg -l | egrep '{fcgi|php|apache|http}' ii  apache2                             2.2.16-4~bpo50+1            Apache HTTP Server metapackage ii  

Re: [Mod-fcgid-users] problems with fcgid + suexec + userdir

2011-05-18 Thread Bryan White
What do you mean by RAM is almost full. Under normal usage the OS will allocate most RAM not used by active processes to disk cache leaving only a small amount free. What is the load average and CPU idle percent when it gets bogged down. Are your apps using a lot of disk resources? What is the

Re: [Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-22 Thread Liam O'Boyle
Hi Josiah, There was a strace snippet in the linked serverfault page, as follows root@some-machine:~# strace -p 24837 Process 24837 attached - interrupt to quit write(3, \5|A\313%\35\337\376\275\237\230\266\242\371\37YjzD\322\215\357\336:M\362P\335\242\214\341..., 17432 Just hanging on that,

Re: [Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-22 Thread Josiah Purtlebaugh
Liam, Someone else commented that you should increase the value of your IPCCommTimeout setting; I'd recommend this as well, though I have to ask, as these uploads taking multiple minutes to complete or do they hang fairly quickly? Josiah Purtlebaugh josiah.purtleba...@gmail.com +1 253 797

Re: [Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-22 Thread Liam O'Boyle
Morning, They hang whenever interrupted; if a download would have taken 2 seconds and I cancel it, then the PHP process will hang until the timeout is reached; the same behaviour is observed with files of all sizes. Liam On Wed, Feb 23, 2011 at 9:46 AM, Josiah Purtlebaugh

[Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-21 Thread Liam O'Boyle
Morning, I still haven't had any luck addressing this problem; I'm posting this in the hope that someone has some sort of idea, otherwise I will have to scrap mod_fcgid and revert to mod_php this evening, as this is causing considerable problems for our users. Thanks for any assistance, Liam

Re: [Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-21 Thread Josiah Purtlebaugh
I don't have any solutions for you, but I'd recommend trying to discover where or why it's hanging. The tool 'strace' would be most useful in figuring this out. The ideas that come to mind off the top of my head are problems with file size, the memory of the child processes, or something like

Re: [Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-21 Thread Noor
Hi Liam, Try adding this to the VirtualHost configuration for the intended website: IPCCommTimeout 300 In addition, I'd recommend starting with a bare-bones Apache (without any additional 3rd party module, like Suhosin and others) and then activating only FastCGI with PHP. Best is when you

[Mod-fcgid-users] Connection timed out: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

2011-02-09 Thread Walter Heck
Hi list, I'm running: [09-02-11 15:07:09] [r...@server02.yomamma.com] [~] # dpkg -l | egrep '{fcgi|php|apache|http}' ii apache2 2.2.16-4~bpo50+1Apache HTTP Server metapackage ii apache2-mpm-worker 2.2.16-4~bpo50+1Apache HTTP

[Mod-fcgid-users] mod_fcgid with php CGI hangs on interrupted downloads

2011-02-07 Thread Liam O'Boyle
Hi there, I'm having an issue with downloads through PHP when using mod_fcgid; if the download is interrupted before it's complete, the php-cgi process seems to block until the execution timeout is reached, rather than aborting immediately. Further requests to the server by the same user that

Re: [Mod-fcgid-users] Premature end of script headers, p_pass_brigade failed and others...

2010-10-29 Thread Julien Jabouin
So, in my apache error_log i have often : mod_fcgid: can't apply process slot for /home/site1/www/index.php Any idea ? Thanks 2010/10/29 Julien Jabouin chatlumo@gmail.com: Hello, I update mod_fcgid to the last stable version 2.3.5 and i added FcgidMaxRequestsPerProcess 1000 and comment

Re: [Mod-fcgid-users] Premature end of script headers, p_pass_brigade failed and others...

2010-09-25 Thread Julien Jabouin
Thanks, I go to try this. 2010/9/25 Travers Carter tcar...@noggin.com.au: Hi, I'm not sure if this is the exact cause of your problem, but a few config changes I would try are below: On Sat, 25 Sep 2010 04:11:18 +0200, Julien Jabouin chatlumo@gmail.com wrote: #cat

[Mod-fcgid-users] Premature end of script headers, p_pass_brigade failed and others...

2010-09-24 Thread Julien Jabouin
Hello, From few days, i have an issue with mod_fcgi (?). For one url which is good, sometimes i can acces to it, sometimes not. When it's not, sometimes i have an error in the browser web or sometimes, the webpage is partially shown. So this is an extract of my apache log : [Fri Sep 24 16:57:05

[Mod-fcgid-users] Cryptic warning with mod_fcgid

2010-09-08 Thread Walter Heck
Hi Guys, I'm seeing this in my logs: [Tue Sep 07 23:24:43 2010] [warn] [client 59.167.223.XXX] mod_fcgid: stderr: 2 = '9ce34f1f91ed9b4031f7fd9490a3d in /var/www/virtual/tribily.com/htdocs/piwik/core/Tracker/Db/Pdo/Mysql.php on line 178, referer: http://tribily.com/ The code of that php looks

Re: [Mod-fcgid-users] Cryptic warning with mod_fcgid

2010-09-08 Thread ikrabbe.ask
On Wed, Sep 08, 2010 at 03:35:44PM +0800, Walter Heck wrote: Hi Guys, I'm seeing this in my logs: [Tue Sep 07 23:24:43 2010] [warn] [client 59.167.223.XXX] mod_fcgid: stderr: 2 = '9ce34f1f91ed9b4031f7fd9490a3d in /var/www/virtual/tribily.com/htdocs/piwik/core/Tracker/Db/Pdo/Mysql.php

Re: [Mod-fcgid-users] auto_prepend_file not working

2010-09-01 Thread Marc Aymerich
On Fri, Aug 27, 2010 at 8:16 PM, Tears ! unix...@gmail.com wrote: Dear Users, I am facing strange problem regarding (php value auto_prepend_file) with mod_fcgid. through .htaccess This is the error [Fri Aug 27 18:12:50 2010] [error] [client 119.158.109.31] PHP Warning: Unknown: failed to

[Mod-fcgid-users] strang problem with mod_fcgid

2010-08-29 Thread Tears !
Dear Users, I am facing strange problem with mod_fcgid while using mod_rewrite. Here is my rewrite rule. *RewriteRule ^/.*-jobs-apply-(\d+) /imran.php [L]* When i am trying to access http://www.mysite.org/netadmin30-jobs-apply-293 Its not working. *Here is the rewrite log* 119.158.119.130 -

[Mod-fcgid-users] auto_prepend_file not working

2010-08-27 Thread Tears !
Dear Users, I am facing strange problem regarding (php value auto_prepend_file) with mod_fcgid. through .htaccess This is the error [Fri Aug 27 18:12:50 2010] [error] [client 119.158.109.31] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 [Fri Aug 27

[Mod-fcgid-users] auto_prepend issue please help

2010-08-24 Thread Tears !
Dear users I am already using mod_php in my apache server. Now I have configured mod_fcgid. I have configured different .php file as auto_preped for my virtualhost. But php_value auto_prepend not working through mod_fcgid, Would you please help me how i can solve this issue. VirtualHost *:80

Re: [Mod-fcgid-users] auto_prepend issue please help

2010-08-24 Thread Martin Korous
Hello, php_value is only for php running as an apache module. Martin Korous Tears ! wrote: Dear users I am already using mod_php in my apache server. Now I have configured mod_fcgid. I have configured different .php file as auto_preped for my virtualhost. But php_value auto_prepend not

Re: [Mod-fcgid-users] auto_prepend issue please help

2010-08-24 Thread Tears !
Dear Martin, Then what is the other way ? Regards, Umar On Tue, Aug 24, 2010 at 5:57 PM, Martin Korous kor...@thinline.cz wrote: Hello, php_value is only for php running as an apache module. Martin Korous Tears ! wrote: Dear users I am already using mod_php in my apache server.

Re: [Mod-fcgid-users] 一个关于权限的问题

2009-10-31 Thread 张沈鹏
[Sat Oct 31 20:29:37 2009] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Sat Oct 31 20:29:37 2009] [error] [client 127.0.0.1] Premature end of script headers: zpyweb.fcgi 貌似是suexec的问题,一旦加上了suexec就有这问题 怎么解决呢,原来升级前是好的

[Mod-fcgid-users] 一个关于权限的问题

2009-10-30 Thread 张沈鹏
原来用的是debian的state版本,一切正常,然后今天升级到了unstate Zues:/var/log/apache2# apache2 -v Server version: Apache/2.2.14 (Debian) Server built: Sep 29 2009 19:41:44 Package: libapache2-mod-fcgid State: installed Automatically installed: no Version: 1:2.2-1 Priority: optional Section: httpd Maintainer: Tatsuki

[Mod-fcgid-users] ap_pass_brigade

2009-10-13 Thread double
Hello, We have tons of this error message in our logfile: Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function It seams, that this happens when the client cancels the connection: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537922 Thanks Marcus

Re: [Mod-fcgid-users] mod_fcgid has moved to the ASF

2009-10-09 Thread double
Chris Darroch schrieb: See the CHANGES-FCGID file in the distribution, or look at http://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk/CHANGES-FCGID for the latest trunk info. Chris. Hi Chris, The reason, why we still stick to mod_fastcgi is the upload behaviour. We support uploads

[Mod-fcgid-users] mod_fcgid now is a part of Apache httpd, this maillist is shutting down

2009-09-27 Thread pqf
Hi, guys mod_fcgid now is a part of Apache httpd, and the new home page is: http://httpd.apache.org/mod_fcgid/ Discussions of mod_fcgid take place on the main HTTPD development mailing list. * d...@httpd.apache.org - development (archives). * c...@httpd.apache.org - svn commit

Re: [Mod-fcgid-users] mod_fcgid has moved to the ASF

2009-09-18 Thread Chris Darroch
double wrote: Hi Chris, Great! Is there a what's new available? Thanks Marcus See the CHANGES-FCGID file in the distribution, or look at http://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk/CHANGES-FCGID for the latest trunk info. Chris. -- GPG Key ID: 366A375B GPG Key

Re: [Mod-fcgid-users] mod_fcgid has moved to the ASF

2009-09-18 Thread PGNet Dev
hi, On Fri, Sep 18, 2009 at 2:33 PM, Chris Darroch chr...@pearsoncmg.com wrote:   See the CHANGES-FCGID file in the distribution, or look at http://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk/CHANGES-FCGID for the latest trunk info. i've built .../trunk against 2.2.13 sources. it's

[Mod-fcgid-users] Problem serving binary content with Apache 2.2.13 - PHP 5.3.0 - mod_fcgid 2.2

2009-09-10 Thread Marcus Merz
Hi, i ran into a problem with mod_fcgid and i wonder whether anybody can replicate my problem. There is also a bug report in here: http://sourceforge.net/tracker/?func=detailaid=2854396group_id=174879atid=870991 Since i wrote the bug report, i did update to Apache 2.2.13, PHP 5.3.0 and

Re: [Mod-fcgid-users] Weird behavior or what?

2009-08-25 Thread Ivan Voras
2009/8/19 Noor mlist-fc...@orientalsensation.com: tldr; According to these findings, the best benchmark is when MaxProcessCount is set to 8 (which is number of CPU's). Is this just an accident? According to so many tips and pages I read on the No. In general, a thread-pool design, which is

Re: [Mod-fcgid-users] Yet more weird results...

2009-08-21 Thread Piotr Gackiewicz
On Thu, 20 Aug 2009, Noor wrote: According to the results, setting a top of 8 processes for the FastCGI-launched php-cgi process would achieve a remarkable boost in performance. Even better than setting 100 processes, and each equipped with an eAccelerator opcode. Hi, Were these 100 php

[Mod-fcgid-users] Yet more weird results...

2009-08-20 Thread Noor
Hello list, On a previous post (http://sourceforge.net/mailarchive/message.php?msg_name=d5fcc4ff0908191445x18dbadd8rdad145aa4e0c1c1f%40mail.gmail.com), I've reported weird statistics after runnning siege on a heavy PHP application. Those tests were done on localhost and were blazing-fast even for

[Mod-fcgid-users] Weird behavior or what?

2009-08-19 Thread Noor
Hello list. (I hope I'm posting to the right mailing list. If not, then I apologize already and ask you to direct me to the right list. Thanks!) I've setup the following configuration on a Dell 2940 2 x Quad-Core with 4GB RAM: - FreeBSD 7.2-STABLE amd64 bit. Kernel recompiled with minimal

Re: [Mod-fcgid-users] Weird behavior or what?

2009-08-19 Thread Jason
Way too involved of a question for this list :) I'd suspect that your application is fairly heavy judging from avg response times and that if you ran it from a script without involving fastcgi or apache you'd see similar throughput. On Wed, Aug 19, 2009 at 2:45 PM, Noor

Re: [Mod-fcgid-users] Weird behavior or what?

2009-08-19 Thread Olivier B.
Travers Carter a écrit : On Thu, 20 Aug 2009 00:45:36 +0300, Noor mlist-fc...@orientalsensation.com wrote: And while you're at it, I'll through in another question: How does eAccelerator/FastCGI manage the shared memory segments? According to eAccelerator's homepage, it'll share such

Re: [Mod-fcgid-users] mod_fcgi and Digest Authorization

2009-07-21 Thread double
Janis Volbergs schrieb: Hi! Mod_fcgid is a nice substitute for mod_fastcgi, however, it really fails, when we talk about FastCgiAuthentication or AccessChecking. It just won't work.. We had interesting protection engine built and enabled using mod_fastcgi and it worked fine. With

[Mod-fcgid-users] mod_fcgi error: Premature end of script headers

2009-05-11 Thread Christian Rishøj
Hi, Since switching to mod_fcgid, our production server periodically throws a 500-error when handling a PHP-backed request. The Apache error log shows: [Mon May 11 11:26:40 2009] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Mon May 11 11:26:40

[Mod-fcgid-users] no headers sent

2009-04-29 Thread Martin Korous
Hello, I have problem with php5.2.9 and fcgid2.2 on 64bit sytem no headers sent if output is blank. I have described it more in php bugzilla already: http://bugs.php.net/bug.php?id=48041 Can anyone reproduce it too? Regards Martin Korous

Re: [Mod-fcgid-users] Parse POST data

2009-03-13 Thread Ivan Voras
2009/3/13 double nin...@gmx.at: Hello, If I am uploading a video to a mod-fcgid server, the POST data is collected and submitted to the fastcgi-application in bulk. Is there any chance to configure mod-fcgid, so that the application can read from stdin what is already uploaded? I want to

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Max Dittrich
Olivier B. wrote: Yes, but in that case why PHP forks ? children will never be used !? AFAIK (?) mod_fcgid can't multiplex multiple request on one fcgi-socket. The fcgi-connection is 1:1 (http request -- fcgi connection) and can't be shared across childs/threads of apache. .max

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Filip Hajny
On 28.2.2009, at 12:10, Max Dittrich wrote: Olivier B. wrote: Yes, but in that case why PHP forks ? children will never be used !? AFAIK (?) mod_fcgid can't multiplex multiple request on one fcgi- socket. The fcgi-connection is 1:1 (http request -- fcgi connection) and can't be shared

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Olivier B.
Max Dittrich a écrit : AFAIK (?) mod_fcgid can't multiplex multiple request on one fcgi-socket. The fcgi-connection is 1:1 (http request -- fcgi connection) and can't be shared across childs/threads of apache. .max Ok, it is what I see too. Thanks. Filip Hajny a écrit : PHP forks

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Olivier B.
So, I simply read the file sapi/cgi/README.FastCGI in the PHP source. If I well understand, this feature is usefull when you run directly PHP as the fcgi daemon. I have the end of my explanation, thanks and sorry for noise ;) Olivier Olivier B. a écrit : Max Dittrich a écrit : AFAIK (?)

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Filip Hajny
On 28.2.2009, at 15:24, Olivier B. wrote: So, I simply read the file sapi/cgi/README.FastCGI in the PHP source. If I well understand, this feature is usefull when you run directly PHP as the fcgi daemon. It's also useful when you want memory shared among the PHP processes (e.g. for

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Olivier B.
Yes I was thinking that but what is the interest to share memory between processes which never run simultaneously ? Olivier Filip Hajny a écrit : On 28.2.2009, at 15:24, Olivier B. wrote: So, I simply read the file sapi/cgi/README.FastCGI in the PHP source. If I well understand, this

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Filip Hajny
On 28.2.2009, at 17:05, Olivier B. wrote: Yes I was thinking that but what is the interest to share memory between processes which never run simultaneously ? They do. If you let PHP spawn them, they all start right away, and keep running until you kill them. They are not killed when idle

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Filip Hajny
On 28.2.2009, at 17:27, Olivier B. wrote: my first question was about that : it seems that fcgid will _never_ use this concurrent PHP instances. If there is 2 concurrent access, fcgid will spawn an other group of PHP to handle that, it will not use the first group of php instance which

Re: [Mod-fcgid-users] Spawning explanation

2009-02-28 Thread Olivier B.
Filip Hajny a écrit : Yes, well, my point was... if you care about shared memory, then constrain mod_fcgid to a single PHP process only, let the PHP process fork its own children and hope they will be able to process all requests before mod_fcgid considers the single process busy and you

Re: [Mod-fcgid-users] Spawning explanation

2009-02-27 Thread Olivier B.
Yes, but in that case why PHP forks ? children will never be used !? Olivier Ivan Voras a écrit : 2009/2/27 Olivier B. fcgid.l...@daevel.fr: The DefaultMaxClassProcessCount is reached, but why fcgid try have launched 4 process ? Just one or two should be sufficient in the case of five

[Mod-fcgid-users] Spawning explanation

2009-02-26 Thread Olivier B.
Hello, I use mod-fcgid 2.2 with Apache 2.2.9 (worker), and php 5.2.6 on a Debian Lenny 64bits. My fcgid conf (for tests) : MaxProcessCount 32 DefaultMaxClassProcessCount 4 DefaultMinClassProcessCount 2 the PHP wrapper : #!/bin/dash export PHP_FCGI_CHILDREN=5 export

[Mod-fcgid-users] listen on ip address?

2009-01-07 Thread Brian Grossman
How can I run the fcgi on one machine, and display it on another? For example, with the fastcgi module I could use: FastCgiServer /path/to/exe -port 33666 and FastCgiExternalServer /blah -host hostname:33666 I don't see the equivalent of either client or server in the docs. If it truly doesn't

Re: [Mod-fcgid-users] mod_fcgid on FreeBSD amd64

2008-09-09 Thread Ivan Voras
2008/9/7 Richard Tector [EMAIL PROTECTED]: I'm having problems on FreeBSD 7.0 amd64 with mod_fcgid 2.2. I can reproduce the problem on 3 different amd64 based machines. One with apache 2.0.51 and the others with apache 2.2.9. Apache fails to start with: [Sun Sep 07 16:29:17 2008] [emerg]

[Mod-fcgid-users] Do virtual hosts have to be separated into classes?

2008-08-06 Thread Nick Loman
Hi there, I have a fixed ceiling of PHP processes, but multiple virtual hosts. As I understand it, PHP processes are allocated to a class based on virtualhost the request comes from. Is there a way of putting all PHP requests from any virtual host into the same class? I.e. I want to have a

[Mod-fcgid-users] Overriding DefaultMaxClassProcessCount in vhost config

2008-07-21 Thread Brad Plant
Hi list, I have set DefaultMaxClassProcessCount to 10 globally in my httpd.conf to restrict each vhost to running to more than 10 php processes. I would like to increase this setting for a couple vhosts, but when I put DefaultMaxClassProcessCount in a vhost, it seems to have no effect. I.e. I

Re: [Mod-fcgid-users] Limit maximum number of processes

2008-07-15 Thread Gabriel Barazer
Hi On 07/15/2008 5:45:54 PM +0200, Ron [EMAIL PROTECTED] wrote: IdleTimeout 10 IdleScanInterval 5 MaxProcessCount 0 DefaultMaxClassProcessCount 1 SpawnScoreUpLimit 0 Setting values to 0 cannot make mod_fcgid behave as expected. More on this

[Mod-fcgid-users] Authorizer vs. Responder role.

2008-07-13 Thread Bryan White
I have been using mod_fastcgi for years. The apps are all C++ with my own code for handling the fastcgi socket. Today I was experimenting with with using mod_fcgid instead with an eye toward comparing performance. For the most part it worked straight away. However I have one problem. Some

[Mod-fcgid-users] basic authentication in php is not passed through mod_fcgid

2008-07-11 Thread Wolfgang Hennerbichler
Hi people, I have an application that I'd like to switch to mod_fcgid, but unfortunately it doesn't work as I wanted it to. the (php) application uses basic authentication (not in apache but in php) but the entered information is definitely not sent down to the application with mod_fcgid.

Re: [Mod-fcgid-users] basic authentication in php is not passed through mod_fcgid

2008-07-11 Thread Christian Seiler
Hi, I compile my server binaries and never rely on pre-compiled versions; I _never_ imagined using Apache without suexec which IMHO is a complete nonsense and should be a default behavior. Finally I never imagined running any virtualhost with the Apache user. That way, running Apache

[Mod-fcgid-users] mod_fcgid APR 1.3 and restart fixes

2008-07-06 Thread Steffen
We have now 2 versions of mod-fcgid at the Apache Lounge available. Both containing patches to the CVS source mod_fcgid-2.2a-w32.zip (for Apapache 2.2.0 - 2.2.8, works only with APR 1.2.x) Contains a Restart fix. Mod_fcgid was preventing a gracefull restart and shutdown of Apache.

[Mod-fcgid-users] Fwd: Re: DESPERATE need for help with suexec. (php-cgi wrapper 'saying no input file')

2008-06-23 Thread Jos Ewert
Hi, Yes this is working on 2.2 , I cant find out why it shouldn't work . how does your new SuexecStripBase config look like? Its still declared like SuexecUserGroup, so it needs 2 variables which are send to *set_uname(cmd_parms *cmd, void *dummy, const char *uid, const char *gid) in the last

Re: [Mod-fcgid-users] DESPERATE need for help with suexec. (php-cgi wrapper 'saying no input file')

2008-06-17 Thread Anton - Valqk
Oky, so far, so good, mod_fcgid is passing the path to the php(or any other script/bin) it's trying to run and php searches in the wrong path, because in suexec I strip out the CHROOTBASE path. I'll have to patch mod_fcgid with the same striping code so the path to the command being run is the

[Mod-fcgid-users] DESPERATE need for help with suexec. (php-cgi wrapper 'saying no input file')

2008-06-16 Thread Anton - Valqk
Hi group, I'm trying to run mod_fcgid with custom suexec and fcgiwrapper. I have it running without the suexec, but when I get to this point I'm stuck, debugging for over a week. The main problem is that if I run mod_fcgid with original apache suexec it works, as expected, If I'm using _custom_

Re: [Mod-fcgid-users] DESPERATE need for help with suexec. (php-cgi wrapper 'saying no input file')

2008-06-16 Thread Alli Quaknaa
Well, if you're really desperate, I have a solution with mod_php and mod_ruid, but I don't know if it realyl does what you want. It does no chroot, but it does change uid/gid. What specifically are you looking for? Sorry, but doN expect any help regarding suexec modification from me, I have no

Re: [Mod-fcgid-users] DESPERATE need for help with suexec. (php-cgi wrapper 'saying no input file')

2008-06-16 Thread Starhost - Noël Elsten
I'm running mod_fcgid on freebsd and it is working fine. Here you find my apache config files and the way suexec is build. IfModule fcgid_module # Set config options for FCGID PHP_Fix_Pathinfo_Enable 1 PASSHEADER AUTHORIZATION MaxRequestsPerProcess 500

Re: [Mod-fcgid-users] mod_fcgid, php-fcgi and PHPRC

2008-06-13 Thread Tobias Wiersch
Hi Igor, Igor R. schrieb: But I don't want to make a new wrapper and change PHPRC variable after each new user creation. I patched suexec to do this (to get rid of the wrapper-script). My suexec is allowed to only call the php-exe and nothing else. In addition, I put in PHPRC and

Re: [Mod-fcgid-users] mod_fcgid, php-fcgi and PHPRC

2008-06-13 Thread Igor R.
Hi All, Thanks to all who responded regarding my issue. I solved it with the help of writting the wrapper with the following content: #!/bin/bash USER=`id -un` export HOME=`/usr/sbin/pw user show $USER | awk -F : '{print $9}'` export PHPRC=$HOME/public_html/php.ini export PHP_FCGI_CHILDREN=0

Re: [Mod-fcgid-users] mod_fcgid, php-fcgi and PHPRC

2008-06-12 Thread [EMAIL PROTECTED]
On Wed, 11 Jun 2008 18:44:15 +0300 Igor R. [EMAIL PROTECTED] wrote: Hello All, Havng read a lot of articles about FastCGI, I decided to use this module to speed up processing of php and RoR applications. I use CPanel as a hosting panel. And I use Apache with suexec support as a web

[Mod-fcgid-users] mod_fcgid, php-fcgi and PHPRC

2008-06-11 Thread Igor R.
Hello All, Havng read a lot of articles about FastCGI, I decided to use this module to speed up processing of php and RoR applications. I use CPanel as a hosting panel. And I use Apache with suexec support as a web server. After compilling apache php and mod_fcgid I faced the problem of

[Mod-fcgid-users] Apache consuming all available memory

2008-06-04 Thread Frank Costanza
Several people in the past have reported problems with large uploads and Apache consumimg all available memory. Although it is claimed that MaxRequestInMem and MaxRequestLen introduced in mod_fcgid 2.2 can be used to overcome this memory consumption problem, it appears that it does not work as

[Mod-fcgid-users] Difficulty compiling mod-fcgid on centos 5

2008-06-04 Thread Andrew White
Hi, I'm having a difficult time compiling mod-fcgid. My Make file is this: # # Makefile for Apache2 # builddir = . top_dir = /usr/lib/httpd top_srcdir = ${top_dir} top_builddir = ${top_dir} VPATH = arch/unix/ #include ${top_builddir}/build/special.mk include

Re: [Mod-fcgid-users] Difficulty compiling mod-fcgid on centos 5

2008-06-04 Thread Andrew White
Wonderful, that link did the trick!! -Original Message- From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Wed 6/4/2008 1:06 PM To: mod-fcgid-users@lists.sourceforge.net Subject: Re: [Mod-fcgid-users] Difficulty compiling mod-fcgid on centos 5 On Wed, 4 Jun 2008 13:16:37

[Mod-fcgid-users] problems with graceful restarts and mod_fcgid

2008-04-24 Thread Stefan Priebe - allied internet ag
Hello! We've many problems with mod_fcgid and graceful restarts. Often it happens, that some fcgi processes are left while a graceful restart is done. These processes got never killed until i stop the apache. In case of such a graceful restart - the error.log shows up the following: [Wed Apr 23

[Mod-fcgid-users] Howto: passheaders option?

2008-04-20 Thread Starhost - Noël Elsten
How should one use the option to pass headers to the cgi scripts? I can't seem to find any information on how to do this in the documentation. I've tried the following, but that doesn't seem to be working: FCGIWrapper /path/to/fcgi-bin/php5 PassHeader Authorization .php Thanks, Noel Elsten

Re: [Mod-fcgid-users] mod_fcgid prevents graceful Apache restart on Windows

2008-04-06 Thread Tom Donovan
An additional problem with Apache restarts on Windows is the kill_all_subprocess() function in fcgid_pm_main.c This function, which is called at shutdown, attempts to destroy the proc_pool for each node. If the node is shutting down, this may collide with the pool destruction in

Re: [Mod-fcgid-users] Debian Etch: Strange delay upon first start of fcgi-application (PHP)

2008-03-11 Thread Tobias Wiersch
Hi Gabriel, first of all: I solved it. Gabriel Barazer schrieb: can you tell what is the mod_fcgid version on each server? If the version is the same, you may be facing the same bug on each server, but for some reason it's not triggered on Debian Sarge. Debian is a little conservative

Re: [Mod-fcgid-users] Debian Etch: Strange delay upon first start of fcgi-application (PHP)

2008-03-10 Thread Gabriel Barazer
On 03/10/2008 3:19:16 PM +0100, Tobias Wiersch [EMAIL PROTECTED] wrote: Gabriel Barazer schrieb: 1) Is the delay *exactly* 2 seconds when calling a PHP script (before getting the http error 500 from your suexec test) ? Or is there another additionnal delay to look for ? I think it is

Re: [Mod-fcgid-users] Debian Etch: Strange delay upon first start of fcgi-application (PHP)

2008-03-10 Thread Gabriel Barazer
On 03/10/2008 7:53:10 PM +0100, Tobias Wiersch [EMAIL PROTECTED] wrote: Yes, the results were from 2 servers. The Etch-server has the problem. I wrote the results from the sarge server only to show the difference. can you tell what is the mod_fcgid version on each server? If the version

[Mod-fcgid-users] prespawn of cgi-apps

2008-02-04 Thread Andre Hübner
Hello List, i use mod_fcgid to start my cgi-applications. I tried to answer my question with fcgid-documentation. But i think the docs are a little bit spartan ;) Is there a possibility to prespawn some apps, for instance php? i have the problem that some of my users use php (different versions)

[Mod-fcgid-users] Passing authentication to CGI

2008-02-04 Thread FDKM
Hi, I want to pass the authentication to my CGI. In my httpd.conf I have these directives: FastCgiAuthenticatorAuthoritative off FastCgiAuthorizerAuthoritative off FastCgiAccessCheckerAuthoritative off But apache2 complains: Invalid command 'FastCgiAuthorizerAuthoritative', perhaps misspelled

[Mod-fcgid-users] what does mod_fcgid do by graceful and graceful-stop ?

2007-12-20 Thread Gábor Farkas
hi, apache2ctl accepts the following commands: start|stop|restart|graceful|graceful-stop|configtest|status|fullstatus from these some (configtest, status, fullstatus,start) are not important here, but for the rest, i would like to know, how mod_fcgid behaves: 1. stop: when i call

Re: [Mod-fcgid-users] [PATCH] Correct handling of PassHeader

2007-12-19 Thread Christian Seiler
Hello! Thank you for your contribution, but IMHO this patch is not necessary because the problem comes from Apache not allowing the Authorization header to be added as an environment variable (Header = HTTP_HEADER transformation). See the httpd-2.2.4 source,server/util_script.c:173. Ok,

Re: [Mod-fcgid-users] Disable suexec check

2007-12-13 Thread Erik Wasser
On Wednesday 12 December 2007, Ross Thomas wrote: I haven't applied the patch yet but if it works I'd give it a major vote for inclusion. I think it's a good idea. B-) The patch is very small (only one line will be changed, not counting the lines for adding the new apache option) and the old

Re: [Mod-fcgid-users] mpm_worker and trac environment (python)

2007-12-11 Thread Weedy
Gunnar Thielebein wrote: Hi all, i did get trac running with fcgid on apache in gentoo without thread and mpm_prefork which works but was pretty slow on an pIII. same was with mod_pyton. So I tested with compiling apache with mpm_worker and get this message when trying fcgid again

  1   2   >