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
Install wordpress on EC2
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Daniel Tseng
September 26, 2013
Programming
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Install wordpress on EC2
2013.09.26 talk in NTU garage
Shaolin Hsu補充:不用設 elastic ip 之後也可以連線,特在此更正!
Daniel Tseng
September 26, 2013
More Decks by Daniel Tseng
See All by Daniel Tseng
What-I-saw-the-EC-trend
kpman
0
180
Uitox-global-EC-trend
kpman
0
150
NTU PreConf @NTU.IM
kpman
0
180
ITC_Lab#
[email protected]
kpman
1
75
招生說明會@ITSEED
kpman
0
53
[email protected]
kpman
0
60
[email protected]
kpman
0
100
Other Decks in Programming
See All in Programming
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
190
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
480
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
気持ちぃ〜角丸 Squircle
ryu1013
0
310
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
golang-bob.pdf
iwatsukayura
0
130
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
From π to Pie charts
rasagy
1
400
For a Future-Friendly Web
brad_frost
184
10k
Crafting Experiences
bethany
1
380
The Cult of Friendly URLs
andyhume
79
7k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Transcript
Install wordpress on EC2
Who am I? 曾建勳 kpman HackNTU kpman | code
Agenda Create your EC2 Set up Security Group Elastic IP
SSH to your instance Set up environment Install wordpress
Create your EC2 登入AWS --> http:/ /aws.amazon.com/
Create your EC2 右上角是你的主機位置 選擇Tokyo,主機距離近,速度快 點選左方Instance --> 選擇Classic Wizard
Create your EC2
Create your EC2 key pair要設定並下載存好
Set up Security Group
Create your EC2 如此⼀一來你就有了你自己的Instance!
Elastic IP 每⼀一台主機都要申請,未來才可以連線 如果申請了,記得要綁訂主機,不然會扣錢...
Elastic IP Network & Security --> Elastic IPs . 將IP
associate到Instance 此時Instance的Elastic ip會出現剛申請的ip
SSH to your instance open iTerm2 更改pem檔權限 ssh連線到instance ubuntu@ip-xxx-xxx-xxx-xxx代表成功連線! chmod
600 ~/xxx.pem ssh -i ~/xxx.pem ubuntu@ip
Set up environment update & upgrade sudo apt-get update sudo
apt-get upgrade
Set up environment 安裝 tasksel sudo apt-get install tasksel sudo
tasksel install lamp-server
Set up environment tasksel安裝畫面
Set up environment 安裝 phpmyadmin sudo apt-get install phpmyadmin
Set up environment phpmyadmin安裝畫面
Set up environment 做連接 瀏覽器輸入:Public DNS/phpmyadmin cd /var/www sudo ln
-s /usr/share/phpmyadmin
Install wordpress 到web server預設資料夾 下載wordpress包 解壓縮 wget http://wordpress.org/latest.tar.gz cd /var/www
tar -xzvf latest.tar.gz
Install wordpress 進到mysql mode mysql -u root -p
Install wordpress 創建DB給wordpress使用 創建user 設定密碼 CREATE DATABASE wordpress; CREATE USER
wordpressuser@localhost; SET PASSWORD FOR wordpressuser@localhost =PASSWORD("password");
Install wordpress 讓user有使用權 refresh mysql GRANT ALL PRIVILEGES ON wordpress.*
TO wordpressuser@localhost IDENTIFIED BY 'password'; FLUSH PRIVILEGES;
Install wordpress 到wordpress資料夾,複製config檔 修改wp-config.php檔 cp wp-config-sample.php wp-config.php define('DB_NAME', 'wordpress'); define('DB_USER',
'wordpressuser'); define('DB_PASSWORD', 'password');
Install wordpress 瀏覽器輸入:Public DNS/wordpress installation page is up and waiting
for you :)
林北總算成功啦!
reference EC2利用tasksel架wordpress經驗分享 setting-up-wordpress-on-amazon-ec2-in-5- minutes/ how-to-install-wordpress-on-ubuntu-12-04
工商服務 https:/ /www.facebook.com/css3.tw
分享是世界上最美好的事情
Thank you!