liz quilty – security, scaling & high end hosting for wordpress sites
DESCRIPTION
Liz Quilty – Security, Scaling & High End Hosting for WordPress sites from WordCampNZ 2012 devs April 22TRANSCRIPT
![Page 1: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/1.jpg)
Scaling & High End Hosting for WordPress
By Liz Quilty
![Page 2: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/2.jpg)
There is no single solution
![Page 3: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/3.jpg)
Work out what You Want and Need!
![Page 4: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/4.jpg)
Lots of articles exist already, read them!
Plug-ins • WP-Sentinel • WordPress Sentinel (they are different!)
Permissions Version Control - CVS, SVN, Git Backups!
Security
![Page 5: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/5.jpg)
Set Apache to ignore .svn .git .cvs, etc Ignore files
• wp-config.php • wp-content/uploads/ • wp-local-config.php
capistrano for deploy
Develop/test on local or Dev machine
Version Control System
![Page 6: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/6.jpg)
• NGINX + phpFCGI ? • Varnish + apache + mod_php • PHP-APC • WP-Supercache/W3-total-cache • Batcache / Memcached • Enable the WordPress Object Cache
define(ENABLE_CACHE, true);
Watch for PHP-CGI/FCGI memory usage!
Scaling Single server
![Page 7: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/7.jpg)
Videos - Youtube,Vimo Files - CDN, Flickr, DropBox, S3 Comments - IntenseDebate, Discus
These help save disk & IO, resources
Take Media Offsite
![Page 8: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/8.jpg)
Cost Space Redundancy Control - or lack of it Openstack Cloudmin
Control Panels? What Control Panels!
The Cloud?
![Page 9: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/9.jpg)
Same as Single .. plus more
DNS Round Robin ? Heartbeat IP Failover ? Separate DB server w/ Replication ? File replication ? Controlling multiple servers ?
Multiple Layouts - Planning is key!
Scaling Multiple
![Page 10: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/10.jpg)
![Page 11: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/11.jpg)
![Page 12: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/12.jpg)
Database: • Mysql Master/Master replication • Mysql Master/Slave • Separate DB server(s) • HyperDB Plugin
DB Replication
![Page 13: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/13.jpg)
• Unisen • rsync • bitpocket • DRBD • Rsync • Gluster
Replication of Files
![Page 14: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/14.jpg)
CFEngine Puppet ClusterSSH
#!/bin/bash
HOSTS="machine1 machine2 machine3 machine4";
if [ $1 ];then
for i in $HOSTS; do ssh $i "$@"; done
fi
Controlling servers
![Page 15: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/15.jpg)
10 Plan
20 Test
30 Adapt
40 Goto 20
Implement
Don't wait until you have a problem to test it!
Monitoring - NewRelic, Nagios, etc Failover Plans, like Heartbeat, DNS, etc
Have a Plan, test it
![Page 16: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/16.jpg)
Backup! Backup! Backup! Multiple Sites for redundancy Documentation in case developer/admin
disappears
Things to remember
![Page 17: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/17.jpg)
Questions?
Questions?
![Page 18: Liz Quilty – Security, Scaling & High End Hosting for WordPress sites](https://reader035.vdocuments.site/reader035/viewer/2022081907/54582598b1af9fc0638b548a/html5/thumbnails/18.jpg)
http://www.freesoftwaremagazine.com/articles/easy_file_sync_bitpocket