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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache + mod_php or mod_fcgid => Thread-safe or not?
Author
flatcircle



Joined: 27 Jun 2006
Posts: 79

PostPosted: Fri 07 May '10 19:30    Post subject: Apache + mod_php or mod_fcgid => Thread-safe or not? Reply with quote

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: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 08 May '10 16:39    Post subject: Reply with quote

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

PostPosted: Mon 10 May '10 9:28    Post subject: Reply with quote

Thanks!
Back to top
flatcircle



Joined: 27 Jun 2006
Posts: 79

PostPosted: Thu 13 May '10 21:24    Post subject: Reply with quote

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

PostPosted: Fri 14 May '10 9:05    Post subject: Reply with quote

mod_php = faster (a little)
mod_fcgid = more stable.

That's my experience...
Back to top


Reply to topic   Topic: Apache + mod_php or mod_fcgid => Thread-safe or not? View previous topic :: View next topic
Post new topic   Forum Index -> Apache