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 server. After compilling apache php and mod_fcgid 
> I faced the problem of determination PHP directives for our server
> users. Tasks of PHP directives don't work with .htaccess file, 
> I wouldn't change the variables in global php.ini file. 
> I have looked through the documentation and I discovered that the way
> to php.ini file can be pointed via variable PHPRC. 
> I've wrote wrapper which installs PHPRC before php execution.
> Everything works perfect if the full path to php.ini file in PHPRC is
> set up, e.g.: 
> 
> [ttyp0:hr4] [13:17] [EMAIL PROTECTED]> cat /usr/local/cpanel/cgi-sys/php5
> #!/bin/bash export PHPRC=~ssitest/public_html/php.ini
> exec /usr/local/cpanel/cgi-sys/php5.bin
> 
> But I don't want to make a new wrapper and change PHPRC variable
> after each new user creation. 
> Is it able to get such data as user's DOCUMENT_ROOT to use this data
> for PHPRC var value, e.g.:
> 
> export PHPRC=$DOCUMENT_ROOT/php.ini
> exec /usr/local/cpanel/cgi-sys/php5.bin
> 
> --
> Regards,
> Igor R.
> WebHostingBuzz.com

My solution for running apache+php-cgi+suexec+mod_fcgid was to create a
special directory for each user (e.g. fastcgi-bin or fcgi-bin) which
would contain a php wrapper script and a php.ini. Nothing needs
customizing, I invoke the php.ini from within the wrapper with this:

PHPRC=`/bin/pwd` (path may differ on your os)

and it works very well, to be frank it works very god darn well both in
terms of performance and security (websites actually feel snappier
than with mod_php).

If you can automate somehow the copying of this directories and the 2
files in each user's home (or wherever you call it from httpd.conf from)
then you're all settled.

> 
> 
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> Mod-fcgid-users mailing list
> Mod-fcgid-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


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

2008-06-04 Thread [EMAIL PROTECTED]
On Wed, 4 Jun 2008 13:16:37 -0500
"Andrew White" <[EMAIL PROTECTED]> wrote:

