====== PVE 內安裝 phplist ====== * 直接選用 CT Templates - [[https://www.turnkeylinux.org/updates/new-turnkey-phplist-version-160|turnkey-phplist (16.0-1)]] * 啟動後就安裝好 phpList - v3.5.3 * 使用 https://ipv4/admin/ 進行設定 ===== 相關設定 ===== ==== 將資料庫開放外部主機存取 ==== * 因為預設資料庫並不對外 netstat -ant | grep 3306 tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN * 必須調整 MariaDB 的設定 bind-address 可以外部主機存取vi /etc/mysql/mariadb.conf.d/50-server.cnf : # localhost which is more compatible and is not less secure. bind-address = 0.0.0.0 : * 重新啟動服務systemctl restart mariadb * 建立可讓外部主機存取帳號 - 以 root 進入資料庫命令列建立帳號mysql -u root不需要密碼就可以登入 - 建立外部任何主機都可以存取 phplsit 的帳號 Exp. mybot CREATE USER 'mybot'@'%' IDENTIFIED BY '**password**'; GRANT ALL PRIVILEGES ON phplist.* TO 'mybot'@'%'; FLUSH PRIVILEGES; * 參考網址 - https://webdock.io/en/docs/how-guides/database-guides/how-enable-remote-access-your-mariadbmysql-database {{tag>phplist pve}}