Created
June 2, 2015 16:29
-
-
Save thebrecht/5263d8e1a90934518a31 to your computer and use it in GitHub Desktop.
wordpress_env_setup_manual
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WordPress 開發環境安裝手冊 | |
## 安裝 Vagrant | |
> http://www.vagrantup.com/downloads.html | |
請選擇適合的作業系統版本安裝。這是我們用來安裝和控制Wordpress 開發環境及應用程式的命令列工具 | |
## 安裝 VirtualBox | |
> https://www.virtualbox.org/wiki/Downloads | |
請選擇適合的作業系統版本安裝。安裝完後,會透過vagrant指令來控制VirtualBox,不用另外啟動 | |
## Windows 用戶下載 Git Bash | |
https://msysgit.github.io | |
## 下載Wordpress的Vagrant 設定檔 | |
> http://static.itho.me/workshop/wp-workshop.zip | |
## 安裝 Wordpress 開發環境 | |
1. 解壓縮 wp-workshop.zip | |
2. 切換到 解壓縮目錄 wordpress-workshop目錄底下,可以看到 Vagrantfile、wp-workshop.box 和 wordpress目錄 | |
3. 在此目錄中,執行: | |
> vagrant box add wp-workshop wp-workshop.box | |
4. 執行完畢後再執行 | |
> vagrant up | |
當vagrant up執行完畢後,可以打開瀏覽器輸入 | |
>http://localhost:3000 | |
即可看到wordpress的畫面,也代表順利安裝完成。這時只要編輯wordpress目錄中的檔案,即會同步更新 | |
## 關閉 Wordpress 開發環境 | |
- 要關閉這個開發環境,在wordpress-workshop 路徑下,執行以下命令即可: | |
> vagrant halt | |
- 可以執行以下指令來確認是否有正常關閉(看見poweroff的狀態即成功) | |
> vagrant status | |
- 下次要再啟動,一樣執行 `vagrant up` 即可 | |
## WordPress 管理帳號及密碼 | |
``` | |
username: admin | |
password: password | |
``` | |
## MySQL 資料庫帳密 | |
``` | |
MySQL | |
User: root | |
Pass: password | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment