ISPConfig
是Linux的一款开源的虚拟主机管理程序,带Web控制面板,可通过Web控制面板管理虚拟主机、开设网站、开设邮箱、开设和管理mysql数据库、支
持DNS解析和监控服务器运行状况等功能。下面我们将讲解如何在Ubuntu Server 8.10中安装ISPConfig3。
1、Ubuntu Server 8.10的安装
这里,我们的安装设置是:
IP地址:192.168.0.100
子网掩码:255.255.255.0
网关:192.168.0.1
DNS服务器:61.128.192.68 61.128.128.68
服务器主机名:server.ispcpcn.com
详细的安装请参照本站Ubuntu Server 8.10的安装
2、开启并使用root用户
在重启之后,我们将使用root用户按照本文章的步骤来完成安装,这样,我们就不必每次运行命令都要加个“sudo”了!而且某些步骤使用“sudo”来执行也是个麻烦的事情。我们先获得root权限
ispcpcn@server:~$ sudo su |
ispcpcn@server:~$ passwd root |
root@server:~# apt-get install ssh openssh-server |
root@server:~# apt-get install vim-nox |
root@server:~# vi /etc/hosts |
127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts |
root@server:~# echo server.ispcpcn.com > /etc/hostname |
root@server:~# hostname |
root@server:~# aptitude update && aptitude safe-upgrade |
root@server:~# reboot |
root@server:~# ln -sf /bin/bash /bin/sh |
root@server:~# /etc/init.d/apparmor stop |
root@server:~# aptitude install ntp ntpdate |
root@server:~# aptitude install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl maildrop getmail4 rkhunter binutils |
New password for the MySQL "root" user: <-- 你的MySQL的root用户的密码 |
root@server:~# vi /etc/mysql/my.cnf |
[...] |
root@server:~# /etc/init.d/mysql restart |
root@server:~# cd /etc/courier |
root@server:~# vi /etc/courier/imapd.cnf |
[...] |
root@server:~# vi /etc/courier/pop3d.cnf |
[...] |
root@server:~# mkimapdcert |
root@server:~# /etc/init.d/courier-imap-ssl restart |
root@server:~# aptitude install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl |
root@server:~# aptitude install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp |
root@server:~# vi /etc/apt/sources.list |
deb http://packages.dotdeb.org/ oldstable all |
root@server:~# apt-get update |
root@server:~# a2enmod suexec rewrite ssl actions include |
root@server:~# vi /etc/phpmyadmin/apache.conf |
[...] |
root@server:~# /etc/init.d/apache2 restart |
root@server:~# aptitude install pure-ftpd-common pure-ftpd-mysql quota quotatool |
root@server:~# vi /etc/default/pure-ftpd-common |
[...] |
root@server:~# /etc/init.d/pure-ftpd-mysql restart |
root@server:~# vi /etc/fstab |
# /etc/fstab: static file system information. |
root@server:~# touch /quota.user /quota.group |
root@server:~# aptitude install g++ libc6 gcc gawk make texinfo libmysqlclient15-dev |
root@server:~# cd /tmp |
root@server:~# vi /etc/init.d/mydns |
#! /bin/sh set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin SCRIPTNAME=/etc/init.d/$NAME # Gracefully exit if the package has been removed. case "$1" in exit 0 |
root@server:~# chmod +x /etc/init.d/mydns |
root@server:~# aptitude install vlogger webalizer |
root@server:~# aptitude install build-essential autoconf automake1.9 libtool flex bison |
root@server:~# aptitude install fail2ban |
root@server:~# aptitude install squirrelmail |
root@server:~# ln -s /usr/share/squirrelmail/ /var/www/webmail |
root@server:~# squirrelmail-configure |
rSquirrelMail Configuration : Read: config.php (1.4.0) D. Set pre-defined settings for specific IMAP servers C Turn color on Command >> <-- D
Please note that you will still need to go through and make sure Please select your IMAP server: quit = Do not change anything
Please note that you will still need to go through and make sure Please select your IMAP server: quit = Do not change anything imap_server_type = courier Press any key to continue... <-- 按任意键
D. Set pre-defined settings for specific IMAP servers C Turn color on Command >> <-- S
D. Set pre-defined settings for specific IMAP servers C Turn color on Command >> <-- Q |
root@server:~# cd /tmp |
root@server:~# php -q install.php |
r
Operating System: Debian Lenny/Sid or compatible Following will be a few questions for primary configuration so be careful.
Installation mode (standard,expert) [standard]: <-- ENTER Full qualified hostname (FQDN) of the server, eg server.ispcpcn.com [server.ispcpcn.com]: <-- ENTER MySQL server hostname [localhost]: <-- ENTER MySQL root username [root]: <-- ENTER MySQL root password []: <-- 输入MySQL的root用户密码 MySQL database to create [dbispconfig]: <-- ENTER MySQL charset [utf8]: <-- ENTER Generating a 2048 bit RSA private key Configuring DBServer |
歡迎光臨 百利工頭 (http://bb.pc104.tw/) | Powered by Discuz! 6.0.0 |