基于 Debian 12 体验 VestaCP 的 Debian 分支 myVesta 面板并增加 PHP 8.3 环境

myVesta 是 VestaCP 的 Debian 分支,由 VestaCP 开发人员之一开发。
专注于安全性和稳定性,并进行了大量安全改进。

一、安装 myVESTA
1、下载安装脚本

curl -O http://c.myvestacp.com/vst-install-debian.sh

2、然后运行它

bash vst-install-debian.sh

我是通过配置生成页面勾选组件安装的(https://www.myvestacp.com/install_generator.html

bash vst-install-debian.sh --apache yes --nginx yes --phpfpm yes --vsftpd no --proftpd no --named no --mysql no --mysql8 yes --postgresql no --exim no --dovecot no --clamav no --spamassassin no --iptables yes --fail2ban yes --quota no --force no --interactive yes --lang no --port 8083 --hostname hestiacp.147180.com --secret_url myVesta

3、Mysql 数据库安装问题
我在安装时选择了 Mysql 8 ,导致在安装时出现了错误,两次重装安装都提示数据库启动失败。

Err:3 http://repo.mysql.com/apt/debian bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
Get:7 https://nginx.org/packages/mainline/debian bookworm/nginx amd64 Packages [15.8 kB]
Get:8 https://apt.myvestacp.com/bookworm bookworm/vesta amd64 Packages [1,071 B]
Reading package lists... Done        
W: GPG error: http://repo.mysql.com/apt/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
E: The repository 'http://repo.mysql.com/apt/debian bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
=== Disable daemon autostart /usr/share/doc/sysv-rc/README.policy-rc.d.gz
=== Installing MySQL 8
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package mysql-client is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mysql-server' has no installation candidate
E: Package 'mysql-client' has no installation candidate
- making sure startup is enabled for: mysql
- making sure mysql is started
Failed to start mysql.service: Unit mysql.service not found.
Error: mysql start failed

因为前几篇安装过数据库,所以解决也很简单:

wget https://repo.mysql.com/mysql-apt-config_0.8.29-1_all.deb
dpkg -i mysql-apt-config_0.8.29-1_all.deb

然后继续运行安装脚本安装完成。

二、增加PHP 8.3

默认安装的是 PHP 8.2 的版本,通过查看存储库也没有找到 PHP 8.3 的包,但是提供了脚本方便的安装
1、下载 php-installer:

wget -nv -O ./vesta-inst-php.sh https://c.myvestacp.com/tools/multi-php-install.sh

2、现在,您需要在运行脚本之前对其进行编辑

mcedit ./vesta-inst-php.sh

在所需的 PHP 版本中输入 1。

inst_56=0
inst_70=0
inst_71=0
inst_72=0
inst_73=0
inst_74=0
inst_80=0
inst_81=0
inst_82=0
inst_83=0

保存它(在“mcedit”中按 F2,确认保存,然后按两次 ESC 转义编辑器)
3、然后运行脚本

 bash ./vesta-inst-php.sh

三、删除首页的IO统计表格

编辑/usr/local/vesta/web/templates/admin/list_user.html删除对应代码块。

四、题外话

因为纠结于 FPM/FastCGI 于 Apache 2.0 Handler 的问题而不断查找 HestiaCP 能不能改成 Apache 2.0 Handler 才发现提及特意改成 FPM/FastCGI 的好像,但是不愿放弃这不在 VestaCP论坛找到另外一个分支 myVESTA 。这个貌似是 VestaCP 的人员开发的且只支持 Debian 系统,但是好在它支持 Debian 12 。
这个的目录结构更像vesta的目录结构。
增加 PHP 的扩展之类的跟 HestiaCP 差不多的操作。

ChiuYut

2024年04月19日

发布者

ChiuYut

咦?我是谁?这是什么地方? Ya ha!我是ChiuYut!这里是我的小破站!