Ispconfig 3 com
-
Upload
leomer7697 -
Category
Documents
-
view
215 -
download
0
Transcript of Ispconfig 3 com
-
8/6/2019 Ispconfig 3 com
1/16
-
8/6/2019 Ispconfig 3 com
2/16
Now run
echo server1.example.com > /etc/hostname /etc/init.d/hostname restart
Afterwards, run
hostnamehostname -f
Edit /etc/apt/sources.list And Update Your Linux Installation
Edit /etc/apt/sources.list. Comment out or remove the installation CD from the file and make surethat the universe and multiverse repositories are enabled. It should look like this:
vi /etc/apt/sources.list
# deb cdrom:[Ubuntu-Server 10.04 LTS _Lucid Lynx_ - Release amd64 ( 20100427)]/ lucid ma in restricted
#deb cdrom:[Ubuntu-Server 10.04 LTS _ Lucid Lynx_ - Release amd64 (20100427)]/ lucid mai n restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# ne wer versions of the distribution.
deb http://de.archive.ubuntu.com/ubuntu/ lucid main restricteddeb-src http://de.archive.ubuntu.com/ubuntu/ lucid main restricted
## M ajor bug fix updates produced after the final release of the## dis tribution.deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates main r estricteddeb-src http://de.archive.ubuntu.com/ubuntu/ lu cid-updates main restricted
## N .B. software from this repository is ENTIRELY UN SUPPORTED by the Ubuntu## t eam. Also, please note that software in universe WILL NOT receive any## review or updates from the Ubuntu security team.deb http://de.archive.ubuntu.com/ubuntu/ lucid universedeb-src http://de.archive.ubuntu.com/ubuntu/ lucid universedeb http://de.archive.ubuntu.com/ubuntu/ lucid-updates universedeb-src http://de.archive.ubuntu.com/ubuntu/ lu cid-updates universe
## N .B. software from this repository is ENTIRELY UN SUPPORTED by the Ubuntu## t eam, and may not be un der a free licence. P lease satisfy yourself as to## y our rights to use the software. Also, please note that software in## m ultiverse WILL NOT rec eive any review or updates from the Ubuntu## security team.deb http://de.archive.ubuntu.com/ubuntu/ lucid multiversedeb-src http://de.archive.ubuntu.com/ubuntu/ lucid multiversedeb http://de.archive.ubuntu.com/ubuntu/ lucid-updates multiversedeb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
## U ncomment the following two lines to add software from the 'backports'## r epository.## N .B. software from this repository may not have been tested as## e xtensively as that con tained in the main release, although it includes## newer versions of some applications which may provide useful features.## A lso, please note that software in backports WILL NOT receive any review## or updates from the Ubuntu security team.# deb http://de.archive.ubuntu.com/ubuntu/ luc id-backports main res tricted universe multiverse# deb-src h ttp://de.archive.ubuntu.com/ubuntu/ lucid-backports main re stricted universe multiverse
## Uncomment the following two l ines to add software from Canonical's
## 'partner' repository.## T his software is not part of Ubuntu, bu t is offered by Canonical and the## res pective vendors as a service to Ubuntu users.# deb http://archive.canonical.com/ubuntu lucid partner# deb-src http://archive.canonical.com/ubuntu lucid partner
deb http://security.ubuntu.com/ubuntu lucid-security main re stricteddeb-src http://security.ubuntu.com/ubuntu lucid-security main restricteddeb http://security.ubuntu.com/ubuntu lucid-security universedeb-src http://security.ubuntu.com/ubuntu lucid-security universedeb http://security.ubuntu.com/ubuntu lucid-security mul tiversedeb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
-
8/6/2019 Ispconfig 3 com
3/16
Then run
aptitude update
to update the apt package database and
aptitude safe-upgrade
to install the latest updates (if there are any). If you see that a new kernel gets installed as part of the updates, you should reboot the system afterwards:
reboot
Change The Default Shell
/bin/sh is a symlink to /bin/dash, however we need /bin/bash, not /bin/dash. Therefore we do this:
dpkg-reconfigure dash
Install dash as /bin/sh?
-
8/6/2019 Ispconfig 3 com
4/16
and your system time will always be in sync.
Install Postfix, Courier, Saslauthd, MySQL, rkhunter, binutils
We can install Postfix, Courier, Saslauthd, MySQL, rkhunter, and binutils with a singlecommand:
aptitude install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemoncourier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl getmail4 rkhunter binutilsmaildrop
You will be asked the following questions:
New password for the MySQL "root" user:
-
8/6/2019 Ispconfig 3 com
5/16
root@server1:~# netstat -tap | grep mysqltcp 0 0 *:mysql *:* LISTEN 9732/mysqldroot@server1:~#
During the installation, the SSL certificates for IMAP-SSL and POP3-SSL are created with the
hostname localhost. To change this to the correct hostname (server1.example.com in thistutorial), delete the certificates...
cd /etc/courierrm -f /etc/courier/imapd.pemrm -f /etc/courier/pop3d.pem
... and modify the following two files; replace CN=localhost with CN=server1.example.com(you can also modify the other values, if necessary):
vi /etc/courier/imapd.cnf
[...]CN=server1.example.com[...]
vi /etc/courier/pop3d.cnf
[...]CN=server1.example.com[...]
Then recreate the certificates...
mkimapdcertmkpop3dcert
... and restart Courier-IMAP-SSL and Courier-POP3-SSL:
/etc/init.d/courier-imap-ssl restart /etc/init.d/courier-pop-ssl restart
Install Amavisd-new, SpamAssassin, And Clamav
To install amavisd-new, SpamAssassin, and ClamAV, we run
aptitude install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarchlzop 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
-
8/6/2019 Ispconfig 3 com
6/16
Install Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, And mcrypt
Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, and mcrypt can be installed as follows:
aptitude install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utilslibexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imapphpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby
You will see the following question:
Web server to reconfigure automatically:
-
8/6/2019 Ispconfig 3 com
7/16
[...]
Then restart PureFTPd:
/etc/init.d/pure-ftpd-mysql restart
Edit /etc/fstab. Mine looks like this (I added,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 to the partition with the mount point
/):
vi /etc/fstab
# /etc/fstab: static file system information.## Use 'blkid -o value -s UUID' to print the universally uniqueidentifier# for a device; this may be used with UUID= as a more robust way toname# devices that works even if disks are added and removed. Seefstab(5).## proc /proc proc nodev,noexec,nosuid 0 0/dev/mapper/server1-root / ext4 errors=remount-ro,usrjquota=aquota.user ,grpjquota=aquota.group,jqfmt=vfsv0 0 1# /boot was on /dev/sda1 during installationUUID=9eef7b6b-5688-456c-8fe2-05ae739e3635 /boot ext2defaults 0 2/dev/mapper/server1-swap_1 none swap sw 00
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 00
To enable quota, run these commands:
touch /aquota.user /aquota.groupchmod 600 /aquota.*mount -o remount /
quotacheck -avugmquotaon -avug
Install BIND DNS Server
BIND can be installed as follows:
aptitude install bind9 dnsutils
-
8/6/2019 Ispconfig 3 com
8/16
Install Vlogger, Webalizer, And AWstats
Vlogger, webalizer, and AWstats can be installed as follows:
aptitude install vlogger webalizer awstats
cp -prf /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl /usr/share/awstats/tools/awstats_buildstaticpages.pl
Install Jailkit
Jailkit is needed only if you want to chroot SSH users. It can be installed as follows ( important:
Jailkit must be installed before ISPConfig - it cannot be installed afterwards!):
aptitude install build-essential autoconf automake1.9 libtool flex bison debhelper
cd /tmpwget http://olivier.sessink.nl/jailkit/jailkit-2.11.tar.gztar xvfz jailkit-2.11.tar.gzcd jailkit-2.11./debian/rules binarycd ..dpkg -i jailkit_2.11-1_*.deb
rm -rf jailkit-2.11*
Install fail2ban
This is optional but recommended, because the ISPConfig monitor tries to show the fail2ban log:
aptitude install fail2ban
Install SquirrelMail
To install the SquirrelMail webmail client, run
aptitude install squirrelmail
Then create the following symlink...
-
8/6/2019 Ispconfig 3 com
9/16
ln -s /usr/share/squirrelmail/ /var/www/webmail
... and configure SquirrelMail:
squirrelmail-configure
We must tell SquirrelMail that we are using Courier-IMAP/-POP3:
SquirrelMail Configuration : Read: config.php (1.4.0)---------------------------------------------------------Main Menu --1. Organization Preferences2. Server Settings3. Folder Defaults4. General Options5. Themes
6. Address Books7. Message of the Day (MOTD)8. Plugins9. Database10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color onS Save dataQ Quit
Command >>
-
8/6/2019 Ispconfig 3 com
10/16
dovecot = Dovecot Secure IMAP serverexchange = Microsoft Exchange IMAP serverhmailserver = hMailServermacosx = Mac OS X Mailservermercury32 = Mercury/32
uw = University of Washington's IMAP servergmail = IMAP access to Google mail (Gmail) accounts
quit = Do not change anythingCommand >> > courier
imap_server_type = courierdefault_folder_prefix = INBOX.
trash_folder = Trashsent_folder = Sent
draft_folder = Draftsshow_prefix_option = false
default_sub_of_inbox = falseshow_contain_subfolders_option = false
optional_delimiter = .
-
8/6/2019 Ispconfig 3 com
11/16
delete_folder = true
Press any key to continue... >
-
8/6/2019 Ispconfig 3 com
12/16
Q Quit
Command >> S
Data saved in config.php
Press enter to continue... >
-
8/6/2019 Ispconfig 3 com
13/16
php -q install.php
This will start the ISPConfig 3 installer. The installer will configure all services like postfix, sas l,courier, etc. for you. A manual setup as required for ISPConfig 2 (perfect setup guides) is notnescessary.
root@server1:/tmp/ispconfig3_install/install# php -q install.phpPHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini online 1 in Unknown on line 0
--------------------------------------------------------------------------------
_____ ___________ _____ __ _|_ _/ ___| ___ \ / __ \ / _(_)| | \ -- .| |_/ / | / \/ ___ _ __ | |_ _ __ _| | `--. \ __/ | | / _ \| '_ \| _| |/ _` |
_| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | \___/\____/\_| \____/\___/|_| |_|_| |_|\__, |
__/ ||___/
--------------------------------------------------------------------------------
>> Initial configuration
Operating System: Debian Squeeze/Sid or compatible
Following will be a few questions for primary configuration so be careful.Default values are in [brackets] and can be accepted with .Tap in "quit" (without the quotes) to stop the installer.
Select language (en,de) [en]:
-
8/6/2019 Ispconfig 3 com
14/16
MySQL root password []:
-
8/6/2019 Ispconfig 3 com
15/16
Restarting services ...Rather than invoking init scripts through /etc/init.d, use the service(8)utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysqlmysql start/running, process 24840* Stopping Postfix Mail Transport Agent postfix
...done.* Starting Postfix Mail Transport Agent postfix
...done.* Stopping SASL Authentication Daemon saslauthd
...done.* Starting SASL Authentication Daemon saslauthd
...done.Stopping amavisd: amavisd-new.
Starting amavisd: amavisd-new.* Stopping ClamAV daemon clamd...done.
* Starting ClamAV daemon clamd...done.
* Stopping Courier authentication services authdaemond...done.
* Starting Courier authentication services authdaemond...done.
* Stopping Courier IMAP server......done.
* Starting Courier IMAP server......done.
* Stopping Courier IMAP-SSL server......done.
* Starting Courier IMAP-SSL server......done.
* Stopping Courier POP3 server......done.
* Starting Courier POP3 server......done.
* Stopping Courier POP3-SSL server......done.
* Starting Courier POP3-SSL server......done.
* Restarting web server apache2... waiting .. ...done.
Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -H -E -b -O clf:/var/log/pure-ftpd/transfer.log -8 UTF-8 -u 1000 -A -B
-
8/6/2019 Ispconfig 3 com
16/16
Installation completed.root@server1:/tmp/ispconfig3_install/install#
The installer automatically configures all underlying services, so no manual configuration isneeded.
Afterwards you can access ISPConfig 3 under http://server1.example.com:8080/ orhttp://192.168.0.100:8080/. Log in with the username admin and the password admin (youshould change the default password after your first login):
Finally Reboot. And Your System is ready.
Prepared By :www.ispconfig3manual.blogspot.com