- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI've been trying to look up thread safety issues with some of my Windows-based Apache / PHP setups, but am coming up short.
Currently, I have a couple non-public web servers running WIndows Server, Apache 2, and PHP 5. The PHP versions that I used were NOT the "non-thread-safe" versions available for download from the PHP site.
#1. With my setup, should I be using the default/standard binaries for Windows, or should I be using the non-thread-safe ones?
#2. I've noticed some glitches over time and wonder if they are the result of using the standard versions instead of the non-thread-safe versions. For example, some scripts that use GD to piece together multiple GIF files sometimes have strange-looking results, as if GD had just glitched. It happens about 1 in 4 times, but the script rarely runs and is not public, so has not been a priority.
I also have a script that calculates the crc32() values of files in a directory. Once in a blue moon, this causes the Apache process to crash. It still SEEMS like Apache is running after the crash, but I usually restart the service, just in case.
Neither of these problems is hardware-specific. They happen on local development Windows XP boxes as well as different servers. The only thing they all have in common is default PHP 5 binaries, Apache 2, and Windows.
(I've also used different minor versions of PHP 5 and Apache 2, although they don't seem to make a difference.)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: hernst42Posted on 2007-07-12 at 13:59:19ID: 19476151
1) Using threaded or non-threaded binaries depends of the installation of php. If you use php as cgi use the non-threaded lib. If you use it as apache-module you need the threaded binaries as apache is running in threaded mode on windows.
en/ faq.ins tallation. php#faq.in stallation .apache2
ts/zend_co re
http://de2.php.net/manual/
And finally, this warning against using a threaded MPM is not as strong for Windows systems because most libraries on that platform tend to be threadsafe.
If you plan to setup a productive server, check Zend Core which comes with a complete setup for apache, windows management tools and support. So if you encounter problem with your php which might result in a show stopper let the support fix the php.
http://www.zend.com/produc