46
Jonathan Perlman August 17, 2014 Montreal, Quebec @jpurpleman [email protected] http://purpleman.org/wcmtl @

10 things you need to know about leaving shared hosting

Embed Size (px)

DESCRIPTION

This WordCamp Montreal 2014 talk is about things to know and think about when leaving shared hosting

Citation preview

Page 1: 10 things you need to know about leaving shared hosting

Jonathan Perlman

August 17, 2014

Montreal, Quebec

@jpurpleman

[email protected]

http://purpleman.org/wcmtl

@

Page 2: 10 things you need to know about leaving shared hosting

+ 10 years asa web developerat Dawson College

+ 6 years teachingthe World Wide Weband Microsoft Office

+ 4 years using and learning WordPress

I’m not a Linux network administrator

I’m not a security expert

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: alexidagher.com

Page 3: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: office.com

Page 4: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 5: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: commons.wikimedia.org

Page 6: 10 things you need to know about leaving shared hosting

Restrictions

Software limitations

Can’t modify configurations

Resources

CPU intense

Noisy neighbors

Reliability

Downtime

Lack of support

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 7: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: flickr (roger4336 )

Page 8: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

UnmanagedManaged

Image credit: commons.wikimedia.org Image credit: flickr (retropc )

Page 9: 10 things you need to know about leaving shared hosting

Managed

Shared hosting for WordPress

Support knows WordPress

Relevantly easy and hands off

Costly in $$$

Unmanaged

Learning curve

Very DIY

“ Painful “

Costly in time

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 10: 10 things you need to know about leaving shared hosting

WPEngine http://wpengine.com

WebSynthesis http://websynthesis.com

Flywheel http://getflywheel.com

Page.ly https://pagely.com

Pressable http://pressable.com

SiteGround http://siteground.com

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 11: 10 things you need to know about leaving shared hosting

Digital Ocean http://www.digitalocean.com

Linode https://www.linode.com

Media Templehttp://mediatemple.net/webhosting/

vps/developer/

Site5 http://www.site5.com

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 12: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: commons.wikimedia.org

Page 13: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

RAM CPUDisk

Space

Image credit: commons.wikimedia.org

Page 14: 10 things you need to know about leaving shared hosting

purpleman.org

• Photo clients

• Personal use

• Ram: 1 Gig

• CPU: 1 Core

• Disk: 30 Gigs

snookercanada.ca

• Snooker players

• Media relations

• Ram: 2 Gigs

• CPU: 2 Cores

• Disk: 40 Gigs

dawsoncollege.qc.ca

• + 10,000 students

• + 1,000 faculty / staff

• Ram: 16 Gigs

• CPU: 4 Core

• Disk: 128 Gigs

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 15: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 16: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

DNS

Linux Web

PHP Db

Page 17: 10 things you need to know about leaving shared hosting

CloudFlare

https://www.cloudflare.com

Easydns

https://www.easydns.com

DNS with domain or hosting provider

Local “Hosts” file

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 18: 10 things you need to know about leaving shared hosting

Stable

CentOS 7

Supported till 2024

Bleeding edge

Ubuntu 14.04 LTS

Supported till 2019

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 19: 10 things you need to know about leaving shared hosting

cPanel

www.cpanel.net

Parallels Plesk

sp.parallels.com/

products/plesk/

ZPanel

www.zpanelcp.com

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 20: 10 things you need to know about leaving shared hosting

Text Editor

vi / nano

File System

cd & ls

cp & mv & rm

mkdir

Permissions

chmod & chown

Process Management

ps & top

Kill

http://www.ee.surrey.ac.uk/Teaching/Unix/

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 21: 10 things you need to know about leaving shared hosting

Stan Lee

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 22: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: sapienstoonz.deviantart.com

Page 23: 10 things you need to know about leaving shared hosting

All powerful server administrator

Terminal Root User = WordPress Admin User

Constantly targeted and attacked

New servers are under attack in hours

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 24: 10 things you need to know about leaving shared hosting

Change it’s password

Make it a super secure password!

Deny Root from remote login

Create a non-admin user account

Assign admin rights with VISUDO

https://www.digitalocean.com/community/tutorials/initial-server-setup-with-centos-6

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 25: 10 things you need to know about leaving shared hosting

Generating keys

http://kb.siteground.com/how_to_generate_an_ssh_key_on_windows_using_putty/

http://coolestguidesontheplanet.com/make-passwordless-ssh-connection-osx-10-9-

mavericks-linux/

Set up keys on the server Login via SSH keys

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 26: 10 things you need to know about leaving shared hosting

Block everything

Allow specific ports from specific IPs

22 – SSH

80 – Web

443 – Secure Web

3306 – MySql

Allowing for dynamic IPs

Use hit count rules

https://github.com/jpurpleman/linux

http://cyberciti.biz/tips/linux-iptables-examples.html

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 27: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: support.Microsoft.com

yum update for CentOS

apt-get update for Ubuntu

Page 28: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 29: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: commons.wikimedia.org

Page 30: 10 things you need to know about leaving shared hosting

Apache or Nginx

Use virtual hosting for multiple domains

Create development domains

.htaccess is off by default in Apache

Change “AllowOverride” to All

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-6

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 31: 10 things you need to know about leaving shared hosting

php.ini

allow_url_fopen

session.gc_maxlifetime

disable_functions

display_errors

post_max_size

memory_limit

max_execution_time

upload_max_filesize

.htaccess

php_value

upload_max_filesize

10M

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

http://php.net/manual/en/ini.list.php

Page 32: 10 things you need to know about leaving shared hosting

MySql or MariaDB

Setup steps

Set a secure root user

Remove test database

Create web user with limited access

Create yourself a user with full access

https://www.digitalocean.com/community/tutorials/a-basic-mysql-tutorial

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 33: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 34: 10 things you need to know about leaving shared hosting

Download and extract

Create the database

and a user

Set up wp-config.php

Run the install script

http://codex.wordpress.org/

Installing_WordPress

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 35: 10 things you need to know about leaving shared hosting

http://codex.wordpress.org/

Hardening_WordPress

http://codex.wordpress.org/

Changing_File_Permissions

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 36: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 37: 10 things you need to know about leaving shared hosting

Home directory

Root home directory

Configuration directory

Web files

Database

Automysqlbackuphttp://sourceforge.net/projects/automysqlbackup/

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: memofixdatarecovery.com

Page 38: 10 things you need to know about leaving shared hosting

http://aws.amazon.com/backup-storage

http://mozy.com/product/solutions/

server-backup

https://www.jungledisk.com/

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 39: 10 things you need to know about leaving shared hosting

Google Apps for Business

http://www.rackspace.com/email-hosting/

https://www.fastmail.fm

https://www.zoho.com/mail

https://www.pobox.com/

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 40: 10 things you need to know about leaving shared hosting

Uptime Robot

Pingdom

New Relic

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Image credit: opmlink.com

Page 41: 10 things you need to know about leaving shared hosting

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 42: 10 things you need to know about leaving shared hosting

Get a virtual private server – call it professional development

Set it up

Play around – learn!

Edit your hosts file and point your domain to the server

Create a development WordPress site

Setup your WordPress site

Create a production WordPress site

Change the DNS!

You’re live!

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 43: 10 things you need to know about leaving shared hosting

Setting up and configuring SSL

2 Servers - Web & MySQL

Varnish / Memcache for caching

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 44: 10 things you need to know about leaving shared hosting

https://www.digitalocean.com/community/

https://www.linode.com/docs

http://www.youtube.com/user/TJsWebDev/

http://www.cyberciti.biz

http://www.rosehosting.com/blog

http://www.servermom.org

http://www.tecmint.com

http://webchat.freenode.net/?channels=digitalocean&uio=d4

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 45: 10 things you need to know about leaving shared hosting

Mike Johnson.http://gdargaud.net/Humor/QuotesHardwareSoftware.html

Jonathan Perlman - WordCamp Montreal 2014 August 17, 2014

Page 46: 10 things you need to know about leaving shared hosting

August 17, 2014Jonathan Perlman - WordCamp Montreal 2014

Questions

Thank you!

Jonathan Perlman

August 17, 2014

Montreal, Quebec

@jpurpleman

[email protected]

http://purpleman.org/wcmtl

@