# 測試環境相關設定 ## Web Server 架在 **192.168.2.252** 中的Hyper-v中 ### Hyper-v 細部資料 * RAM: 8192 MB * CPU: 1個虛擬CPU * HDD: 100 GB * LAN: hpyer-v-01 ### Server 基本資料 * IP: 192.168.2.100 * Hostname: sbl-test-server * System: Linux sbl-test-server 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ### SSH * SSH Port: 22 * user account: sbl * user password: `wiFtg2086` ### Apache * virtual host 設定檔存放位置 `/etc/apache2/sites-enabled/` * listen ports conf位置: `/etc/apache2/ports.conf` * 各站點上一層跟目錄 `/opt/sites` * 此目錄底下為各站點的資料夾 請統一放在這裡 * 開新 virtual host 請注意因 192.168.2.100 沒有綁定任何 domain 所以請使用 listen port 方式分開 ### PHP * Version: PHP 7.4.10 (cli) (built: Sep 9 2020 06:36:14) ( NTS ) ### Composer * Version: 1.10.13 ### NPM * Version: 3.5.2 ### 其他 * Git ### 開新站點SOP 1. `/opt/sites` 底下新增資料夾 (ex: newsite) 2. `/etc/apache2/ports.conf` 新增監聽的port 3. 於`/etc/apache2/sites-enabled/` 新增一個新站點的virtual host的 conf (可複製 `etc/apache2/sites-enabled/010-test-gig.conf`) 後修改 4. `sudo service apache2 restart` 5. 請在瀏覽器打上 `http://192.168.2.100:(指定的port)` * 有出現就代表成功 * 沒出現請檢查conf檔是否正確 ## Test DB Server 架在 **192.168.2.252** 中的Hyper-v中 ### Hyper-v 細部資料 * RAM: 8192 MB * CPU: 1個虛擬CPU * HDD: 150 GB * LAN: hpyer-v-01 ### Server 基本資料 * IP: 192.168.2.105 * Hostname: test-db-server * System: Linux sbl-test-server 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ### SSH * SSH Port: 22 * user account: sbl * user password: `wiFtg2086` ### MySQL * Version: Ver 14.14 Distrib 5.7.31, for Linux (x86_64) using EditLine wrapper * root password: **`8jbJcE3n@ewc`** **非必要請勿隨意登入** * 程式專用user * 允許在 `192.168.2.0/24` 網段內直接連線 * account: `projectuser` * password: `Q1gawIq@e1ITO` * 開發者專用user * 允許在 `192.168.2.0/24` 網段內直接連線 * account: `RDUser` * password: `sa5oHO@Wu1OJE` ### Redis * Version: Redis server v=4.0.9 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=9435c3c2879311f3 * maxmemory: 512 MB * 允許在 `192.168.2.0/24` 內直接連線