Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WordPress on PHP7 on CentOS7 on Saraku-VPS.pdf
Search
Ryo Shibayama
February 04, 2016
0
30
WordPress on PHP7 on CentOS7 on Saraku-VPS.pdf
Ryo Shibayama
February 04, 2016
Tweet
Share
More Decks by Ryo Shibayama
See All by Ryo Shibayama
技術広報の集い #3 Lightning Talk - LayerX
serima
0
320
採用は全員で | Chuo TECH #1
serima
4
1.3k
高専 5 年時に 7 泊 8 日の合宿型ビジコンに参加したら人生が変わった
serima
0
380
カジュアル面談を通して “自社”のことを知る
serima
0
230
倒れても進捗 / Progress even if I fall
serima
0
160
CircleCI 導入への入門 / Introduction to CircleCI
serima
0
76
GameWithを支えるインフラ基盤 - スケールイン・アウト戦略編 / GameWith infrastructure - Scale in and out strategy
serima
0
43
エンジニア採用と PHP / Engineer Recruitment and PHP
serima
0
67
できることから始める OSS Contribution / Start OSS Contribution With What You Know
serima
1
170
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
327
21k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
KATA
mclloyd
29
14k
4 Signs Your Business is Dying
shpigford
180
21k
A designer walks into a library…
pauljervisheath
204
24k
Why Our Code Smells
bkeepers
PRO
334
57k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Transcript
WordPress on PHP 7 on CentOS 7 on Sakura-VPS @serima
2016.02.04 PHP 7 Casual Talks
@serima • βούϥεͷαʔόαΠυΤϯδχΞ • ͍ͷΞϓϦͱ͔࡞ͬͯ·͢ • Laravel 5.1 • ҙ֎ͱΦϑΟεौ୩ʹ͋Γ·͢
• ώΧϦΤ·Ͱెา5ʂ • ࠓɺ2 ճͷ LT • ͜ͳ͍ͩɺPHP BLT #2 ͰϥΠϒϥϦͷ੬ऑੑνΣο ΫͷΛ͠·ͨ͠
ܦҢ • PHP BLT #2 Ͱ༧Ҏ্ʹ PHP 7 ͷ͕গͳ͔ͬͨ •
20 ਓ͙Β͍ LT ͯ͠ɺ͔ͨ͠ 3 ਓఔ • ͳ͔ͥ PHP 6 ΛΠϯετʔϧͯ͠Έͨͬͯਓ͕ݱΕ ͨΓ… • Why PHPer People!
ัଊ • ͜ΜͳͭͿ͖Λ @fortkle ͞Μʹัଊ͞Εͯ͠·͍ɺ ͜ͷʹཱ͍ͬͯ·͢
ͦͦ WordPress ͬͯ PHP 7 ରԠͯ͠Δͷʁ
5.6 or greater!! ಛʹ PHP 7 ʹؔ͢Δಛهࣄ߲ݟͨΒͳ͍ ͪͳΈʹ࠷৽൛ɺWordPress 4.4.2
ಈ͘Ͱ͠ΐ • ·͊ී௨ʹಈ͘Ͱ͠ΐ͏ • @shin1x1 ͞ΜઌऔΓͯ͠ಈ͍ͯΔͬΆ͍͠
సػ • ݸਓϒϩάΛ 4 ͙Β͍લʹआΓͨ͘͞Β VPS Ͱӡ༻ ͍ͯͨ͠ • ۙͳͱ͜ΖͰ
WordPress ͕ͬऔΒΕΔࣄҊ͕ൃੜ • ϝϯςԿͯ͠ͳ͍ͷͰɺૣ͘Կͱ͔͠ͳ͍ͱ… • ࢝ͷٳΈظؒதʹॾʑݟ͢͜ͱʹͨ͠
͘͞Β VPS • ٱʑʹνΣοΫͨ͠Βಉ͡ྉۚͰεϖοΫ্͕ͬͯΔ • ࣌ͷྲྀΕΛײͨ͡ • Ҡߦͷڳͷߴ໐Γ
͔ͤͬ͘ͳͷͰ Infrastructure as Code
https://github.com/serima/ centos7-initalize-ansible
ΠχγϟϥΠζͷઆ໌ʢͬ͘͟Γʣ • admin ͍ͬͯ͏ϢʔβΛ࡞ΔΑʔ • SSH ϙʔτม͑ΔΑʔ • ύεϫʔυϩάΠϯېࢭ͢ΔΑʔ •
root ϩάΠϯېࢭ͢ΔΑʔ • sudo ݖݶ͚ͭΔΑʔ • firewall ͷઃఆ͢ΔΑʔ • 伴ஔ͘Αʔ • sshd ࠶ىಈ͢ΔΑʔ
https://github.com/serima/ centos7-php70-nginx-mariadb- ansible
࣍ͷεςοϓʢͬ͘͟Γʣ • ͖ͬ͞ root Ͱͷ ssh ϩάΠϯېࢭͪ͠ΌͬͨͷͰɺ admin ϢʔβͰ ssh
͢͠ • ඞཁͳύοέʔδͱ͔ΖΖΠϯετʔϧ • yum Ͱ PHP 7 ΛೖΕ͍ͨͷͰɺremi repository Ճ • ʂ • ৄ͘͠ playbook ݟͯͶ…
ੑೳൺֱͯ͠Έͨ • Before • PHP 5.5 • Apache/mod_php • MySQL
• HDD • Osaka region • After • PHP 7.0 • nginx/php-fpm • MariaDB 5.5 • SSD • Tokyo region ͋·Γʹҧ͍͕ଟ͗ͯ͢ɺ ७ਮʹPHP7ͷ͓͔͔͔͛Βͳ͍
314 CFGPSF BGUFS Request Per
Second 4 ഒ!
2ϲ݄͘Β͍ӡ༻͍ͯ͠·͕͢ Կ͋Γ·ͤΜ
ͱ͍͑ɺ ϓϥάΠϯʹཁҙ
ೖΕ͍ͯΔϓϥάΠϯ • Akismet • All In One SEO Pack •
All In WP Security • Crayon Syntax Highlighter • Easy Twitter Feed Widget • Google Analytics • Header and Footer • WordPress Popular Posts • WordPress Πϯϙʔτπʔϧ • WP Multibyte Patch • WP Social Bookmarking Light
·ͱΊ • ࢲ WordPress ͷϓϩͰ͋Γ·ͤΜ✋ • ࣄͰ͏ͱ͖͏ͪΐͬͱৄ͘͠ݕ౼͠·͠ΐ͏ • ͰɺύϑΥʔϚϯε͔ͳΓ্͕ΔͷͰ͜Ε͔Βཱ ্ͪ͛Δͱ͖ɺPHP
5.6 ࣺͯͯ PHP 7 Λੵۃతʹ ͍ͬͯ͘΄͏͕ྑ͍ͱࢥ͍·͢ • σϞͷ४උΛ͠Α͏ͱࢥͬͯɺࣄΛૣΊʹΓ্͛ͨͷʹɺ৽نͰआΓͨ͘͞ΒVPSͷαʔό͕͍ͭ·Ͱί ϯτϩʔϧύωϧʹݱΕͳͯ͘ٽ͍ͨʢݴ͍༁ʣ
http://serima.co/blog/