ubuntu16.04 Hestia 安裝

套件準備

apt-get update 
wget -qO – https://gpg.hestiacp.com/deb_signing.key | apt-key add –
apt-get install ca-certificates

wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh

指令產生器
https://gabizz.github.io/hestiacp-scriptline-generator/

sudo bash hst-install.sh –apache no –nginx yes –phpfpm yes –multiphp no –vsftpd yes –proftpd no –named yes –mysql yes –postgresql no –exim no –dovecot no –clamav no –spamassassin no –iptables yes –fail2ban yes –quota no –api yes –force no –interactive yes –port 8083 –hostname hcp.twnict.com –email tonny.markx@gmail.com –password 2gaujrgr –lang en

安裝好之後 變更密碼
v-change-user-password admin XXXXX

注意 nginx 可能遇到問題
nginx.service: Can't open PID file /var/run/nginx.pid (yet?) after start: No such file or directory
找到
nano /lib/systemd/system/nginx.service

[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStartPost=/bin/sleep 0.1
ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID

這樣可能就可以解開

注意 phpmyadmin 無法用 root 登入 要透過 下面的指令

ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD("2gaujrgr")