> 
> 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 ${top_builddir}/modules.mk
> 
> APXS  = apxs
> APACHECTL = apachectl
> EXTRA_CFLAGS = -I$(builddir)
> 
> all: local-shared-build
> 
> clean:
> rm -f *.o *.lo *.slo *.la arch/unix/*.o arch/unix/*.lo
> arch/unix/*.slo arch/unix/*.la .libs/* arch/unix/.libs/*
> 
> When I run the command I get this output:
> 
> [root@ mod_fcgid.2.2]# make top_dir=/usr/lib/httpd/
> make: *** No rule to make target `fcgid_bridge.slo', needed by
> `mod_fcgid.la'.  Stop.
> 
> If I uncomment "#include ${top_builddir}/build/special.mk" it just
> gives me an error that "special.mk" cannot be found.  I've researched
> into what special.mk is but haven't been able to find anything it
> doesn't come with the source code thats for sure.  Naturally there
> isn't any yum depositories I've been able to find with the module.
> 
> Any help is much appreciated!
> 
> Andrew

Do you have httpd-devel package installed?
Anyway, this package IS in a yum repo (in EPEL). There's a working one
here:
http://mirrors.xservers.ro/epel/5Server/i386/mod_fcgid-2.2-4.el5.i386.rpm

Good luck!

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


[Mod-fcgid-users] mod_fcgid + php 5.2.5 = Premature end of script headers

2008-01-09 Thread [EMAIL PROTECTED]
Hello,

I am using mod_fcgid + Apache 2.2.6 + PHP5.2.2 and PHP4.4.8 with no problem, 
but I get in trouble when I tried to upgrade PHP5 to the latest version.

PHP5.2.5 works well as cli, but it doesn't work with mod_fcgid:

[Wed Jan 09 15:20:55 2008] [warn] (104)Connection reset by peer: mod_fcgid: 
read data from fastcgi server error.
[Wed Jan 09 15:20:55 2008] [error] [client XXX.XXX.XXX.XXX] Premature end of 
script headers: info.php5

I also tried to compile PHP5.2.5 with minimal configuration, but I receive the 
same error.

Why does not mod_fcgid work with latest version of PHP Engine? Is there any 
compatibility issue?

Thank you in advance for your help.

Kind Regards,
Antonio


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


[Mod-fcgid-users] Apache2, PHP4 +mod_fcgid 2.2 Errors (...write data to fastcgi server error)

2007-08-19 Thread [EMAIL PROTECTED]
Hi,

I use Apache 2.2.4 for virtual hosting and discovered some of these error
messages from mod_fcgid in my log files recently when trying to upload files
via PHP larger than 20KB.

[warn] (35)Resource temporarily unavailable: mod_fcgid: write data to 
fastcgi server error

However, when restarting the server it lets me upload 1 file that is 
larger than 20KB just fine, but exactly just 1!?
I increased the settings for "MaxRequestInMem" and "MaxRequestLen" and 
also played with "OutputBufferSize"
without any success.

My mod_fcgid config:


SharememPath /opt/local/apache2/logs/fcgid_shm
SocketPath /opt/local/apache2/logs/fcgid.sock
IdleTimeout 3600
ProcessLifeTime 3600
MaxProcessCount 8
DefaultMinClassProcessCount 3
DefaultMaxClassProcessCount 3
IPCConnectTimeout 16
IPCCommTimeout 48
MaxRequestInMem 4800
MaxRequestLen 3600
OutputBufferSize 4800


My server is running mod_fcgid 2.2 with PHP 4.4.7
I read on the mailing list that other people where reporting this or 
similar errors and that it should
be fixed in version 2.2 using "MaxRequestInMem" and/or "MaxRequestLen" 
but apparently it
still exists and these settings show no effect (at least for me)!?

Am I missing something here? How can I fix this?

Thanks in advance...
Tony

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


[Mod-fcgid-users] How can i avoid this: total process count 10 >= 10, skip the spawn request ?

2007-08-01 Thread [EMAIL PROTECTED]

Hello,
I've switched recently from mod_fastcgi to mod_fcgid, and now I keep
getting those errors. Is there any way to avoid this without increasing
that process count value (which leads to an awffull lot of php-fcgi
processes eating up RAM)?

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


[Mod-fcgid-users] mod_fcgid with external process manager: confused ?

2007-04-26 Thread [EMAIL PROTECTED]
Hello guys

I try to use mod_fcgid with django (www.djangoproject.com) and there's 
one thing I can't get.

When mod_fcgid acts as fcgi process manager itself, it controls spawing 
of child processes well. But when we talk about Django, it has it's own 
process manager: flup. Flup forks a few children and passes incoming 
requests to them using its own strategy so mod_fcgid should only send 
all incoming requests to the flup PM process via socket.
If so, I can run the following configuration:

SocketPath /var/lib/apache2/fcgid/sock
IPCConnectTimeout 120
IPCCommTimeout 120
DefaultMaxClassProcessCount 1

so mod_fcgid should start only one wrapper (flup) process and forward 
all requests to there.

But in fact, it seems that mod_fcgid thinks that there is not a PM on 
the other end of socket, but just one child process instead. So while 
one request is processed and it gets one more request, it writes to log:

[Thu Apr 26 15:44:03 2007] [notice] mod_fcgid: too much 
/path/to/django-wrapper process(current:1, max:1), skip the spawn request

and waits until this request is finished before passing the next request 
to the same child. So, every flup instance spawned by mod_fcgid can 
process just one request per a time. But what is a reason for flup to 
spawn a few child processes too then ?

Is it ok with mod_fcgid ? Should I use mod_fastcgi instead ? Or may be 
my config is wrong ? Or even may be I misunderstood things and I DO have 
to make flup to start only one django process ?

I use debian etch package libapache2-mod-fcgid (1.10)

-- 
Best regards
Anton Khalikov

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users