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
PHP7+Laravel5.3 on Google App Engine
Search
Takumi Yoshida
December 09, 2016
Technology
1.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PHP7+Laravel5.3 on Google App Engine
PHP7+Laravel5.3 on Google App Engine
Using Google app Engine Flexible Environment
Takumi Yoshida
December 09, 2016
More Decks by Takumi Yoshida
See All by Takumi Yoshida
golangで作るslackbot
ytakky2014
0
190
GKEでは StackDriver Loggingに どうやってログを送っているか
ytakky2014
3
5.5k
Auralization of Tech News +Change in technology interest for my 4 years.
ytakky2014
0
130
Webメディアでのdataflow活用
ytakky2014
1
570
睡眠をエンジニアリングする
ytakky2014
0
290
DevOps In All About
ytakky2014
0
3.6k
Other Decks in Technology
See All in Technology
つくって納得、つかって実感! 大規模言語モデルことはじめ ver2.0
recruitengineers
PRO
4
1.5k
[しろおび夏祭り2026] チャットするAIから、作業するAIへ - 使われ方の変化と、その裏側で起きていること
kk0n
0
1.7k
今こそ聞きたいソフトウェア設計 ドメイン駆動設計再入門
masuda220
PRO
17
7.1k
LanceDB入門
mocobeta
7
340
メルカリのグローバルアプリで挑んだ AlloyDB 運用と課題解決の実践記
hatappi
0
240
MIRU 2026 チュートリアル
keisuke198619
0
880
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
19k
FPGAが実現する遠方宇宙の高空間分解能天体撮影 -大型地上望遠鏡の視力を補正する「補償光学」とは?-
komei_mt
0
220
【AG-UI × A2UI × MCP Apps】Generative UIをやさしく解説する
nrinetcom
PRO
1
110
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
1.6k
Pavlokで始める電撃駆動開発
sgrsn
0
190
個人OSSが、机の上から世界に広がるまでの話
shinyasaita
1
380
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.3k
How to train your dragon (web standard)
notwaldorf
97
6.7k
The Pragmatic Product Professional
lauravandoore
37
7.4k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
480
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
480
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
480
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
990
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
Designing for Timeless Needs
cassininazir
1
440
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
240
Transcript
PHP7+Laravel5.3 on Google App Engine y.takky2014
Google App Engine is… • Paas • Language: Python, Java7,
PHP, Go • Auto Scaling • CloudSQL,BigData ….
• “App Engine runs your PHP web application using a
PHP 5.5.34 interpreter” PHP Version IUUQTDMPVEHPPHMFDPNBQQFOHJOFEPDTQIQSVOUJNF
Laravel5.3 “However, if you are not using Homestead, you will
need to make sure your server meets the following requirements: PHP >= 5.6.4 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension “ IUUQTMBSBWFMDPNEPDT
App Engine flexible environment • Google Compute Engine ϕʔε •
Auto Scaling • ࣮ߦڥͷఆ͕ٛͰ͖Δ • Docker Base
Step0. ४උ • Project࡞ • https://console.cloud.google.com/appengine? src=ac • Cloud SdkΠϯετʔϧ
• https://cloud.google.com/sdk/ • gcloud init • ࣗͷΞΧϯτ/projectͰೝূ͓ͯ͘͠
Step1. Laravel5.3ͷ४උ • https://github.com/laravel/laravel/releases • 5.3.16ΛDLͯ͠దͳσΟϨΫτϦʹҠಈ • ࠓճ ~/laravel5.3_on_appengine/appԼʹ Ҡಈ
• local͕php7Ͱ͋Εcomposer updateͱenv ४උ͓ͯ͘͠
Step2 make docker file • Dockerhubʹ͋ΔPHP7+ApacheΛ༻ • https://hub.docker.com/_/php/ • apacheͷઃఆϑΝΠϧͱLaravel5.3Λ
ADD͢Δ
Step3. make app.yaml • https://cloud.google.com/appengine/docs/ flexible/custom-runtimes/quickstart • ͦΜͳʹॻ͘͜ͱͳ͍
Step4. gcloud app deploy • gcloud app deploy • GAE্ʹσϓϩΠͰ͖Δ
• Dockerfile͔Βbuildͯ͠ʙͬͯײ͡ͳͷͰ ͔ͳΓ͔͔࣌ؒΔ
gcloud app browse • σϑΥϧτͷϒϥβͰ։͚Δ
Weak point • App engineʹൺͯߴ͍ 1ϲ݄Ͱ5000ԁ͙Β͍ • App engineͱ͍͍࣮࣭ͭͭCompute
Engine • ComputeEngineͷํ͕͍҆ • ෛՙߟ͑ͳ͚Εn1-standard/ Preemptible Ͱ $8ҎԼ?
Conclusion • GKE΄Ͳ͘͠ͳ͘DockerΛ͑Δɻͱ͍͏ ͍͍ • ࠓճ࡞ͬͨͷҎԼ • https://github.com/ytakky2014/ laravel5.3_on_appengine