Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Install wordpress on EC2
Search
Daniel Tseng
September 26, 2013
Programming
0
340
Install wordpress on EC2
2013.09.26 talk in NTU garage
Shaolin Hsu補充:不用設 elastic ip 之後也可以連線,特在此更正!
Daniel Tseng
September 26, 2013
Tweet
Share
More Decks by Daniel Tseng
See All by Daniel Tseng
What-I-saw-the-EC-trend
kpman
0
170
Uitox-global-EC-trend
kpman
0
140
NTU PreConf @NTU.IM
kpman
0
170
ITC_Lab#
[email protected]
kpman
1
65
招生說明會@ITSEED
kpman
0
41
[email protected]
kpman
0
54
[email protected]
kpman
0
90
Other Decks in Programming
See All in Programming
TestingOsaka6_Ozono
o3
0
170
Jetpack XR SDKから紐解くAndroid XR開発と技術選定のヒント / about-androidxr-and-jetpack-xr-sdk
drumath2237
1
180
クラウドに依存しないS3を使った開発術
simesaba80
0
140
GISエンジニアから見たLINKSデータ
nokonoko1203
0
180
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
110
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
0
250
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
110
Graviton と Nitro と私
maroon1st
0
130
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
400
Go コードベースの構成と AI コンテキスト定義
andpad
0
130
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
0
130
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.3k
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.3k
Heart Work Chapter 1 - Part 1
lfama
PRO
3
35k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
79
Crafting Experiences
bethany
0
21
Why Our Code Smells
bkeepers
PRO
340
57k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
65
35k
Building Applications with DynamoDB
mza
96
6.8k
How GitHub (no longer) Works
holman
316
140k
How Software Deployment tools have changed in the past 20 years
geshan
0
30k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
90
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
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!