EasyEngine 輕鬆安裝 WordPress

·

EasyEngine

Photo by Steve Busch on Unsplash

EasyEngine 可以很輕鬆管理 nginx,它是一種非常快速的 Web 服務器程序,EasyEngine 簡單的指令比 Apache 更簡單易用,在低配的記憶體 VPS 上,以 nginx 為界面,性能比 Apache 更好、更快,特別是當網站訪問者的數量在增加時。

使用 EasyEngine,您不需要使用龐大的面板程序,或使用複雜的指令或依賴於系統管理員,讓你管理 WorsPress 網站更輕鬆,也是 VPS 入門的好工具,讓不熟悉 VPS 主機的朋友也可以很親民。

EasyEngine 安裝前的準備

使用 EasyEngine 來建置你的網站,第一步就要選擇一家 VPS 主機託管商,依照你的喜好來選擇,下面官方舉出 3 家 VPS 參考。

AWS 創建 VPS 教學:

https://easyengine.io/docs/install/aws/

Linode 創建 VPS 教學

https://easyengine.io/docs/install/linode/

DigitalOcean 創建 VPS 教學:

https://easyengine.io/docs/install/digitalocean/

注意:EasyEngine 只能支援 Ubuntu / Debian 系統,不要選到 CentOS 系統:

  • Ubuntu 12.04, 14.04 and 16.04
  • Debian 7 and 8

VPS 主機上使用 EasyEngine 輕鬆安裝 WordPress

防火牆端口的配置

  • 22/TCP (Inbound/Outbound) : Standard SSH port
  • 80/TCP (Inbound/Outbound) : Standard HTTP port
  • 443/TCP(Inbound/Outbound) : Standard HTTPS port
  • 22222/TCP (Inbound) : To access EasyEngine admin tools
  • 11371/TCP (Outbound) : To connect to GPG Key Server

安裝 EasyEngine 主程序

安裝前先升級你剛安裝好的 Linux 系統,以 Ubuntu 為示範:

sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y autoremove

選擇時區, Asia –> Taipei

dpkg-reconfigure tzdata

開始安裝 EasyEngine

wget -qO ee rt.cx/ee && sudo bash ee

安裝過程 EasyEngine 會要求輸入你的英文名及信箱,請自行鍵入。

EasyEngine 主程序安裝好之後,再多安裝 admin 管理工具,可使用 phpMyadmin 管理資料庫。

ee stack install

安裝 admin 管理工具時,EasyEngine 會回覆網頁帳密,要記下來,登入 admin 管理網頁時需要輸入帳號、密碼:

例如:

HTTP Auth User Name: EasyEngine
HTTP Auth Password : cOyVla

創建 WordPress 網站

使用 EasyEngine 創建網站,是非常容易的事情,依照 EasyEngine 的預設腳本,可以建置您想要類型網站。

WprdPress 標準網站形式:

ee site create example.com --wp          # 安裝 wordpress 沒有任何的快取
ee site create example.com --w3tc        # 安裝 wordpress + w3-total-cache 外掛
ee site create example.com --wpsc        # 安裝 wordpress + wp-super-cache 外掛
ee site create example.com --wpfc        # 安裝 wordpress + nginx fastcgi_cache
ee site create example.com --wpredis     # 安裝 wordpress + nginx redis_cache

也可以創建一般的網站形式:

ee site create example.com --html     # 只有 html 的網站
ee site create example.com --php      # 只有 php 的網站
ee site create example.com --mysql    # php & mysql 的網站

創建一個 WordPress 網站的指令:

ee site create example.com --wp

EasyEngine 可以運行 PHP5.6 及 PHP7.0 雙系統,如果想使用 PHP7.0 指令如下:

ee site create example.com --wp --php7

已運行的網站,加上 Let’s Encrypt 免費證書

ee site update example.com --letsencrypt

其他注意事項

  • 使用 EasyEngine 的 Let’s Encrypt 加密證書後,不能使用 cloudflare CDN。
  • 安裝 Let’s Encrypt 加密證書前,請先將 example.com 和 www.example.com 指向你的服務器,不可缺少別名。

yungke.me 網站就是以 EasyEngine 建置,搭配 Redis 快取緩存。

EasyEngine 使用上任何問題,歡迎使用下方的回覆討論。

EasyEngine 安裝 VPS 教學系列文章:

1. EasyEngine 自動更新 Let’s Encrypt SSL 加密證書

https://yungke.me/easyengine-automated-renew-letsencrypt-certificates/

2. EasyEngine 上安裝 WP Rocket 快取外掛

https://yungke.me/wp-rocket-in-easyengine/

3. Webinoly (EasyEngine) 配置 iptables 防火牆

https://yungke.me/webinoly-setup-iptables/

hosted by kinsta

Comments

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

Hey, 想嘗試 Kinsta 主機嗎?

18748

Kinsta 高效能主機

wPowered Starter 方案

馬上訂購

18749
Your Mastodon Instance