Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
WordPress on PHP7 on CentOS7 on Saraku-VPS.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ryo Shibayama
February 04, 2016
49
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WordPress on PHP7 on CentOS7 on Saraku-VPS.pdf
Ryo Shibayama
February 04, 2016
More Decks by Ryo Shibayama
See All by Ryo Shibayama
技術広報の集い #3 Lightning Talk - LayerX
serima
0
470
採用は全員で | Chuo TECH #1
serima
4
1.5k
高専 5 年時に 7 泊 8 日の合宿型ビジコンに参加したら人生が変わった
serima
0
480
カジュアル面談を通して “自社”のことを知る
serima
0
300
倒れても進捗 / Progress even if I fall
serima
1
920
CircleCI 導入への入門 / Introduction to CircleCI
serima
0
160
GameWithを支えるインフラ基盤 - スケールイン・アウト戦略編 / GameWith infrastructure - Scale in and out strategy
serima
0
110
エンジニア採用と PHP / Engineer Recruitment and PHP
serima
0
140
できることから始める OSS Contribution / Start OSS Contribution With What You Know
serima
1
300
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Building the Perfect Custom Keyboard
takai
2
950
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
A designer walks into a library…
pauljervisheath
211
25k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
290
Designing for Timeless Needs
cassininazir
1
550
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
660
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/