Skip to content

Instantly share code, notes, and snippets.

@thebrecht
Created May 11, 2015 09:20
Show Gist options
  • Select an option

  • Save thebrecht/074e1a48f3e27ea11358 to your computer and use it in GitHub Desktop.

Select an option

Save thebrecht/074e1a48f3e27ea11358 to your computer and use it in GitHub Desktop.
env_setup
## 安裝 vagntant
> http://www.vagrantup.com/downloads.html
請選擇適合的作業系統版本安裝
## 安裝 VirtualBox
> https://www.virtualbox.org/wiki/Downloads
請選擇適合的作業系統版本安裝
## 下載Wordpress的Vagrant 設定檔
> https://github.com/Varying-Vagrant-Vagrants/VVV/archive/develop.zip
## 安裝 Wordpress 開發環境
1. 切換到下載路徑,解壓縮VVV-develop
2. 使用終端機/命令列執行指令(Windows的用戶請確保使用管理員權限開啟命令列),切換到VVV-develop目錄之後,執行:
> vagrant up
- 這個執行過程會有漫長,請確保執行時網路順暢,它會將上課Wordprss的PHP、MySQL資料庫、Web Server安裝起來
- 安裝完畢後,連上http://local.wordpress.dev/ 即可看到安裝好的wordpress
- 如需管理資料庫,可透過http://vvv 連到 phpmyadmin
- (你的安裝路徑)/VVV-develop/www/wordpress-default 即是對應到 local.wordpress.dev 的路徑,修改該目錄下的東西,即會影響到 wordpress
- 安裝後,可登入至後台修改為繁體中文語系Setting > General > Site Language ,在下拉選單中改為繁體中文,儲存即可
## WordPress admin usernames and passwords
```
username: admin
password: password
```
## MySQL 資料庫帳密
```
MySQL
User: root
Pass: root
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment