LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > PHP executable size

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2008, 06:58 PM
kstrmn kstrmn is offline
New Member
 
Join Date: Apr 2008
Posts: 2
Default PHP executable size

Hi,

The php 4.4.8 binary that comes with LSWS 3.3.11 is 1.7 Mb big. When I compile it with the same configure commands (as per phpinfo), I'm getting 4 Mb.

Php 5.2.6 compiles into a 12.2 Mb monster. One time it was 11.2 Mb, with the same commands. I have no idea how that hapend...

So, how did you manage to compile it so small? Can you maybe give any tips for 5.x?

Thank you in advance
Reply With Quote
  #2  
Old 05-11-2008, 05:13 PM
layer layer is offline
Member
 
Join Date: Apr 2007
Posts: 19
After compiling, run:

strip -s <binary_name>

e.g.

strip -s lsphp5
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:31 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.