Author |
|
flatcircle
Joined: 27 Jun 2006 Posts: 79
|
Posted: Fri 07 May '10 19:30 Post subject: Apache + mod_php or mod_fcgid => Thread-safe or not? |
|
|
Small question:
When using Apache on Win2008 Server and mod_php (loading php by using LoadModule php5_module "c:/php/php5apache2_2.dll") do I have to use the thread-safe or non-thread-safe version of PHP?
And is it right to always use the non-thread-safe version of PHP when using mod_fcgid?
And last but not least what happens when I use a 'wrong' version of PHP, will this only slow down my site or are there any other pitfalls?
Regards. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sat 08 May '10 16:39 Post subject: |
|
|
If you are using PHP as module you have to use the thread safe version.
If you use PHP over fcgid you can use non-thread-safe and the thread-safe version. The non-thread safe version is a bit faster.
To your last question: When you use php as module and use the non thread safe version apache might crashes. |
|
Back to top |
|
flatcircle
Joined: 27 Jun 2006 Posts: 79
|
Posted: Mon 10 May '10 9:28 Post subject: |
|
|
Thanks! |
|
Back to top |
|
flatcircle
Joined: 27 Jun 2006 Posts: 79
|
Posted: Thu 13 May '10 21:24 Post subject: |
|
|
Another little question.
What's the best practice (on a Windows server)?
Use mod_php or mod_fcgid?
Which is the fastest? I've read some comparison articles but sometimes it seems mod_php is faster, sometime it looks like mod_fcgid is the best option to speed up your apache).
Regards. |
|
Back to top |
|
Millennium
Joined: 17 Apr 2006 Posts: 179 Location: Leiderdorp, NL, EU
|
Posted: Fri 14 May '10 9:05 Post subject: |
|
|
mod_php = faster (a little)
mod_fcgid = more stable.
That's my experience... |
|
Back to top |
|