将ISPConfig 3.1更新为ISPConfig 3.2

本教程说明了将ISPConfig 3.1服务器更新为ISPConfig 3.2的步骤。本教程与CentOS,Debian和Ubuntu操作系统兼容。

在本页面

  1. 检查ISPConfig 3.2系统要求
  2. 安装新的软件依赖项
  3. 检查自定义配置文件模板
  4. 将ISPConfig 3.1更新到3.2
  5. 在更新时需要帮助吗?
  6. 链接

请参阅ISPConfig 3.2发行说明,以获取新功能列表以及有关ISPConfig 3.2发行版的其他信息。

检查ISPConfig 3.2系统要求

ISPConfig 3.2与以下操作系统版本兼容:

  • CentOS的7
  • CentOS的8
  • Debian 9
  • Debian 10
  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Ubuntu 20.04 LTS

ISPConfig 3.2是否可以在较旧的操作系统上运行?

如果安装的默认PHP版本是min,则可能可以正常工作。PHP 5.4。我们没有测试较旧的版本,并且当配置文件中包含不受支持的操作系统使用的旧软件版本不支持的设置时,您可能必须手动调整它们。

安装新的软件依赖项

ISPConfig 3.2中的某些功能需要其他软件。开始更新之前,应先安装此软件。

对于Debian和Ubuntu

sudo apt-get install bzip2 p7zip-full xz-utils lzip rar unrar-free goaccess dovecot-lmtpd

注意: rar和unrar-free软件包在ARM体系结构上不可用。这意味着网站备份的rar模式将无法使用,其他功能不会受到影响。

对于CentOS 7

sudo yum -y install ncurses-devel gcc geoip-devel tokyocabinet-devel lbzip2 p7zip xz-libs lzip
cd /tmp
wget http://tar.goaccess.io/goaccess-1.4.tar.gz
tar xfz goaccess-1.4.tar.gz
cd goaccess-1.4
sudo ./configure --enable-utf8 --enable-geoip=legacy
sudo make
sudo make install
sudo ln -s /usr/local/bin/goaccess /usr/bin/goaccess

对于CentOS 8

dnf install ncurses-devel gcc geoip-devel tokyocabinet-devel lbzip2 p7zip p7zip-plugins xz-libs lzip
cd /tmp
wget http://tar.goaccess.io/goaccess-1.4.tar.gz
tar xfz goaccess-1.4.tar.gz
cd goaccess-1.4
sudo ./configure --enable-utf8 --enable-geoip=legacy
sudo make
sudo make install
sudo ln -s /usr/local/bin/goaccess /usr/bin/goaccess

CentOS 7和8

在centOS或Epel资料库上没有免费的CentOS rar软件包,只有rarlab的试用版。如果仍然要安装,请按照以下步骤进行。Rar是可选的,仅用作网站备份的存档选项。如果您不安装它,那么仅rar作为备份格式选项将不起作用。

cd /tmp
wget https://www.rarlab.com/rar/rarlinux-x64-5.9.1.tar.gz
tar -zxvf rarlinux-x64-5.9.1.tar.gz
cd rar
sudo cp -v rar unrar /usr/local/bin/

检查自定义配置文件模板

ISPConfig支持自定义配置文件模板,该模板存储在文件夹/ usr / local / ispconfig / server / conf-custom /中。如果在此处创建了任何配置模板,则它们很可能与ISPConfig 3.2不兼容。删除它们(推荐)或根据ISPConfig 3.2附带的配置文件创建新的。

您可以使用以下命令检查是否有自定义配置文件:

ls -la /usr/local/ispconfig/server/conf-custom/

如果结果是这样,则您没有任何自定义配置文件模板:

[root@server1 tmp]# ls -la /usr/local/ispconfig/server/conf-custom/
total 8
drwxr-x---.  6 root root   76 Oct  1 00:02 .
drwxr-x---. 13 root root 4096 Oct  1 00:02 ..
-rwxr-x---.  1 root root   45 Oct  1 00:02 empty.dir
drwxr-x---.  2 root root   23 Oct  1 00:02 error
drwxr-x---.  2 root root   23 Oct  1 00:02 index
drwxr-x---.  2 root root   23 Oct  1 00:02 install
drwxr-x---.  2 root root   23 Oct  1 00:02 mail

因此,在这种情况下无需执行任何操作。

接下来,检查安装文件夹:

ls -la /usr/local/ispconfig/server/conf-custom/install/

以下结果显示,并且没有任何自定义模板的空文件夹:

