VMware Images:
|
The Perfect Server - Ubuntu 9.04 [ISPConfig 3] - Page 4
12 Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, binutilsWe can install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, and binutils with a single command: 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 You will be asked the following questions: New password for the MySQL "root" user: <-- yourrootsqlpassword We want MySQL to listen on all interfaces, not just localhost, therefore we edit /etc/mysql/my.cnf and comment out the line bind-address = 127.0.0.1: vi /etc/mysql/my.cnf
Then we restart MySQL: /etc/init.d/mysql restart Now check that networking is enabled. Run netstat -tap | grep mysql The output should look like this: root@server1:~# netstat -tap | grep mysql 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 this tutorial), delete the certificates... cd /etc/courier ... 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
vi /etc/courier/pop3d.cnf
Then recreate the certificates... mkimapdcert ... and restart Courier-IMAP-SSL and Courier-POP3-SSL: /etc/init.d/courier-imap-ssl restart
13 Install Amavisd-new, SpamAssassin, And ClamavTo install amavisd-new, SpamAssassin, and ClamAV, we run 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
14 Install Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, And mcryptApache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, and mcrypt can be installed as follows: 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 You will see the following question: Web server to reconfigure automatically: <-- apache2 Then run the following command to enable the Apache modules suexec, rewrite, ssl, actions, and include: a2enmod suexec rewrite ssl actions include Secure phpMyAdmin by deleting the /etc/phpmyadmin/htpasswd.setup file... rm -f /etc/phpmyadmin/htpasswd.setup ... and remove or comment out the following section in /etc/phpmyadmin/apache.conf: vi /etc/phpmyadmin/apache.conf
Restart Apache afterwards: /etc/init.d/apache2 restart
15 Install PureFTPd And QuotaPureFTPd and quota can be installed with the following command: aptitude install pure-ftpd-common pure-ftpd-mysql quota quotatool Edit the file /etc/default/pure-ftpd-common... vi /etc/default/pure-ftpd-common ... and make sure that the start mode is set to standalone and set VIRTUALCHROOT=true:
Then restart PureFTPd: /etc/init.d/pure-ftpd-mysql restart Edit /etc/fstab. Mine looks like this (I added ,usrquota,grpquota to the partition with the mount point /): vi /etc/fstab
To enable quota, run these commands: touch /quota.user /quota.group quotacheck -avugm
16 Install MyDNSBefore we install MyDNS, we need to install a few prerequisites: aptitude install g++ libc6 gcc gawk make texinfo libmysqlclient15-dev MyDNS is not available in the Ubuntu 9.04 repositories, therefore we have to build it ourselves as follows: cd /tmp Next we create the start/stop script for MyDNS: vi /etc/init.d/mydns
Then we make the script executable and create the system startup links for it: chmod +x /etc/init.d/mydns
17 Install Vlogger And WebalizerVlogger and webalizer can be installed as follows: aptitude install vlogger webalizer
18 Install JailkitJailkit 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 cd /tmp
19 Install fail2banThis is optional but recommended, because the ISPConfig monitor tries to show the fail2ban log: aptitude install fail2ban
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video




print: 

Recent comments
15 hours 3 min ago
20 hours 10 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 12 hours ago