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

2008-03-10 Thread Tobias Wiersch
Hi Thilo, Thilo Bangert schrieb: > try calling php from the commandline right before you reload apache... Thanks for the quick reply. But I already tried that. PHP is definitely in the cache. # php5-cgi test.php # /etc/init.d/apache2 reload Same delay. And I have a very big cache on the machine. S

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

2008-03-10 Thread Tobias Wiersch
Andre Hübner (28-Jan-2008, "prespawn of cgi-apps") and it seems that he has a similar problem because he wants to prespawn the tasks to prevent the big init-delay. Thanks in advance. Tobias Wiersch - This SF.n

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

2008-03-10 Thread Tobias Wiersch
Hi Thilo, Thilo Bangert schrieb: > okay - interesting. have you tried using strace to check what the > apache process is doing? Okay, here comes the strace of apache's PID. Maybe a problem with the POLLIN-routine? (thanks in advance for your help) 0.49 poll([{fd=15, events=POLLIN, re

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

2008-03-10 Thread Tobias Wiersch
Hi Gabriel, Gabriel Barazer schrieb: > > I suppose this command is an init script and really does "apachectl -k > graceful" ? Can you confirm this ? Since these init scripts are not part > of the apache distribution, we don't know *exactly* what they do and > there _is_ a big difference between

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

2008-03-10 Thread Tobias Wiersch
Hi Gabriel, 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 a 1 second delay. I made a "time wget http://localhost/tes

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

2008-03-10 Thread Tobias Wiersch
Hi Gabriel, Gabriel Barazer schrieb: > > I'm confused. Is it the same server, same kernel & other > hardware/software specs ? If you try 2 different debian distrubtion, > there may be some changes in PHP/libraries. > Yes, the results were from 2 servers. The Etch-server has the problem. I wro

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" conserv

[Mod-fcgid-users] Strange delay with PHP pages that return some KBs of content

2008-03-11 Thread Tobias Wiersch
Hello, ok, next problem :-) It seems very similar: - I call a php-script with only "echo 'test';" in it - always below 50ms (locally AND remote) - I call a php-script with more content (~2KB) locally: below 50ms remote: ~ 1 second It's getting stranger: When I reload the longer page a couple of

Re: [Mod-fcgid-users] Strange delay with PHP pages that return some KBs of content

2008-03-11 Thread Tobias Wiersch
Hi! Tobias Wiersch schrieb: > ok, next problem :-) > Oooops ... please forget this mail and forgive me. To my big surprise the problem was CSS(!)-related. Thanks :-) Tobias - This SF.net email is sponso

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 PHP_FC