logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_fcgi in win server
Author
iztokba



Joined: 15 Mar 2014
Posts: 18
Location: slovenia

PostPosted: Sat 15 Mar '14 19:05    Post subject: mod_fcgi in win server Reply with quote

i have big problems with mod_fcgid i run 3 php 5.3, 5.4, 5.5. and i have a lot of common errors:

1. mod_fcgid: process xxxx graceful kill fail, sending SIGKILL
2. The given path is misformatted or contained invalid characters:
3. FastCGI process xxx still did not exit, terminating

i have win server 2008, 4GB ram, procesor 4 core
apache: 2.4.7
mod_fcgid: 2.3.9

i work on this error abou two months, i search your forum and i not get anx solution, sometimes a get 503 error.

my mod_fcgid in http.config is: (diferernce is only for php 5.3 or 5.5)

<ifModule mod_fcgid.c>
FcgidInitialEnv PHPRC "c:/wamp/bin/php/php5.4.26"
AddHandler fcgid-script .php
FcgidWrapper "c:/wamp/bin/php/php5.4.26/php-cgi.exe" .php
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
FcgidIOTimeout 40
FcgidConnectTimeout 3
FcgidProcessLifeTime 3600
FcgidMaxRequestsPerProcess 50
DefaultMinClassProcessCount 0
FcgidOutputBufferSize 65536
FcgidMaxProcesses 1000
FcgidMaxProcessesPerClass 100
FcgidMaxRequestLen 131072
FcgidIdleScanInterval 120
FcgidIdleTimeout 300
FcgidBusyTimeout 300
FcgidBusyScanInterval 120
FcgidErrorScanInterval 3
FcgidZombieScanInterval 3
</ifModule>

my virtual host config

<VirtualHost *:80>
ServerName xxxx.info
ServerAlias xxxx.info
DocumentRoot "path to folder"
FcgidInitialEnv PHPRC "c:/wamp/bin/php/php5.4.26"
FcgidWrapper "c:/wamp/bin/php/php5.4.26/php-cgi.exe" .php
</VirtualHost>

please, please help me with solutions

thanks
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3049
Location: Hilversum, NL, EU

PostPosted: Sat 15 Mar '14 20:23    Post subject: Reply with quote

Error 1 and 3 is common, not to worry.

Error 2 looks not from mod_fcgid, what is the real line in the log ?

Your config misses some Windows related FcgidInitialEnv's, see in the mod_fcgid download here, there is a readme.txt with an example with preferred settings.
Back to top
iztokba



Joined: 15 Mar 2014
Posts: 18
Location: slovenia

PostPosted: Sat 15 Mar '14 21:32    Post subject: Reply with quote

Thanks for quick replay i now put related FcgidInitialEnv's and looks now

<ifModule mod_fcgid.c>
FcgidInitialEnv PATH "c:/wamp/bin/php/php5.4.26;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
FcgidInitialEnv SystemRoot "C:/Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "C:/WINDOWS/Temp"
FcgidInitialEnv TMP "C:/WINDOWS/Temp"
FcgidInitialEnv windir "C:/WINDOWS"
FcgidInitialEnv PHPRC "c:/wamp/bin/php/php5.4.26"
AddHandler fcgid-script .php
FcgidWrapper "c:/wamp/bin/php/php5.4.26/php-cgi.exe" .php
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
FcgidIOTimeout 40
FcgidConnectTimeout 3
FcgidProcessLifeTime 3600
FcgidMaxRequestsPerProcess 50
DefaultMinClassProcessCount 0
FcgidOutputBufferSize 65536
FcgidMaxProcesses 1000
FcgidMaxProcessesPerClass 100
FcgidMaxRequestLen 131072
FcgidIdleScanInterval 120
FcgidIdleTimeout 300
FcgidBusyTimeout 300
FcgidBusyScanInterval 120
FcgidErrorScanInterval 3
FcgidZombieScanInterval 3
</ifModule>

Is this corect? Now i dont get 503 error anymore?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3049
Location: Hilversum, NL, EU

