Author |
|
DjGL
Joined: 30 Jul 2010 Posts: 4
|
Posted: Fri 30 Jul '10 12:40 Post subject: Apache 2.2 with mod_fcgid & PHP5.2 NTS not working |
|
|
Hi everybody,
I'm running Apache 2.2 with mod_fcgid & PHP5 Threadsafe on a Windows 2000 Server already since a while. It is working quite fine. Sometimes I recognize that after an Apache restart not all old php-cgi processes have been killed .. any idea how to solve except killing them manually?
But that's a different problem.
I wanted to try the Non-Thread-Safe version of PHP because it should increase the performance a little.
But if I switch to the NTS version and start Apache I get an errormessage that php5ts.dll has not been found which is confusing as php5ts is the Thread-Safe version of the dll.
Anyone else experiences this problem?
I used the latest version of PHP 5.2.14
Best regards
Günther |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sun 01 Aug '10 13:26 Post subject: |
|
|
How did you set up php over fcgid? |
|
Back to top |
|
DjGL
Joined: 30 Jul 2010 Posts: 4
|
Posted: Sun 01 Aug '10 13:43 Post subject: |
|
|
Code: | LoadModule fcgid_module modules/mod_fcgid.so
DefaultInitEnv PHPRC "D:/HTTP/PHP5/"
DefaultInitEnv PATH "D:/HTTP/PHP5;C:/WINNT/system32;C:/WINNT;C:/WINNT/System32/Wbem;"
DefaultInitEnv SystemRoot "C:/WINNT"
DefaultInitEnv SystemDrive "C:"
DefaultInitEnv TEMP "E:/TEMP"
DefaultInitEnv TMP "E:/TEMP"
DefaultInitEnv windir "C:/WINNT"
<IfModule mod_fcgid.c>
IPCCommTimeout 120
IPCConnectTimeout 20
MaxProcessCount 128
OutputBufferSize 48
ProcessLifeTime 3600
MaxRequestsPerProcess 1000
IdleTimeout 600
IdleScanInterval 240
BusyTimeout 300
BusyScanInterval 120
ErrorScanInterval 6
ZombieScanInterval 6
</IfModule> |
und in den VHosts
Code: | <VirtualHost *>
ServerAdmin xxx
ServerName xxx
DocumentRoot xxx
LogFormat "%V %h %l %u %t \"%r\" %s %b"
AddHandler fcgid-script .php
<Location />
Options xxx
AllowOverride xxx
FCGIWrapper "D:/HTTP/PHP5/php-cgi.exe -c D:/HTTP/PHP5/php.ini" .php
</Location>
ErrorLog xxx
CustomLog xxx common
</VirtualHost> |
|
|
Back to top |
|
PipoDeClown
Joined: 20 Dec 2005 Posts: 77
|
Posted: Mon 02 Aug '10 19:54 Post subject: Re: Apache 2.2 with mod_fcgid & PHP5.2 NTS not working |
|
|
DjGL wrote: | ...Sometimes I recognize that after an Apache restart not all old php-cgi processes have been killed ... |
Are you really sure there were no running php-cgi active before changing to php nts version? |
|
Back to top |
|
DjGL
Joined: 30 Jul 2010 Posts: 4
|
Posted: Mon 02 Aug '10 20:05 Post subject: Re: Apache 2.2 with mod_fcgid & PHP5.2 NTS not working |
|
|
PipoDeClown wrote: | DjGL wrote: | ...Sometimes I recognize that after an Apache restart not all old php-cgi processes have been killed ... |
Are you really sure there were no running php-cgi active before changing to php nts version? |
Oh .. maybe I have not explained very well .. that question was not related to TS or NTS version .. I have this problem since a while with only using TS version of PHP aswell. This was just a secondary issue. At the moment I use a batchfile to restart Apache which uses pskill to remove the php-cgi process which are left after stopping Apache service. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
DjGL
Joined: 30 Jul 2010 Posts: 4
|
Posted: Tue 03 Aug '10 7:46 Post subject: |
|
|
Yes that sounds quite similar .. I'm also restarting Apache (with my batchfile) once a day to avoid Segfaults .. but in rare cases Apache still crashes. |
|
Back to top |
|