SlideShare una empresa de Scribd logo
1 de 18
What every webmaster
    should know about
     code installation
         Las Vegas Pubcon 2012



optimization on all levels

       Ralf Schwoebel
        Tradebit.com
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
Optimization on all levels
It is not just HTML!
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, support
Implementation
It is holistic
              Fast loading pages:
    Tue,     http://www.slideshare.net/extremelongusername/simple-site-speed-improvements-smx-2010
    3.10pm

PHP                     Do you REALLY need that mod_?
MySQL                   INT, not VARCHAR & set INDEX
Apache                  Remove unneeded modules
OS                      Remove unneeded packages

Hardware                  Disable USB, Serial, etc. in BIOS
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 code snippets NEVER change

  => activate a code cache (e.g. APC in 10 minutes)
1: Caching
2: Stripping
• Apache comes with MANY(!) extra modules
  ⇒ Disable what you do not need, now!




• Same for the OS and PHP
3: Cleaning
Eg:

•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!
4: Hunting
1 day of hunting for sloppy code can raise your
revenue 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!
5: Combining
                     Creating clean code is possible!
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………


                       x 64 =
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
………………..…………………………
……………………



= 1024 dots
5: Combining
Combine 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.!
5: Combining upper level




Minimize!

(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 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)
Results
Thank You!

      Contact me:

      Ralf Schwoebel

      puzzler@tradebit.com

      twitter: trabit

      slideshare: extremelongusername

Más contenido relacionado

Más de Ralf Schwoebel

Technologie und SEO: Cloud, Big Data und Mobile First angeschaut
Technologie und SEO: Cloud, Big Data und Mobile First angeschautTechnologie und SEO: Cloud, Big Data und Mobile First angeschaut
Technologie und SEO: Cloud, Big Data und Mobile First angeschautRalf Schwoebel
 
German: SMX Munich - Twitter Marketing
German: SMX Munich - Twitter MarketingGerman: SMX Munich - Twitter Marketing
German: SMX Munich - Twitter MarketingRalf Schwoebel
 
German Online Roundtable Frankfurt (OSF)
German Online Roundtable Frankfurt (OSF)German Online Roundtable Frankfurt (OSF)
German Online Roundtable Frankfurt (OSF)Ralf Schwoebel
 
International and European SEO - Pubcon 2008
International and European SEO - Pubcon 2008International and European SEO - Pubcon 2008
International and European SEO - Pubcon 2008Ralf Schwoebel
 
SEOkomm 2012: Beyond SEO in German - Mehr Traffic ohne Google
SEOkomm 2012: Beyond SEO in German - Mehr Traffic ohne GoogleSEOkomm 2012: Beyond SEO in German - Mehr Traffic ohne Google
SEOkomm 2012: Beyond SEO in German - Mehr Traffic ohne GoogleRalf Schwoebel
 
German Intro: Strategische Markenberatung
German Intro: Strategische MarkenberatungGerman Intro: Strategische Markenberatung
German Intro: Strategische MarkenberatungRalf Schwoebel
 
German: Frankfurt im Überblick für Buchmesse-Besucher
German: Frankfurt im Überblick für Buchmesse-BesucherGerman: Frankfurt im Überblick für Buchmesse-Besucher
German: Frankfurt im Überblick für Buchmesse-BesucherRalf Schwoebel
 
MySQL Install for Replication - Real Life Tutorial
MySQL Install for Replication - Real Life TutorialMySQL Install for Replication - Real Life Tutorial
MySQL Install for Replication - Real Life TutorialRalf Schwoebel
 
Seven steps to great PC health (Windows)
Seven steps to great PC health (Windows)Seven steps to great PC health (Windows)
Seven steps to great PC health (Windows)Ralf Schwoebel
 
How to make your website IPv6 ready (quickly)
How to make your website IPv6 ready (quickly)How to make your website IPv6 ready (quickly)
How to make your website IPv6 ready (quickly)Ralf Schwoebel
 
Simple Site Speed Improvements (SMX 2010)
Simple Site Speed Improvements (SMX 2010)Simple Site Speed Improvements (SMX 2010)
Simple Site Speed Improvements (SMX 2010)Ralf Schwoebel
 
Hosting Issues and SEO
Hosting Issues and SEOHosting Issues and SEO
Hosting Issues and SEORalf Schwoebel
 
Pubcon 2012 Blog and Site performance
Pubcon 2012 Blog and Site performancePubcon 2012 Blog and Site performance
Pubcon 2012 Blog and Site performanceRalf Schwoebel
 

Más de Ralf Schwoebel (13)

Technologie und SEO: Cloud, Big Data und Mobile First angeschaut
Technologie und SEO: Cloud, Big Data und Mobile First angeschautTechnologie und SEO: Cloud, Big Data und Mobile First angeschaut
Technologie und SEO: Cloud, Big Data und Mobile First angeschaut
 
German: SMX Munich - Twitter Marketing
German: SMX Munich - Twitter MarketingGerman: SMX Munich - Twitter Marketing
German: SMX Munich - Twitter Marketing
 
German Online Roundtable Frankfurt (OSF)
German Online Roundtable Frankfurt (OSF)German Online Roundtable Frankfurt (OSF)
German Online Roundtable Frankfurt (OSF)
 
International and European SEO - Pubcon 2008
International and European SEO - Pubcon 2008International and European SEO - Pubcon 2008
International and European SEO - Pubcon 2008
 
SEOkomm 2012: Beyond SEO in German - Mehr Traffic ohne Google
SEOkomm 2012: Beyond SEO in German - Mehr Traffic ohne GoogleSEOkomm 2012: Beyond SEO in German - Mehr Traffic ohne Google
SEOkomm 2012: Beyond SEO in German - Mehr Traffic ohne Google
 
German Intro: Strategische Markenberatung
German Intro: Strategische MarkenberatungGerman Intro: Strategische Markenberatung
German Intro: Strategische Markenberatung
 
German: Frankfurt im Überblick für Buchmesse-Besucher
German: Frankfurt im Überblick für Buchmesse-BesucherGerman: Frankfurt im Überblick für Buchmesse-Besucher
German: Frankfurt im Überblick für Buchmesse-Besucher
 
MySQL Install for Replication - Real Life Tutorial
MySQL Install for Replication - Real Life TutorialMySQL Install for Replication - Real Life Tutorial
MySQL Install for Replication - Real Life Tutorial
 
Seven steps to great PC health (Windows)
Seven steps to great PC health (Windows)Seven steps to great PC health (Windows)
Seven steps to great PC health (Windows)
 
How to make your website IPv6 ready (quickly)
How to make your website IPv6 ready (quickly)How to make your website IPv6 ready (quickly)
How to make your website IPv6 ready (quickly)
 
Simple Site Speed Improvements (SMX 2010)
Simple Site Speed Improvements (SMX 2010)Simple Site Speed Improvements (SMX 2010)
Simple Site Speed Improvements (SMX 2010)
 
Hosting Issues and SEO
Hosting Issues and SEOHosting Issues and SEO
Hosting Issues and SEO
 
Pubcon 2012 Blog and Site performance
Pubcon 2012 Blog and Site performancePubcon 2012 Blog and Site performance
Pubcon 2012 Blog and Site performance
 

Último

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 

Último (20)

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 

Server and System Optimization on LAMP

  • 1. What every webmaster should know about code installation Las Vegas Pubcon 2012 optimization on all levels Ralf Schwoebel Tradebit.com
  • 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
  • 4. It is not just HTML!
  • 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, support Implementation
  • 6. It is holistic Fast loading pages: Tue, http://www.slideshare.net/extremelongusername/simple-site-speed-improvements-smx-2010 3.10pm PHP Do you REALLY need that mod_? MySQL INT, not VARCHAR & set INDEX Apache Remove unneeded modules OS Remove unneeded packages Hardware Disable USB, Serial, etc. in BIOS
  • 7. 5 things to do now!
  • 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)
  • 10. 2: Stripping • Apache comes with MANY(!) extra modules ⇒ Disable what you do not need, now! • Same for the OS and PHP
  • 11. 3: Cleaning Eg: •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. 4: Hunting 1 day of hunting for sloppy code can raise your revenue 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. 5: Combining Creating clean code is possible! ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… x 64 = ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… ………………..………………………… …………………… = 1024 dots
  • 14. 5: Combining Combine 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. 5: Combining upper level Minimize! (Optimizing Your Site for Contextual Ads, Thursday, 11.30)
  • 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)
  • 18. Thank You! Contact me: Ralf Schwoebel puzzler@tradebit.com twitter: trabit slideshare: extremelongusername