PostPosted: Sat 15 Mar '14 21:57    Post subject: Reply with quote

That looks better now.
Back to top
iztokba



Joined: 15 Mar 2014
Posts: 18
Location: slovenia

PostPosted: Mon 24 Mar '14 15:07    Post subject: Reply with quote

Looks better, but proceses are not killed from some time and now RAM goes to haigh and server now hawe bad respons.

i have mod_fcgid for different php 5.3, 5.4, 5.5 and in httpd.config i have the same config for each is this good?

please help
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Mon 24 Mar '14 17:36    Post subject: Reply with quote

You can define different configs in the context. It is at least recommend to set different php.ini paths

see

https://www.apachelounge.com/viewtopic.php?t=3430
Back to top
jmerc015



Joined: 15 Apr 2014
Posts: 1

PostPosted: Tue 22 Jul '14 21:16    Post subject: Follow up question Reply with quote

I just have a follow up question and though I would reply here rather than start a new thread (apologies if I this isn't proper etiquette).

I too am receiving a similar warning as OP's number 1. mod_fcgid: process xxxx graceful kill fail, sending SIGKILL

I've read in a couple of different places that this is most likely caused by FcgidIOTimeout. I'm just curious if this warning is something I should be concerned about and if it has any real impact on performance (from what I can tell it hasn't had any real negative impact other than flooding the logs with warnings).

Setup Details below:

Win Server 2003 SP2
Apache: 2.2.27
mod_fcgid: 2.3.9
PHP 5.4.27

mod_fcgid setup/config:

<IfModule fcgid_module>
FcgidIOTimeout 40
FcgidConnectTimeout 10

FcgidMaxProcesses 300
FcgidMaxProcessesPerClass 300

FcgidOutputBufferSize 64
ProcessLifeTime 0
FcgidMaxRequestsPerProcess 0
FcgidMinProcessesPerClass 0
FcgidFixPathinfo 0
FcgidProcessLifeTime 0
FcgidZombieScanInterval 20
FcgidMaxRequestLen 536870912
FcgidIOTimeout 120
FcgidTimeScore 3

FcgidPassHeader Authorization

FcgidInitialEnv PHPRC "C:\\php5"
FcgidInitialEnv PATH "C:\\php5;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;"
FcgidInitialEnv SystemRoot "C:\\Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "C:\\WINDOWS\\TEMP"
FcgidInitialEnv TMP "C:\\WINDOWS\\TEMP"
FcgidInitialEnv windir "C:\\WINDOWS"
<Files ~ "\.php$">
Options Indexes FollowSymLinks ExecCGI
AddHandler fcgid-script .php
FcgidWrapper "C:/php5/php-cgi.exe" .php
</Files>
</IfModule>


Thanks in advance for any information on this.

Cheers!
Back to top
Smitty



Joined: 03 Jan 2008
Posts: 197

PostPosted: Wed 23 Jul '14 5:35    Post subject: Reply with quote

mod_fcgid: process xxxx graceful kill fail, sending SIGKILL is normal behavior. Don't worry about them.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Wed 23 Jul '14 17:24    Post subject: Reply with quote

Smitty wrote:
mod_fcgid: process xxxx graceful kill fail, sending SIGKILL is normal behavior. Don't worry about them.


In the next version that message will be only in debug mode on windows (my patch got applied)
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sat 26 Jul '14 0:33    Post subject: Reply with quote

By the way...When will the next version release? Very Happy
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sat 26 Jul '14 19:06    Post subject: Reply with quote

maskego wrote:
By the way...When will the next version release? Very Happy


Very good question! I don't know. First it was more or less a project of a single person. Now it is an ASF subproject. And even the httpd apache project there isn't a roadmap when to release a new version.

But you are welcome to to ask on the apache dev mailing list for it. Smile

I would also like to see https://issues.apache.org/bugzilla/show_bug.cgi?id=48769 in the next release
Back to top


Reply to topic   Topic: mod_fcgi in win server View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules