最近再找一款能夠方便架站自由度也高的管理面板,主要是為了架設 LEMP 的環境,於是找到這款 Hestiacp 。這是 Vestacp 的兄弟款,不過 Vestacp 已經沒有維護了。
先講結論:
這是一款學習門檻較高的 panel,建議提供給已經熟悉使用 debain / ubuntu 的管理員,可以做一個屬於自己的習慣的模版和 SOP,對於較為複雜的 LEMP 網站會滿方便的。但因為是開源的服務,導致還是不是很方便(和 aapanel 比較),對於習慣無 panel 操作的用戶還是會感覺到礙手礙腳的。
—
這款 Hestiacp 的好壞,個人分析如下:
優點:
- Panel 最大的好處就是有許多配置都調整好了,不用費心客製化 LEMP 的各種參數。
- 同樣使用 Panel 的好處之一:很多動作不用一堆指令,用網頁 UI 點一點就處理好了。
- 這款 Hestiacp 許多套件安裝和配置是使用系統原生的實作方法, panel 實作安裝服務等也是很透明易懂,甚至提供開發文件。也是開源的。
- 許多操作是原生的作法,會用 debain / ubuntu 的話會很方便,也不會有過多包裝,不用擔心學了以後其他 panel 或是轉換無 panel 等有學習障礙。
- 有還在維護中的文件和論壇,而且 panel 也有繁體中文的翻譯可以使用。
- 內建網站統計工具,是面向 MIS/SE 的一套統計服務。
缺點:
- 使用 panel 都會有壞處就是:習慣使用 command line 的操作的話,要強迫自己有些需求要從 panel 上實現,要不 panel 沒有同步的話可能會有設定互相衝突覆蓋的問題。
- Hestiacp 有部分設定在網頁上不方便操作,要用 v-xxxxx 等 panel 指令動作比較快處理,參考列表。學習門檻較高。
- 文件管理器長的很醜,如果有需要還是推薦用 command line 處理比較舒服。
- 開源的 Panel 要記得常更新,避免被 0day 攻擊,更新時要注意客製化的 template 等需要確保不會被更新覆蓋。
- 客製化 http Service (Nginx / Apache)的樣版真的有夠麻煩。和 aapanel 的方便性差滿多的。
- Hestiacp 建立 LEMP 套件需要事先安裝好,套件無法獨立安裝(會與面板衝突導致不顯示)。
Hestiacp 論壇: https://forum.hestiacp.com/
介紹:https://hestiacp.com/
文件:https://docs.hestiacp.com/
Github:https://github.com/hestiacp/hestiacp
支持系統:
- Debian 10
- Debian 11
- Ubuntu 18.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
— 以下架設和簡易心得 —
提醒下:有部分配置和安裝需要更詳細的測試,並非一個完整的安裝 SOP。
先登入root 權限,更新一遍
apt-get update
下載 install.sh
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
下載 install.sh
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
參考選定安裝(https://gabizz.github.io/hestiacp-scriptline-generator/)不安裝 mysql \ http server 做最小安裝,port 設定 8083:
sudo bash hst-install.sh --apache no --phpfpm no --multiphp no --vsftpd no --proftpd no --named yes --mysql no --postgresql no --exim yes --dovecot yes --sieve no --clamav yes --spamassassin no --iptables yes --fail2ban yes --quota no --api no --interactive yes --hostname no --email no --password no --with-debs no --port '8083' --lang 'zh-tw' --force
更新 Panel 網域(假設網域 cp-testing.69939.uk),記得 dns 要先設定上
v-change-sys-hostname cp-testing.69939.uk
Panel 網域補 SSL
v-add-letsencrypt-host
更改密碼
v-change-user-password admin 密碼
透過上述選定安裝,預設安裝的服務有這些:
後台新增一個用戶,設定方案為 default
點入該新增的帳號以後,選擇右上角登入該帳號之後,就可以創建其他網站。
再創建網站之前如果需要編輯 nginx 內容,需要編輯樣版,參考:https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work
Nginx 的路徑為:
/usr/local/hestia/data/templates/web/nginx/php-fpm/
檔案要記得複製一份新的並且命名好。避免更新 panel 的時候被覆蓋回去。
另外備註一些參考: