ISPConfig 3.1在Ubuntu 16简单安装步骤【推荐阅读】

参考文章:在Ubuntu 18上安装ISP Config3.0|一键安装配置脚本

第一步: 必须root用户身份执行以下命令:

sudo apt-get update
sudo apt-get upgrade

以上两个步骤不可以省,省去可能在安装ISP config的某一个步骤卡住!!! 同时因为默认软件源在国外,建议使用国内的清华软件源。

cd /tmp; wget --no-check-certificate -O installer.tgz "https://github.com/servisys/ispconfig_setup/tarball/master"; tar zxvf installer.tgz; cd *ispconfig*; bash install.sh

备注:必须以root执行以上命令。

或者执行以下命令:

cd /tmp; wget --no-check-certificate -O installer.tgz "https://www.louishe.com/ispconfig_setup.tar.gz"; tar zxvf installer.tgz; cd *ispconfig*; bash install.sh

现在 ,您的/tmp目录中有一个名为servisys-ispconfig_setup- ××××的文件夹, ×××  将以您使用的版本号的形式更改,不重要。

备注:一键安装命令中的安装包(即这个网址https://github.com/servisys/ispconfig_setup/tarball/master下载下来的安装包)已上传到百度云盘,下载地址:链接:https://pan.baidu.com/s/1mrxNGL2CmDP0ETXNG_3wkQ
提取码:juuq

第二步:根据命令提示操作安装

其中有一个步骤询问如下问题:

Would you like to update the hostname for this system? (recommended) (y/n) 

hostname 是什麽呢???hostname == 一个二级域名

hostname就是你后面通过浏览器登录web面板的域名,所以你有必要先在域名服务商把域名解析到VPS。

所以如果你有二级域名就填一个,没有不填也没关系,只是你不能通过你的域名访问控制面板,只能通过IP访问控制面板。

备注:您必须填写 hostname,如果不填写,安装到后期很有可能报下面的错误!!!

未填写Hostname导致的报错
未填写Hostname导致的报错

第三步:基本默认安装

现在将在开始自动安装过程之前询问您一些问题。如果您不知道问题的答案,则只需按Enter键即可选择默认值。

例如会遇到下面问题:

  • 您将被要求提供Mysql版本:Mysql or Mariadb
  • 系统将要求您输入MySql密码
  • 接下来,您必须在Apache和Nginx之间进行选择
  • 接下来,将询问您Xcache(PHP压缩系统)
  • 接下来,将要求您安装PHPMyAdmin
  • 接下来,您必须在邮件服务器类型dovecot或courier之间进行选择
  • 接下来,您必须选择更新病毒定义(建议说是)
  • 接下来,您必须选择启用或不启用配额(建议说是)

备注:所有东西配置完成后,接下来就是安装了,可能你会遇到10分钟左右的卡顿,耐心等待安装。最长时间等了一个小时才继续安装。

卡顿的原因如文章开始提及,需要使用命令更新Ubuntu,有时候使用命令更新也很慢,这时候就需要更新源,参考教程:更换Ubuntu操作系统的软件源

卡顿的位置-更新
卡顿的位置-更新

备注2:如果实在卡顿或者报错导致无法进行安装,可以使用一键安装命令重新安装。本人试过在不需要重置服务器的情况下,安装报错之后重新安装成功!

第四步: dbconfig-common中的错误

安装会遇到这个提示,注意了!

===========================================================================================
Attention: When asked 'Configure database for phpmyadmin with dbconfig-common?' select 'NO'
Due to a bug in dbconfig-common, this can't be automated.
===========================================================================================
Press ENTER to continue... 

按回车键后, 下一个问题上选择“否”(注意:因为默认值为“是”)。

安装完成,最后会显示登录的地址和默认的登录账户和密码admin

Well done! ISPConfig installed and configured correctly :D 😃

Now you can access to your ISPConfig installation at: https://isp.tkwlkj.com:8080 or https://10.80.139.98:8080
The default ISPConfig Username is: admin
	      and the Password is: admin
Warning: This is a security risk. Please change the default password after your first login.

安装执行命令:

		20	- FTP
21	- FTP
22	- SSH/SFTP
25	- Mail (SMTP)
53	- DNS
80	- Web (HTTP)
110	- Mail (POP3)
143	- Mail (IMAP)
443	- Web (HTTPS)
465	- Mail (SMTPS)
587	- Mail (SMTP)
993	- Mail (IMAPS)
995	- Mail (POP3S)
3306	- Database
5222	- Chat (XMPP)
8080	- ISPConfig
8081	- ISPConfig
10000	- ISPConfig
UDP Ports
53	- DNS
3306	- Database
Would you like to update the hostname for this system? (recommended) (y/n) y
Please enter a fully qualified domain name (FQDN) (e.g. iZ28zt0adstZ.example.com): isp.tkwlkj.com
Welcome to ISPConfig Setup Script v.3.0.3.1
This software is developed by Temporini Matteo
with the support of the community.
You can visit my website at the followings URLs
http://www.servisys.it http://www.temporini.net
and contact me with the following information
contact email/Hangouts: [email protected]
Skype: matteo.temporini
=========================================
ISPConfig 3 System installer
=========================================
This script will do a nearly unattended installation of
all software needed to run ISPConfig 3.
When this script starts running, it will keep going all the way
So, before you continue, please make sure the following checklist is ok:
- This is a clean standard clean installation for supported systems
- Internet connection is working properly
The detected Linux Distribution is:	Ubuntu 16.04.4 LTS
Related Linux Distributions:		debian
Processor (CPU):			Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz
CPU Cores:				1
Architecture:				i686 (32-bit)
Total memory (RAM):			999 MiB (1,048 MB)
Total swap space:			0 MiB (0 MB)
Graphics Processor (GPU):		Cirrus Logic GD 5446
Computer name:				iZ28zt0adstZ
Hostname:				isp.tkwlkj.com
IPv4 addresses:				10.80.139.98 120.27.52.34
Time zone:				Asia/Shanghai (CST, +0800)
The system is configured to read the RTC time in the local time zone.
Virtual Machine (VM) hypervisor:	kvm
Installing for this Linux Distribution:	ubuntu-16.04
Is this correct? (y/n) y
Preparing to install... [DONE]
Updating apt package database and upgrading currently installed packages... [DONE]
Installing basic packages (OpenSSH server, NTP, binutils, etc.)... [DONE]
Stopping AppArmor... [DONE]
Disabling AppArmor... [DONE]
Removing AppArmor... [DONE]
Changing the default shell from dash to bash... [DONE]
Installing Database server (MySQL)... [DONE]
Restarting MySQL... [DONE]
Installing Web server (Apache) and modules... [DONE]
Installing PHP and modules... [DONE]
Installing APCu... [DONE]
Installing PHP-FPM... [DONE]
Disabling HTTP_PROXY... [DONE]
===========================================================================================
Attention: When asked 'Configure database for phpmyadmin with dbconfig-common?' select 'NO'
Due to a bug in dbconfig-common, this can't be automated.
===========================================================================================
Press ENTER to continue... 
Installing phpMyAdmin... Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
dbconfig-common dbconfig-mysql libjs-sphinxdoc libjs-underscore
php-phpseclib php-tcpdf
Suggested packages:
php-libsodium php-gmp www-browser
The following NEW packages will be installed:
dbconfig-common dbconfig-mysql libjs-sphinxdoc libjs-underscore
php-phpseclib php-tcpdf phpmyadmin
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.7 MB of archives.
After this operation, 48.2 MB of additional disk space will be used.
Get:1 http://mirrors.aliyuncs.com/ubuntu xenial/main i386 dbconfig-common all 2.0.4ubuntu1 [582 kB]
Get:2 http://mirrors.aliyuncs.com/ubuntu xenial/universe i386 dbconfig-mysql all 2.0.4ubuntu1 [1,038 B]
Get:3 http://mirrors.aliyuncs.com/ubuntu xenial/main i386 libjs-underscore all 1.7.0~dfsg-1ubuntu1 [46.7 kB]
Get:4 http://mirrors.aliyuncs.com/ubuntu xenial-updates/main i386 libjs-sphinxdoc all 1.3.6-2ubuntu1.2 [57.8 kB]
Get:5 http://mirrors.aliyuncs.com/ubuntu xenial/universe i386 php-phpseclib all 2.0.1-1build1 [173 kB]
Get:6 http://mirrors.aliyuncs.com/ubuntu xenial/universe i386 php-tcpdf all 6.0.093+dfsg-1ubuntu1 [7,881 kB]
Get:7 http://mirrors.aliyuncs.com/ubuntu xenial-security/universe i386 phpmyadmin all 4:4.5.4.1-2ubuntu2.1 [3,946 kB]
Preconfiguring packages ...
Fetched 12.7 MB in 0s (20.5 MB/s)
Selecting previously unselected package dbconfig-common.
(Reading database ... 109763 files and directories currently installed.)
Preparing to unpack .../dbconfig-common_2.0.4ubuntu1_all.deb ...
Unpacking dbconfig-common (2.0.4ubuntu1) ...
Selecting previously unselected package dbconfig-mysql.
Preparing to unpack .../dbconfig-mysql_2.0.4ubuntu1_all.deb ...
Unpacking dbconfig-mysql (2.0.4ubuntu1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../libjs-underscore_1.7.0~dfsg-1ubuntu1_all.deb ...
Unpacking libjs-underscore (1.7.0~dfsg-1ubuntu1) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../libjs-sphinxdoc_1.3.6-2ubuntu1.2_all.deb ...
Unpacking libjs-sphinxdoc (1.3.6-2ubuntu1.2) ...
Selecting previously unselected package php-phpseclib.
Preparing to unpack .../php-phpseclib_2.0.1-1build1_all.deb ...
Unpacking php-phpseclib (2.0.1-1build1) ...
Selecting previously unselected package php-tcpdf.
Preparing to unpack .../php-tcpdf_6.0.093+dfsg-1ubuntu1_all.deb ...
Unpacking php-tcpdf (6.0.093+dfsg-1ubuntu1) ...
Selecting previously unselected package phpmyadmin.
Preparing to unpack .../phpmyadmin_4%3a4.5.4.1-2ubuntu2.1_all.deb ...
Unpacking phpmyadmin (4:4.5.4.1-2ubuntu2.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up dbconfig-common (2.0.4ubuntu1) ...
Creating config file /etc/dbconfig-common/config with new version
Setting up dbconfig-mysql (2.0.4ubuntu1) ...
Setting up libjs-underscore (1.7.0~dfsg-1ubuntu1) ...
Setting up libjs-sphinxdoc (1.3.6-2ubuntu1.2) ...
Setting up php-phpseclib (2.0.1-1build1) ...
Setting up php-tcpdf (6.0.093+dfsg-1ubuntu1) ...
Setting up phpmyadmin (4:4.5.4.1-2ubuntu2.1) ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version
Creating config file /etc/phpmyadmin/config-db.php with new version
dbconfig-common: flushing administrative password
apache2_invoke: Enable configuration phpmyadmin
[DONE]
Activating Apache modules... [DONE]
Restarting Apache... [DONE]
Installing needed programs for PHP and Apache (mcrypt, etc.)... [DONE]
Installing Let's Encrypt (letsencrypt)... [DONE]
Installing FTP server (Pure-FTPd)... Generating a 2048 bit RSA private key
.....................................................................+++
..............+++
writing new private key to '/etc/ssl/private/pure-ftpd.pem'
-----
problems making Certificate Request
3073394368:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:158:maxsize=2
[DONE]
Restarting Pure-FTPd... [DONE]
Installing Quota... [DONE]
Initializing Quota, this may take awhile... quotacheck: Scanning /dev/vda1 [/] quotacheck: Cannot stat old user quota file //quota.user: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old group quota file //quota.group: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old user quota file //quota.user: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old group quota file //quota.group: No such file or directory. Usage will not be subtracted.
quotacheck: Checked 18313 directories and 109768 files
quotacheck: Old file not found.
quotacheck: Old file not found.
done
/dev/vda1 [/]: group quotas turned on
/dev/vda1 [/]: user quotas turned on
[DONE]
Installing Jailkit... [DONE]
Sorry but Webmail is not yet supported.
For more information, see this issue: https://github.com/servisys/ispconfig_setup/issues/179
Installing SMTP Mail server (Postfix)... [DONE]
Restarting Postfix... [DONE]
Installing POP3/IMAP Mail server (Dovecot) and Mail signing (OpenDKIM, OpenDMARC)... [DONE]
Installing Antivirus utilities (Amavisd-new, ClamAV), Spam filtering (SpamAssassin), Greylisting (Postgrey) and Rootkit detection (rkhunter)... [(THIS MAY TAKE AWHILE. DO NOT ABORT!!!)]
[DONE]
Stopping SpamAssassin... [DONE]
Disabling SpamAssassin... [DONE]
Updating Freshclam Antivirus Database. Please Wait... Mon Dec  9 15:38:32 2019 -> ClamAV update process started at Mon Dec  9 15:38:32 2019
Mon Dec  9 15:38:32 2019 -> ^Your ClamAV installation is OUTDATED!
Mon Dec  9 15:38:32 2019 -> ^Local version: 0.101.4 Recommended version: 0.102.1
Mon Dec  9 15:38:32 2019 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Mon Dec  9 15:38:39 2019 -> Downloading main.cvd [100%]
Mon Dec  9 15:38:49 2019 -> main.cvd updated (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Mon Dec  9 15:38:51 2019 -> *Can't query main.59.105.1.0.6810DB54.ping.clamav.net
Mon Dec  9 15:38:55 2019 -> Downloading daily.cvd [100%]
Mon Dec  9 15:39:36 2019 -> daily.cvd updated (version: 25657, sigs: 2036324, f-level: 63, builder: raynman)
Mon Dec  9 15:39:37 2019 -> *Can't query daily.25657.105.1.0.6810DB54.ping.clamav.net
Mon Dec  9 15:39:38 2019 -> Downloading bytecode.cvd [100%]
Mon Dec  9 15:39:39 2019 -> bytecode.cvd updated (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
Mon Dec  9 15:39:42 2019 -> *Can't query bytecode.331.105.1.0.6810DB54.ping.clamav.net
Mon Dec  9 15:39:48 2019 -> Database updated (6601320 signatures) from db.local.clamav.net (IP: 104.16.219.84)
Mon Dec  9 15:39:48 2019 -> ^Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory
[DONE]
Restarting ClamAV... [DONE]
Installing DNS server (Bind)... [DONE]
Installing Statistics (Vlogger, Webalizer and AWStats)... [DONE]
Installing Intrusion protection (Fail2Ban)... [DONE]
Installing Firewall (UFW)... [DONE]
Restarting Fail2Ban... [DONE]
Installing ISPConfig3... 
Create INI file
--------------------------------------------------------------------------------
_____ ___________   _____              __ _         ____
|_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
| | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
| |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
_| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
\___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
__/ |
|___/ 
--------------------------------------------------------------------------------
>> Initial configuration  
Operating System: Ubuntu 16.04.6 LTS (Xenial Xerus)
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.
Configuring Postgrey
Configuring Postfix
Generating a 4096 bit RSA private key
.......................................................++
..............................................................++
writing new private key to 'smtpd.key'
-----
problems making Certificate Request
3073414848:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:158:maxsize=2
Configuring Dovecot
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring Jailkit
Configuring Pureftpd
Configuring BIND
Configuring Apache
Configuring vlogger
Configuring Ubuntu Firewall
Configuring Fail2ban
Configuring Apps vhost
Installing ISPConfig
Generating RSA private key, 4096 bit long modulus
....................................................................................................++
...........................................................................................................................................++
e is 65537 (0x10001)
problems making Certificate Request
3073119936:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:158:maxsize=2
/usr/local/ispconfig/interface/ssl/ispserver.csr: No such file or directory
3073898176:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/usr/local/ispconfig/interface/ssl/ispserver.csr','r')
3073898176:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
writing RSA key
Configuring DBServer
Installing ISPConfig crontab
Installing ISPConfig crontab
no crontab for root
no crontab for getmail
Detect IP addresses
Restarting services ...
Job for dovecot.service failed because the control process exited with error code. See "systemctl status dovecot.service" and "journalctl -xe" for details.
Installation completed.
Restarting Apache... [DONE]
Restarting Amavisd... [DONE]
Well done! ISPConfig installed and configured correctly :D 😃
Now you can access to your ISPConfig installation at: https://isp.tkwlkj.com:8080 or https://10.80.139.98:8080
The default ISPConfig Username is: admin
and the Password is: admin
Warning: This is a security risk. Please change the default password after your first login.
滚动至顶部