SlideShare a Scribd company logo
S E T T I N G U P A F A S T , S C A L A B L E
A N D R O B U S T W O R D P R E S S
I N S T A L L A T I O N O N A W S
H O U S T O N W O R D P R E S S M E E T U P - J A N 8 , 2 0 2 0
by: Alex Bertens
alexbertens.com
A B O U T M E
• WP Developer / Maintenance / Hosting
• BS Industrial & Systems Engineering from UF
• Worked abroad for over 10 years in Machinery
Sales and Logistics
• WP Development and Maintenance was just a
side hobby
T O P I C S W E W I L L C O V E R
Making a Super Fast / Robust / Secure Wordpress Stack
• L2MP Stack
• RDS and Redis
• Security
• Costs
• Future - Proofing your Stack
• Questions
L 2 M P
• What is it?
• Linux - OS
• Litespeed Server - Web Server
• Maria DB - Database
• PHP 7.3 - Language Compiler
L 2 M P
• What is it?
• Linux - OS
• Ubuntu 18.04
L 2 M P
• What is it?
• Linux - OS
• Ubuntu 18.04
• Litespeed Web Server
L I T E S P E E D W E B
S E R V E R
W H A T I S I T ?
• Web Server that is fully compatible with Apache
commands
• Proprietary but has open-source version
available
• 4th Most popular with 5.6% usage vs 41.9%
Apache, 31% Nginx, 22% IIS
• Fastest Growing by far
L S W S
W H Y I S G R E A T
• Capacity
• 84X more requests/second than apache
using Wordpress and Caching
• 10X more than Nginx
L S W S
W H Y I S G R E A T
• Speed
• 29X Faster than Apache for Static Page
Loading
• 6X Faster than Nginx
• Built in Compression
L S W S
W H Y I S G R E A T
• Security
• Connection Level limits
• Request checking
• Web Application Firewall - built in protection
against XSS attacks and SQL Injection
• Static File Checking
• OWASP and 6G Rules
M A R I A D B V 1 0 . 3
W H A T I S I T ?
• Open-Source Database Engine
• Compatible alternative to MySql
• MySql was developed by Oracle 24+ years ago
• Much faster than mainstream versions of MySql (5.4-
5.6)
• Takes full advantage of multi-core server processors
• Highly compatible with key-value caching systems
W H Y I T ’ S G R E A T
P H P 7 . 3
W H A T I S I T ?
• Language compiler with ubiquitous web compatibility
• 75% of websites run on PHP
• 5X faster than legacy PHP (5.6)
• Ensures secure code structure
• Not the hardest to learn
W H Y I T ’ S G R E A T
T O P I C S W E W I L L C O V E R
Making a Super Fast / Robust / Secure Wordpress Stack
• L2MP Stack
• RDS and Redis
R D S
W H A T I S I T ?
• Relational Database Service
• “VPS strictly for Running a Database”
• Powered by Amazon Web Services (AWS)
• Fully Compatible with most SQL services
(MySQL, MariaDB, PerconaDB, MongoDB)
R D S
W H Y I T S G R E A T
• Allows you to Run PHP on your server and have
a dedicated instance to run the Database
requests
• Since instance is optimized for performance,
database queries run much faster
• Automatic Backups
• Database and Hardware maintenance are not an
issue
R E D I S
W H A T I S I T ?
• In-Memory, key-value database object caching
• In English, how does it work
• Turns database queries into key-value pairs and
stores them in memory for faster data retrieval
• Exponential performance improvement in
applications with large databases and high
traffic.
R E D I S
W H Y I T S G R E A T
• Improves Performance for Crud Operations
(Create, Read, Update, Delete)
• Immensely
Create
Read
Update
Delete
T O P I C S W E W I L L C O V E R
Making a Super Fast / Robust / Secure Wordpress Stack
• L2MP Stack
• RDS and Redis
• Security
S E C U R I T Y
W H A T I S I T ?
• Probably one of the most important topics in
Wordpress Today
• Wordpress is the most attacked and hacked
platform in the world by far
• Most hacked people don’t even know they are
hacked - they are used for phishing, botnets,
serving malware.
S E C U R I T Y
L A Y E R S
• Server Level - iptables and Fail2Ban - install in
VPS first thing
• Web Server Level - LSWS Has big advantage
• Mod_security rules
• 6G bot blocking
• Wordpress support
• Recaptcha
• OWASP Rules
S E C U R I T Y
M O R E L A Y E R S
• Application - Level Firewall and Malware
Scanners
• Malcare
• Wordfence
• All in one WP Security
• Important to ban failed logins
• Set up 2FA
• Change /wp-login
S E C U R I T Y
D N S L E V E L
• CloudFlare or AWS WAF and Shield
• Lets you create security rules at DNS level
• Block all from Russia and/or China
S E C U R I T Y
O T H E R T I P S
• Always log into Machine from SSH
• #1 RULE, if nothing else…….
• USE
• A
• STRONG
• PASSWORD
• Use a Password Manager like OnePass,
Lastpass, Dashlane - most are free and sync on
all devices
T O P I C S W E W I L L C O V E R
Making a Super Fast / Robust / Secure Wordpress Stack
• L2MP Stack
• RDS and Redis
• Security
• Costs
C O S T
H O W M U C H ?
• AWS EC2 - t2 Micro - Free for first year
• RDS Free Tier - Free for first year
• CloudFlare - Free
• OpenLitespeed - Free
• After First Year:
• $12-$15 / Month
C O S T
W H A T C A N I T H A N D L E ?
• Traffic Spikes of 200-300 simultaneous users
• Prolonged periods with 160 users/hr
• Server usage: Around 25%
• RDS usage: 5-10%
• ~115,000 visits p/month
• Compare to managed WP hosting ~$100 and up
C O S T S
M A K E I T E V E N F A S T E R
• If serving a lot of media files, serve them from S3
and Cache them with Cloudfront
• Install Cloudfront on your Server to serve CSS,
JS and WOFF files even faster
T O P I C S W E W I L L C O V E R
Making a Super Fast / Robust / Secure Wordpress Stack
• L2MP Stack
• RDS and Redis
• Security
• Costs
• Future Proofing
F U T U R E O F
W O R D P R E S S
W H A T D O E S I T M E A N
• Headless (serverless)
• Using json to grab data from WP
• ex: Gatsby
• DB eventually all moving to key - value pair
system or soemting close
• HTTP/3 QUIC being developed with focus on
speed and security (less requests, with SSL built
in)
Q U E S T I O N S ?
T H A N K Y O U ! ! !
Alex Bertens
alexbertens.com

More Related Content

KEY
Drupal High Availability High Performance 2012
PDF
Virus Bulletin 2012
PPTX
Maximizing SPDY and SSL Performance (June 2014)
PPTX
Zero downtime deployments with laravel envoy
PPTX
RavenDB embedded at massive scales
PPTX
RavenDB 3.5
PDF
WP-CLI - Super Admin Tips and Tricks
PDF
Beyond Apache: Faster Web Servers
Drupal High Availability High Performance 2012
Virus Bulletin 2012
Maximizing SPDY and SSL Performance (June 2014)
Zero downtime deployments with laravel envoy
RavenDB embedded at massive scales
RavenDB 3.5
WP-CLI - Super Admin Tips and Tricks
Beyond Apache: Faster Web Servers

What's hot (20)

PPTX
RavenDB 4.0
PPTX
Agoda open stack in a large scale deployment
PDF
On the Move, Migrations Made Simple
PPT
Ruby Setup
PDF
Scaling WordPress - Project Lana WordPress Team
PDF
What is Nginx and Why You Should to Use it with Wordpress Hosting
PPT
20130714 php matsuri - highly available php
PPTX
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
PPTX
Managing Traffic Spikes This Holiday Season
PPTX
Flawless Application Delivery with NGINX Plus
PPTX
Site speed Server Optimization
PPTX
WEB SERVER
PDF
On the Move - Migrations Made Simple
PDF
SwampDragon presentation: The Copenhagen Django Meetup Group
PDF
Keynote 2011 (wesselius noorderijk)
PPTX
Scaling High Traffic Web Applications
PPTX
Net as an awesome startup platform
PDF
NATS - A new nervous system for distributed cloud platforms
PPTX
Lessons from the Trenches - Building Enterprise Applications with RavenDB
PDF
ChinaNetCloud_magentocom (china)_2014
RavenDB 4.0
Agoda open stack in a large scale deployment
On the Move, Migrations Made Simple
Ruby Setup
Scaling WordPress - Project Lana WordPress Team
What is Nginx and Why You Should to Use it with Wordpress Hosting
20130714 php matsuri - highly available php
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
Managing Traffic Spikes This Holiday Season
Flawless Application Delivery with NGINX Plus
Site speed Server Optimization
WEB SERVER
On the Move - Migrations Made Simple
SwampDragon presentation: The Copenhagen Django Meetup Group
Keynote 2011 (wesselius noorderijk)
Scaling High Traffic Web Applications
Net as an awesome startup platform
NATS - A new nervous system for distributed cloud platforms
Lessons from the Trenches - Building Enterprise Applications with RavenDB
ChinaNetCloud_magentocom (china)_2014
Ad

Similar to Robust WordPress Installation using L2MP Stack (20)

PPTX
Best Practices for WordPress in Enterprise
PDF
Can Your Mobile Infrastructure Survive 1 Million Concurrent Users?
PDF
Best practices-wordpress-enterprise
PDF
Microsoft Azure Explained - Hitesh D Kesharia
PPTX
ECS19 - Mustafa Toroman, Sasa Kranjac - SOUP TO NUTS: MICROSOFT AZURE POWERCLASS
PDF
IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...
PPTX
Global Windows Azure Bootcamp - San Diego
PDF
David Max SATURN 2018 - Migrating from Oracle to Espresso
PDF
Scaling on AWS for the First 10 Million Users at Websummit Dublin
PDF
MySQL Guide for Beginners
PPTX
Gs08 modernize your data platform with sql technologies wash dc
PPTX
Pascal benois performance_troubleshooting-spsbe18
PDF
Couchbase overview033113long
PDF
Couchbase overview033113long
PPTX
023 Quick Deploy GraphQL API With SST - NODES2022 AMERICAS Intermediate 9 - S...
PPTX
Scaling on AWS to the First 10 Million Users
PPTX
Add Redis to Postgres to Make Your Microservices Go Boom!
PDF
205230 primavera installation walkthrough
PPTX
When networks meets apps (open stack atlanta)
PPTX
When Networks Meet Apps, Samuel Bercovici & Nati Shalom
Best Practices for WordPress in Enterprise
Can Your Mobile Infrastructure Survive 1 Million Concurrent Users?
Best practices-wordpress-enterprise
Microsoft Azure Explained - Hitesh D Kesharia
ECS19 - Mustafa Toroman, Sasa Kranjac - SOUP TO NUTS: MICROSOFT AZURE POWERCLASS
IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...
Global Windows Azure Bootcamp - San Diego
David Max SATURN 2018 - Migrating from Oracle to Espresso
Scaling on AWS for the First 10 Million Users at Websummit Dublin
MySQL Guide for Beginners
Gs08 modernize your data platform with sql technologies wash dc
Pascal benois performance_troubleshooting-spsbe18
Couchbase overview033113long
Couchbase overview033113long
023 Quick Deploy GraphQL API With SST - NODES2022 AMERICAS Intermediate 9 - S...
Scaling on AWS to the First 10 Million Users
Add Redis to Postgres to Make Your Microservices Go Boom!
205230 primavera installation walkthrough
When networks meets apps (open stack atlanta)
When Networks Meet Apps, Samuel Bercovici & Nati Shalom
Ad

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
A Presentation on Artificial Intelligence
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Cloud computing and distributed systems.
PDF
Encapsulation theory and applications.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Electronic commerce courselecture one. Pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
MYSQL Presentation for SQL database connectivity
PDF
KodekX | Application Modernization Development
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
Teaching material agriculture food technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Review of recent advances in non-invasive hemoglobin estimation
A Presentation on Artificial Intelligence
Reach Out and Touch Someone: Haptics and Empathic Computing
Chapter 3 Spatial Domain Image Processing.pdf
Cloud computing and distributed systems.
Encapsulation theory and applications.pdf
Empathic Computing: Creating Shared Understanding
Electronic commerce courselecture one. Pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
MYSQL Presentation for SQL database connectivity
KodekX | Application Modernization Development
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Robust WordPress Installation using L2MP Stack

  • 1. S E T T I N G U P A F A S T , S C A L A B L E A N D R O B U S T W O R D P R E S S I N S T A L L A T I O N O N A W S H O U S T O N W O R D P R E S S M E E T U P - J A N 8 , 2 0 2 0 by: Alex Bertens alexbertens.com
  • 2. A B O U T M E • WP Developer / Maintenance / Hosting • BS Industrial & Systems Engineering from UF • Worked abroad for over 10 years in Machinery Sales and Logistics • WP Development and Maintenance was just a side hobby
  • 3. T O P I C S W E W I L L C O V E R Making a Super Fast / Robust / Secure Wordpress Stack • L2MP Stack • RDS and Redis • Security • Costs • Future - Proofing your Stack • Questions
  • 4. L 2 M P • What is it? • Linux - OS • Litespeed Server - Web Server • Maria DB - Database • PHP 7.3 - Language Compiler
  • 5. L 2 M P • What is it? • Linux - OS • Ubuntu 18.04
  • 6. L 2 M P • What is it? • Linux - OS • Ubuntu 18.04 • Litespeed Web Server
  • 7. L I T E S P E E D W E B S E R V E R W H A T I S I T ? • Web Server that is fully compatible with Apache commands • Proprietary but has open-source version available • 4th Most popular with 5.6% usage vs 41.9% Apache, 31% Nginx, 22% IIS • Fastest Growing by far
  • 8. L S W S W H Y I S G R E A T • Capacity • 84X more requests/second than apache using Wordpress and Caching • 10X more than Nginx
  • 9. L S W S W H Y I S G R E A T • Speed • 29X Faster than Apache for Static Page Loading • 6X Faster than Nginx • Built in Compression
  • 10. L S W S W H Y I S G R E A T • Security • Connection Level limits • Request checking • Web Application Firewall - built in protection against XSS attacks and SQL Injection • Static File Checking • OWASP and 6G Rules
  • 11. M A R I A D B V 1 0 . 3 W H A T I S I T ? • Open-Source Database Engine • Compatible alternative to MySql • MySql was developed by Oracle 24+ years ago • Much faster than mainstream versions of MySql (5.4- 5.6) • Takes full advantage of multi-core server processors • Highly compatible with key-value caching systems W H Y I T ’ S G R E A T
  • 12. P H P 7 . 3 W H A T I S I T ? • Language compiler with ubiquitous web compatibility • 75% of websites run on PHP • 5X faster than legacy PHP (5.6) • Ensures secure code structure • Not the hardest to learn W H Y I T ’ S G R E A T
  • 13. T O P I C S W E W I L L C O V E R Making a Super Fast / Robust / Secure Wordpress Stack • L2MP Stack • RDS and Redis
  • 14. R D S W H A T I S I T ? • Relational Database Service • “VPS strictly for Running a Database” • Powered by Amazon Web Services (AWS) • Fully Compatible with most SQL services (MySQL, MariaDB, PerconaDB, MongoDB)
  • 15. R D S W H Y I T S G R E A T • Allows you to Run PHP on your server and have a dedicated instance to run the Database requests • Since instance is optimized for performance, database queries run much faster • Automatic Backups • Database and Hardware maintenance are not an issue
  • 16. R E D I S W H A T I S I T ? • In-Memory, key-value database object caching • In English, how does it work • Turns database queries into key-value pairs and stores them in memory for faster data retrieval • Exponential performance improvement in applications with large databases and high traffic.
  • 17. R E D I S W H Y I T S G R E A T • Improves Performance for Crud Operations (Create, Read, Update, Delete) • Immensely
  • 19. Read
  • 22. T O P I C S W E W I L L C O V E R Making a Super Fast / Robust / Secure Wordpress Stack • L2MP Stack • RDS and Redis • Security
  • 23. S E C U R I T Y W H A T I S I T ? • Probably one of the most important topics in Wordpress Today • Wordpress is the most attacked and hacked platform in the world by far • Most hacked people don’t even know they are hacked - they are used for phishing, botnets, serving malware.
  • 24. S E C U R I T Y L A Y E R S • Server Level - iptables and Fail2Ban - install in VPS first thing • Web Server Level - LSWS Has big advantage • Mod_security rules • 6G bot blocking • Wordpress support • Recaptcha • OWASP Rules
  • 25. S E C U R I T Y M O R E L A Y E R S • Application - Level Firewall and Malware Scanners • Malcare • Wordfence • All in one WP Security • Important to ban failed logins • Set up 2FA • Change /wp-login
  • 26. S E C U R I T Y D N S L E V E L • CloudFlare or AWS WAF and Shield • Lets you create security rules at DNS level • Block all from Russia and/or China
  • 27. S E C U R I T Y O T H E R T I P S • Always log into Machine from SSH • #1 RULE, if nothing else……. • USE • A • STRONG • PASSWORD • Use a Password Manager like OnePass, Lastpass, Dashlane - most are free and sync on all devices
  • 28. T O P I C S W E W I L L C O V E R Making a Super Fast / Robust / Secure Wordpress Stack • L2MP Stack • RDS and Redis • Security • Costs
  • 29. C O S T H O W M U C H ? • AWS EC2 - t2 Micro - Free for first year • RDS Free Tier - Free for first year • CloudFlare - Free • OpenLitespeed - Free • After First Year: • $12-$15 / Month
  • 30. C O S T W H A T C A N I T H A N D L E ? • Traffic Spikes of 200-300 simultaneous users • Prolonged periods with 160 users/hr • Server usage: Around 25% • RDS usage: 5-10% • ~115,000 visits p/month • Compare to managed WP hosting ~$100 and up
  • 31. C O S T S M A K E I T E V E N F A S T E R • If serving a lot of media files, serve them from S3 and Cache them with Cloudfront • Install Cloudfront on your Server to serve CSS, JS and WOFF files even faster
  • 32. T O P I C S W E W I L L C O V E R Making a Super Fast / Robust / Secure Wordpress Stack • L2MP Stack • RDS and Redis • Security • Costs • Future Proofing
  • 33. F U T U R E O F W O R D P R E S S W H A T D O E S I T M E A N • Headless (serverless) • Using json to grab data from WP • ex: Gatsby • DB eventually all moving to key - value pair system or soemting close • HTTP/3 QUIC being developed with focus on speed and security (less requests, with SSL built in)
  • 34. Q U E S T I O N S ?
  • 35. T H A N K Y O U ! ! ! Alex Bertens alexbertens.com