Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've completed my web app and am using mongoose to serve the php pages. The whole app & mongoose is less then 2MB.

The php5ts.dll is almost 5MB so that really adds bloat. Also, my app is very minimal so I don't need many of the php features, ie. mysql & crypto.

Is there a minimal php5ts.dll out there? Or can I build it from the source code without too much work?

share|improve this question
Might have better luck on stackoverflow... – Scott Lundberg Nov 10 '09 at 19:49
Aren't you intrested in answers, shaiss? ;) – kolypto Nov 12 '09 at 23:59
up vote 0 down vote accepted

Sure you can recompile. Use './configure' keys (or how is it in windows, maybe, Makefile?) to add/remove functionality you need, consult the manual for the exact module directives for sets of functions.

You may Google for a pre-compiled library, but it's always better to recompile it so it meets your needs, shrinks in size and overall - fits better ;)

Also consider using packers like UPX:

php5ts.dll: 1290 kB (62% compression)
(found here: Compiling PHP with no extra weight via Googling for "UPX php5ts.dll" )

And yes, it suits StackOverflow better :) Cheers!

share|improve this answer
I've marked this as answered as it put me on the right path. Thank you. – shaiss Nov 16 '09 at 18:29
I'm curious what's that path? Share! :) – kolypto Nov 16 '09 at 18:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.