[root@server1 tmp]# ls -la /usr/local/ispconfig/server/conf-custom/install/
total 4
drwxr-x---. 2 root root 23 Oct  1 00:02 .
drwxr-x---. 6 root root 76 Oct  1 00:02 ..
-rwxr-x---. 1 root root 45 Oct  1 00:02 empty.dir

因此,此处无需删除或调整自定义模板。

让我们为ISPConfig端口8080,Postfix,Dovecot和pure-ftpd加密

如果您已为ISPConfig虚拟主机和服务(如postfix,dovecot和pure-ftpd)手动配置了Let’s Encrypt证书,则这可能与ISPConfig为这些服务提供的新的Let#s加密功能冲突。当ISPConfig Updater询问是否应重新创建SSL证书时,通过选择“否”来保留旧的Let#s加密设置,或者注意删除任何可能已干扰新功能的自定义“ Let”加密续订脚本。在ISPConfig中。

将ISPConfig 3.1更新到3.2

现在我们可以开始更新过程了。该更新需要以root用户身份运行,对于Debian,请使用:

su -

成为root用户。

对于CentOS和Ubuntu,请使用:

sudo -s

拥有root权限。

然后,使用以下命令启动ISPConfig更新:

ispconfig_update.sh

在屏幕上出现的对话框中,选择“稳定”作为更新源:

ISPconfig稳定版
ISPconfig稳定版

注意:可用的更新选项会有所不同,具体取决于您的旧ISPConfig版本。但是总会有一个名为“稳定”的选项

更新过程将提出一些问题,如下所示。我用《》突出显示了建议的答案。

--------------------------------------------------------------------------------
 _____ ___________   _____              __ _         ____
|_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
  | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
  | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
 _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
 \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                              __/ |
                                             |___/
--------------------------------------------------------------------------------


>> Update

Operating System: Ubuntu 20.04.1 LTS (Focal Fossa)

This application will update ISPConfig 3 on your server.

Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]: yes《建议选择》

Creating backup of "/usr/local/ispconfig" directory...
Creating backup of "/etc" directory...
Checking ISPConfig database .. OK
Starting incremental database update.
Loading SQL patch file: /tmp/ispconfig3_install/install/sql/incremental/upd_dev_collection.sql
Reconfigure Permissions in master database? (yes,no) [no]: <-- On multiserver systems, choose yes, on single server systems, choose no.《多服务器版本选择“Yes”,单服务器版本选择“No”》

Reconfigure Services? (yes,no,selected) [yes]: yes《建议选择》

Configuring Postfix
Configuring Dovecot
Configuring Mailman
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring BIND
Configuring Pureftpd
Configuring Apache
Configuring vlogger
Configuring Apps vhost
Configuring Jailkit
Configuring Ubuntu Firewall
Configuring Database
Updating ISPConfig
ISPConfig Port [8080]: <-- just hit return to accept the default《单击“Enter”,选择默认》

Create new ISPConfig SSL certificate (yes,no) [no]: <-- Choose no to keep existing SSL cert, choose yes to create new SSL cert or switch from self-signed to a Let's encrypt SSL certificate.《选择“否”以保留现有的SSL证书,选择“是”以创建新的SSL证书,或从“自签名”切换为“让我们加密SSL”证书。》

Reconfigure Crontab? (yes,no) [yes]: yes《建议选择》

Updating Crontab
Restarting services ...
Update finished.

当您看到其他“ Configuring …”行时,请不要担心,实际结果取决于服务器的软件设置。

在更新时需要帮助吗?

如果您需要有关更新的帮助,如果对更新过程还有其他疑问,或者在更新系统后遇到问题,请在ISPConfig支持论坛中的howtoforge上发表描述您的问题的文章:

https://www.howtoforge.com/community/forums/installation-configuration.27/

对于个别支持问题,请不要使用本文下面的注释功能。

出了点问题,您想恢复到以前的设置吗?

ISPConfig更新程序将创建整个/etc目录(因此包含所有配置文件),目录/ usr / local / ispconfig(先前的整个ISPConfig安装)和ISPConfig dbispconfig MySQL / MariaDB数据库的备份。可以在/ var / backup /文件夹中找到备份,该子文件夹以’ispconfi_’开头,再加上服务器主机名和更新日期。例:

[root@server1 ~]# ls /var/backup/
ispconfig_server1.example.com_2020-10-15_19-38

此文件夹包含作为tar.gz文件的文件备份和一个SQL转储:

[root@server1 ~]# ls /var/backup/ispconfig_server1.example.com_2020-10-15_19-38/
etc.tar.gz  ispconfig_db_backup.sql  ispconfig_software.tar.gz

参考文章:https://www.howtoforge.com/updating-ispconfig-3-1-to-ispconfig-3-2/

滚动至顶部