What every webmaster    should know about     code installation         Las Vegas Pubcon 2012optimization on all levels   ...
Who is talking?• Started coding with Games in 1986• Wrote books, created web shops in the 90s• SEO/affiliate marketeer ear...
Optimization on all levels
It is not just HTML!
It is holistic                                                Planning    • Hardware: think SSD, amount of RAM, etc.    • ...
It is holistic              Fast loading pages:    Tue,     http://www.slideshare.net/extremelongusername/simple-site-spee...
5 things to do now!
1: Caching• A page on your domains consists of many objects  ⇒put these objects in an external cache!• Many config/base co...
1: Caching
2: Stripping• Apache comes with MANY(!) extra modules  ⇒ Disable what you do not need, now!• Same for the OS and PHP
3: CleaningEg:•Compress your style sheets, clean them first•Create a “trashcan/” and move EVERYTHING   you think is not ne...
4: Hunting1 day of hunting for sloppy code can raise yourrevenue by 5% - just with faster pages!•SQL loops vs. RIGHT/LEFT ...
5: Combining                     Creating clean code is possible!………………..…………………………………………..…………………………………………..…………………………………...
5: CombiningCombine SQL statements to chunks to execute:UPDATE mytable SET mycol=2 WHERE my2ndcol LIKE ‘%.jpg’is evil on a...
5: Combining upper levelMinimize!(Optimizing Your Site for Contextual Ads,Thursday, 11.30)
Links and tools• SQUID: super simple reverse proxy• http://code.google.com/p/modpagespeed/• SNORT and GUARDIAN: filter scr...
Results
Thank You!      Contact me:      Ralf Schwoebel      puzzler@tradebit.com      twitter: trabit      slideshare: extremelon...
Upcoming SlideShare
Loading in …5
×

Server and System Optimization on LAMP

758 views

Published on

Things I learned while running http://www.tradebit.com/ : Very simple steps to get your hardware and system in order for high performance web services. Do more, do more faster. 5 things you can take away from Pubcon Las Vegas 2012.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
758
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Server and System Optimization on LAMP

  1. 1. What every webmaster should know about code installation Las Vegas Pubcon 2012optimization on all levels Ralf Schwoebel Tradebit.com
  2. 2. Who is talking?• Started coding with Games in 1986• Wrote books, created web shops in the 90s• SEO/affiliate marketeer early 2000s• Started Tradebit.com as a 1-man band 2004
  3. 3. Optimization on all levels
  4. 4. It is not just HTML!
  5. 5. It is holistic Planning • Hardware: think SSD, amount of RAM, etc. • System: OS considerations and software choice • Connectivity: Security walls can slow you down • Network: how fast or slow is your uplink • Customers: where are they • HTML Coding: how fast are my pages • Customers: what do they use • HTML Layout: how well do they convert • Business process: chargebacks, supportImplementation
  6. 6. It is holistic Fast loading pages: Tue, http://www.slideshare.net/extremelongusername/simple-site-speed-improvements-smx-2010 3.10pmPHP Do you REALLY need that mod_?MySQL INT, not VARCHAR & set INDEXApache Remove unneeded modulesOS Remove unneeded packagesHardware Disable USB, Serial, etc. in BIOS
  7. 7. 5 things to do now!
  8. 8. 1: Caching• A page on your domains consists of many objects ⇒put these objects in an external cache!• Many config/base code snippets NEVER change => activate a code cache (e.g. APC in 10 minutes)
  9. 9. 1: Caching
  10. 10. 2: Stripping• Apache comes with MANY(!) extra modules ⇒ Disable what you do not need, now!• Same for the OS and PHP
  11. 11. 3: CleaningEg:•Compress your style sheets, clean them first•Create a “trashcan/” and move EVERYTHING you think is not needed into it•Revisit old code and think about it•Test your site thoroughly then!
  12. 12. 4: Hunting1 day of hunting for sloppy code can raise yourrevenue by 5% - just with faster pages!•SQL loops vs. RIGHT/LEFT joins•Uncompressed images, CSS, nested HTML errors•Etc. The nested loop will not see me coming… har har!
  13. 13. 5: Combining Creating clean code is possible!………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..………………………… x 64 =………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..…………………………………………..………………………………………………= 1024 dots
  14. 14. 5: CombiningCombine SQL statements to chunks to execute:UPDATE mytable SET mycol=2 WHERE my2ndcol LIKE ‘%.jpg’is evil on a cluster!=> SELECT the INDEX and UPDATE then – e.g.!
  15. 15. 5: Combining upper levelMinimize!(Optimizing Your Site for Contextual Ads,Thursday, 11.30)
  16. 16. Links and tools• SQUID: super simple reverse proxy• http://code.google.com/p/modpagespeed/• SNORT and GUARDIAN: filter script kiddies• http://mysqltuner.pl/• SPHINXsearch: Ultra fast full text search• SOFTLAYER.net : CDN on demand• https://developers.google.com/speed/pagespeed/• http://www.hidemyass.com/ (global VPN surfing)
  17. 17. Results
  18. 18. Thank You! Contact me: Ralf Schwoebel puzzler@tradebit.com twitter: trabit slideshare: extremelongusername

×