Slide 1

Slide 1 text

Het Combell shared hosting platform kan meer dan u denkt Door Thijs Feryn

Slide 2

Slide 2 text

Hallo, ik ben Thijs

Slide 3

Slide 3 text

Ik ben @ThijsFeryn op Twitter

Slide 4

Slide 4 text

Ik ben Evangelist bij

Slide 5

Slide 5 text

Sinds 2004

Slide 6

Slide 6 text

Support 2004-2007

Slide 7

Slide 7 text

Ex-support lead 2007-2011

Slide 8

Slide 8 text

Evangelist sinds 2011

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Shared hosting

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Shared hosting Platform As A Service

Slide 16

Slide 16 text

Shared hosting Platform As A Service

Slide 17

Slide 17 text

MAKE SHARED HOSTING SEXY AGAIN

Slide 18

Slide 18 text

Focus op hosten van websites & applicaties

Slide 19

Slide 19 text

Zo mainstream mogelijk

Slide 20

Slide 20 text

Volgens de regels van de kunst

Slide 21

Slide 21 text

✓Recente versies ✓Configureerbare PHP.ini instellingen ✓Composer ✓Git ✓SSH ✓OpCache ✓PHP-FPM ✓Memory limit ✓Workers ✓CLI ✓MySQL ✓Redis ✓Memcached PHP hosting best practices

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

20.300 Wordpress 5.000 Drupal 2.650 Joomla 1.000 CodeIgniter 470 Magento 450 Prestashop 52.000 Andere Aantallen

Slide 25

Slide 25 text

Mensen langer binnen het platform houden

Slide 26

Slide 26 text

Zelfs bij groei of pieken

Slide 27

Slide 27 text

Start Meer PHP processen Caching technieken Dedicated shared hosting server

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Serverrollen opsplitsen

Slide 30

Slide 30 text

✓Webservers ✓Storage servers ✓Management servers ✓MySQL servers ✓SSH servers ✓Redis servers ✓Memcached servers ✓Varnish servers ✓Authenticatie servers ✓DNS servers ✓POP3/IMAP servers ✓SMTP servers ✓Anti-SPAM servers Serverrollen

Slide 31

Slide 31 text

Abstractie

Slide 32

Slide 32 text

Flexibiliteit

Slide 33

Slide 33 text

Elasticiteit

Slide 34

Slide 34 text

Stabiliteit

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

Platform as a Service

Slide 37

Slide 37 text

Controle paneel

Slide 38

Slide 38 text

➜ ~ ssh [email protected] sharedhostingferyneu@com-linssh018:~# ls cgi-bin data logs php subsites tmp www sharedhostingferyneu@com-linssh018:~# SSH sessie

Slide 39

Slide 39 text

Domeinnaam koppelen

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

FTP omdat het moet

Slide 43

Slide 43 text

SFTP omdat het kan

Slide 44

Slide 44 text

SFTP is secure

Slide 45

Slide 45 text

SFTP is gebaseerd op SSH

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Wachtwoord of SSH keys

Slide 49

Slide 49 text

Private sleutel op uw computer Publieke sleutel op onze server

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

➜ ~ sftp [email protected] ************************************************************** * * * * * Unauthorized access to this * * system/network is prohibited. * * * * * ************************************************************** Connected to ssh.sharedhosting.feryn.eu. sftp> ls cgi-bin data logs php subsites tmp www

Slide 52

Slide 52 text

➜ scp -r . [email protected]:~/test ************************************************************** * * * * * Unauthorized access to this * * system/network is prohibited. * * * * * ************************************************************** file1.txt 100% 12KB 196.3KB/s 00:00 file2.txt 100% 7733 252.2KB/s 00:00

Slide 53

Slide 53 text

➜ rsync -vr . [email protected]:~/test ************************************************************** * * * * * Unauthorized access to this * * system/network is prohibited. * * * * * ************************************************************** building file list ... done file1.txt file2.txt sent 279 bytes received 244 bytes 1046.00 bytes/sec total size is 20204 speedup is 38.63

Slide 54

Slide 54 text

Deployen via Git

Slide 55

Slide 55 text

sharedhostingferyneu@com-linssh018:~/test# git clone https:// github.com/ThijsFeryn/cacheable-site-silex.git . Cloning into '.'... remote: Counting objects: 157, done. remote: Total 157 (delta 0), reused 0 (delta 0), pack-reused 157 Receiving objects: 100% (157/157), 31.64 KiB | 0 bytes/s, done. Resolving deltas: 100% (71/71), done.

Slide 56

Slide 56 text

git push combell master git push combell dev

Slide 57

Slide 57 text

Elke deployment naar een aparte folder & www symlinken

Slide 58

Slide 58 text

Aparte subsite voor staging

Slide 59

Slide 59 text

Continuous Integration Continuous Delivery Continuous Deployment

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

Gratis !

Slide 65

Slide 65 text

Domain validation Organization validation Extended validation

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

HTTP/2

Slide 69

Slide 69 text

✓ Binair protocol ✓ Syntax is zelfde als HTTP/1.1 ✓ Meerdere requests over één connectie multiplexen ✓ Header compressie ✓ Server push HTTP/2

Slide 70

Slide 70 text

Sneller & compacter

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

Daarom gratis LetsEncrypt

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

Server push

Slide 75

Slide 75 text

Link: ;rel=preload;as=style,;rel=preload;as=script,;rel=preload;as=image Response header die je in je code kan meesturen

Slide 76

Slide 76 text

Cache

Slide 77

Slide 77 text

Optimaliseer database Optimaliseer PHP runtime Vermijd Vermijd

Slide 78

Slide 78 text

Herbereken niet als de data niet verandert

Slide 79

Slide 79 text

3 x 2 = ?

Slide 80

Slide 80 text

Wat kan je cachen? Byte code Database output Externe services Bestanden op de schijf Pagina’s

Slide 81

Slide 81 text

Caching is geen compensatiie voor slechte code

Slide 82

Slide 82 text

Caching is een architecturele strategie

Slide 83

Slide 83 text

Varnish

Slide 84

Slide 84 text

Normaal Gebruiker Server

Slide 85

Slide 85 text

Met Varnish GebruikerVarnish Server

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

No content

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

connect(’176.62.167.157’, 10033); $r->auth(‘password'); $r->set('foo', 100); var_dump($r->get(‘foo’)); $r->incr(‘foo'); $r->incrBy('foo', 10); $r->hSet(‘k’,'foo','value1');

Slide 92

Slide 92 text

No content

Slide 93

Slide 93 text

addServer(’79.174.131.2’, 9019); $m->set('foo', 100); var_dump($m->get('foo'));

Slide 94

Slide 94 text

APCu

Slide 95

Slide 95 text

No content

Slide 96

Slide 96 text

bool apcu_store ( string $key , mixed $var [, int $ttl = 0 ] ) mixed apcu_fetch ( mixed $key [, bool &$success ] ) bool apcu_delete ( mixed $key ) mixed apcu_exists ( mixed $keys )

Slide 97

Slide 97 text

Ramdisk

Slide 98

Slide 98 text

No content

Slide 99

Slide 99 text

Ambitieus & competitief platform

Slide 100

Slide 100 text

No content

Slide 101

Slide 101 text

https://feryn.eu https://twitter.com/ThijsFeryn https://instagram.com/ThijsFeryn

Slide 102

Slide 102 text

No content