实验性 ISPConfig 服务器 - Debian Stretch(Apache、MySQL、PHP 7、Pure-FTPD 和 ISPConfig 3.1)
在此页
- 1 准备系统
- 1.1 安装你喜欢的编辑器
- 1.2 配置主机名
- 更新主机名
- 1.3 安装GNU wget
- 1.4 安装密钥环
- 1.5 安装源列表
- 1.6 更新源列表
- 2.1 安装MySQL服务器及其依赖
- 2.2 安装Apache服务器及其依赖
- 2.3 安装ISPConfig git主分支文件
- 2.4 安装ISPConfig
本教程解释了如何使用 Debian stretch 存储库安装 ISPConfig 3 最新开发版本及其 recontainer.style.width=100%;var ins=document.createElement(ins);ins.id=slotId+-asloaded;ins.className=adsbygoogle ezasloaded;ins.dataset.adClient=pid;ins.dataset.adChannel=cid;if(ffid==2){ins.dataset.fullWidthResponsive=true;}
本教程的目的更多是为了实验和测试目的,而不是为了生产环境。
此实验性功能由 ncomputers.org 提供,旨在为不断改进 ISPConfig 做出贡献。
如果此功能成功,则可能有机会扩展其支持,最终 ISPConfig 可能有强大的基础来请求通过 debian 官方存储库分发 ISPConfig。
如果您想安装比本教程提供的功能更多的功能,请参阅官方 ISPConfig 文档。
由于这些建议,建议使用全新安装的 debian stretch:
- ispconfig-git 包在 /root/ispconfig3 文件夹中安装 ISPConfig git master 分支的内容。
- ispconfig-apache 包禁用 /etc/apache2 中的所有配置文件和模块。
本教程应提供 ISPConfig 的全面生产实施,包括:HTTP apache 服务器、FTP pure-ftpd 服务器、SSL Lets 加密证书、PHP 7 与 Fast-CGI 服务器、NTP 服务、MySQL 数据库服务器、WebDAV 服务和 ISPConfig 接口。
1 准备系统
1.1 安装你喜欢的编辑器
如果已经安装,可以跳过这一步。
apt-get install editor
1.2 配置主机名
主机名由两部分组成:子域和域。在下面的示例中,1a 对应于子域部分,ncomputers.org 对应于域部分。在 /etc/hosts 文件和下面的命令中相应地替换它们。
editor /etc/hosts
::1 1a.ncomputers.org 1a localhost
127.0.0.1 1a.ncomputers.org 1a localhost更新主机名
echo 1a > /etc/hostname; hostname 1a
1.3 安装 GNU wget
如果你的系统已经有 wget,你可以跳过这一步。
apt-get install wget --no-install-recommends
1.4 安装密钥环
这个 debian 软件包包括 ncomputers.org debian stretch 存储库的公钥。
wget http://ncomputers.org/debian/keyring.deb
dpkg -i keyring.deb
rm keyring.deb1.5 安装源列表
这个 debian 软件包包括 ncomputers.org debian stretch 存储库的源列表。
注意:也可以在 /etc/apt/sources.list 中写入下面的注释行,而不是安装下面的 debian 软件包,但是如果这些源列表将来发生变化,那么您将需要手动更新它们。
#deb http://ncomputers.org/debian/stretch.deb
dpkg -i stretch.deb
rm stretch.deb1.6 更新源列表
安装密钥环和源列表后。
apt-get update
2 安装 ISPConfig 功能
2.1 安装MySQL服务器及其依赖
此元数据包为 MySQL 服务器安装所有 ISPConfig 依赖项并执行一些配置任务。
注意:MySQL 服务器将重新启动,然后它将监听所有网络接口。
apt-get install ispconfig-mariadb --no-install-recommends
Enter current password for root (enter for none): <- enter
Set root password? [Y/n] <- y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] <- y
Disallow root login remotely? [Y/n] <- y
Remove test database and access to it? [Y/n] <- y
Reload privilege tables now? [Y/n] <- y2.2 安装Apache服务器及其依赖
注意:所有 apache 配置和模块都将被禁用,ISPConfig 所需的除外。
apt-get install ispconfig-apache --no-install-recommends
2.3 安装ISPConfig git master分支文件
这个包在 /root/ispconfig3 中安装所有 ISPConfig git master 分支文件
注意:如果您正在使用上述文件夹,建议您在运行以下命令之前重命名它。
apt-get install ispconfig-git --no-install-recommends
2.4 安装ISPConfig
注意:如果您想为您的 ISPConfig 实施添加更多功能,例如安全、存储、虚拟化、DNS、HTTP、IMAP、POP 和 SMTP 角色,那么您应该在运行此命令之前安装它们。 ISPConfig 官方文档中有更多详细信息。
apt-get install ispconfig --no-install-recommends
--------------------------------------------------------------------------------
_____ ___________ _____ __ _ ____
|_ _/ ___| ___ \ / __ \ / _(_) /__ \
| | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ _/ /
| | `--. \ __/ | | / _ \| '_ \| _| |/ _` | |_ |
_| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | ___\ \
\___/\____/\_| \____/\___/|_| |_|_| |_|\__, | \____/
__/ |
|___/
--------------------------------------------------------------------------------
>> Initial configuration
Operating System: Debian or compatible, unknown version.
Following will be a few questions for primary configuration so be careful.
Default values are in [brackets] and can be accepted with <ENTER>.
Tap in "quit" (without the quotes) to stop the installer.
Select language (en,de) [en]: <- enter
Installation mode (standard,expert) [standard]: <- enter
Full qualified hostname (FQDN) of the server, eg server1.domain.tld [1a.ncomputers.org]: <- enter
MySQL server hostname [localhost]: <- enter
MySQL server port [3306]: <- enter
MySQL root username [root]: <- enter
MySQL root password []: <- enter
MySQL database to create [dbispconfig]: <- enter
MySQL charset [utf8]: <- enter
[INFO] service Postgrey not detected
[INFO] service Postfix not detected
[ERROR] Postfix not installed - skipping Mail
[INFO] service Jailkit not detected
Configuring Pureftpd
[INFO] service BIND not detected
[INFO] service MyDNS not detected
Configuring Apache
Configuring vlogger
[INFO] service OpenVZ not detected
[INFO] service Ubuntu Firewall not detected
[INFO] service Bastille Firewall not detected
[INFO] service Metronome XMPP Server not detected
[INFO] service Fail2ban not detected
Configuring Apps vhost
Installing ISPConfig
ISPConfig Port [8080]: <- enter
Admin password [admin]: <- enter
Do you want a secure (SSL) connection to the ISPConfig web interface (y,n) [y]: <- n
Configuring DBServer
Installing ISPConfig crontab
Installing ISPConfig crontab
no crontab for root
Detect IP addresses
Restarting services ...
Restarting Apache httpd web server: apache2.
Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -O clf:/var/log/pure-ftpd/transfer.log -b -8 UTF-8 -J ECDHE:AES256-SHA:AES128-SHA:DES-CBC3-SHA:!RC4 -H -C 64 -c 1024 -A -E -F /etc/pure-ftpd/welcome.msg -D -B
Installation completed.3 推动ISPConfig的成长
任何类型的反馈和贡献都将推动 ISPConfig 的发展。我们希望这个实验性功能对您有用,我们将尝试添加更多 debian 软件包及其相应的依赖项。