-->

Install ISPConfig 3 di ubuntu server 10.4 lts

ISPConfig na ini salah satu CP (control panel untuk webhosting) yang open source kalo yang bayar CPanel dll g tau jg namanya.

langsung aj untuk instalasi ikuti langkah-langkah ini.

1. OS Unbuntu sudah berjalan dengan baik kl blm ada ya install aj dl.

2. Gunakan ssh untuk meremot server dan mempermudah instalasi (kl dengan remote kan bisa copy paste jd lebih enak dan yang terpenting mengurangi salah pengetikan hehehehehe), jika blm terinstall ssh servernya ketikan perintah
# aptitude install ssh openssh-server
3. Jika anda menggunakan text editor vi install terlebih dahulu vim karena pada unbuntu secara default editor vi ada bug nya.
# aptitude install vim-nox
4. Setting Network
# vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.10.111
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.0.255
gateway 192.168.10.1

# /etc/init.d/networking restart
# vi /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.10.111 server1.example.com server1

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

# echo server1.example.com > /etc/hostname
# /etc/init.d/hostname restart

# hostname
# hostname -f

Jika yang ditampilkan server1.example.com maka sudah benar
5. Update ubuntu agar mendapatkan paket yang terbaru

# aptitude update
# aptitude safe-upgrade
# reboot


6. Mengganti default Shell
# dpkg-reconfigure dash
Install dash as /bin/sh? <-- No
7. Menonaktifkan Apparmor
# /etc/init.d/apparmor stop
# update-rc.d -f apparmor remove
# aptitude remove apparmor apparmor-utils


8. Menyingkronkan waktu pada sistem
# aptitude install ntp ntpdate

9. Install Postfix, Courier, Saslauthd, MySQL, rkhunter, binutils
# 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 getmail4 rkhunter binutils maildrop

New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
Create directories for web-based administration? <-- No
General type of mail configuration: <-- Internet Site
System mail name: <-- server1.example.com
SSL certificate required <-- Ok
# vi /etc/mysql/my.cnf
Nonaktifkan baris bind-address = 127.0.0.1

# /etc/init.d/mysql restart
# netstat -tap | grep mysql

tcp 0 0 *:mysql *:* LISTEN 9732/mysqld

# cd /etc/courier
# rm -f /etc/courier/imapd.pem
# rm -f /etc/courier/pop3d.pem


Ganti CN=localhost dengan CN=server1.example.com
# vi /etc/courier/imapd.cnf
# vi /etc/courier/pop3d.cnf

# mkimapdcert
# mkpop3dcert
# /etc/init.d/courier-imap-ssl restart
# /etc/init.d/courier-pop-ssl restart


10. Install Amavisd-new, SpamAssassin, And Clamav
# 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

11. Install Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, And mcrypt
# 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 libopenssl-ruby

Web server to reconfigure automatically: <-- apache2
Configure database for phpmyadmin with dbconfig-common? <-- No

# a2enmod suexec rewrite ssl actions include
# /etc/init.d/apache2 restart


12. Install PureFTPd And Quota
# aptitude install pure-ftpd-common pure-ftpd-mysql quota quotatool
# vi /etc/default/pure-ftpd-common
STANDALONE_OR_INETD=standalone
VIRTUALCHROOT=true

# /etc/init.d/pure-ftpd-mysql restart


Tambahkan (,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0)pada mount point /
# vi /etc/fstab

/dev/mapper/server1-root / ext3 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
# touch /aquota.user /aquota.group
# chmod 600 /aquota.*
# mount -o remount /

# quotacheck -avugm
# quotaon -avug


13. Install BIND DNS Server
# aptitude install bind9 dnsutils

14. Install Vlogger And Webalizer
# aptitude install vlogger webalizer

15. Install Jailkit
# aptitude install build-essential autoconf automake1.9 libtool flex bison debhelper
# cd /tmp
# wget http://olivier.sessink.nl/jailkit/jailkit-2.11.tar.gz
# tar xvfz jailkit-2.11.tar.gz
# cd jailkit-2.11
# ./debian/rules binary
# cd ..
# dpkg -i jailkit_2.11-1_*.deb
# rm -rf jailkit-2.11*


16. Install fail2ban
# aptitude install fail2ban

17. Install SquirrelMail
# aptitude install squirrelmail
# ln -s /usr/share/squirrelmail/ /var/www/webmail
# squirrelmail-configure


Command >> <-- D
Command >> <-- courier
Press any key to continue... <-- ENTER
Command >> <-- S
Press enter to continue... <-- ENTER
Command >> <-- Q

18. Install ISPConfig 3
# cd /tmp
# wget http://downloads.sourceforge.net/ispconfig/ISPConfig-3.0.2.1.tar.gz?use_mirror=
# tar xvfz ISPConfig-3.0.2.1.tar.gz
# cd ispconfig3_install/install/

# php -q install.php


--------------------------------------------------------------------------------
_____ ___________ _____ __ _
|_ _/ ___| ___ \ / __ \ / _(_)
| | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _
| | `--. \ __/ | | / _ \| '_ \| _| |/ _` |
_| |_/\__/ / | | \__/\ (_) | | | | | | | (_| |
\___/\____/\_| \____/\___/|_| |_|_| |_|\__, |
__/ |
|___/
--------------------------------------------------------------------------------

Select language (en,de) [en]: <-- ENTER

Installation mode (standard,expert) [standard]: <-- ENTER

Full qualified hostname (FQDN) of the server, eg server1.domain.tld [server1.example.com]: <-- ENTER

MySQL server hostname [localhost]: <-- ENTER

MySQL root username [root]: <-- ENTER

MySQL root password []: <-- yourrootsqlpassword

MySQL database to create [dbispconfig]: <-- ENTER

MySQL charset [utf8]: <-- ENTER

Generating a 2048 bit RSA private key
...............+++
............................+++
writing new private key to 'smtpd.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]: <-- ENTER
State or Province Name (full name) [Some-State]: <-- ENTER
Locality Name (eg, city) []: <-- ENTER
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- ENTER
Organizational Unit Name (eg, section) []: <-- ENTER
Common Name (eg, YOUR name) []: <-- ENTER
Email Address []: <-- ENTER
Configuring Jailkit
Configuring SASL
Configuring PAM
Configuring Courier
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring Pureftpd
Configuring BIND
Configuring Apache
Configuring vlogger
Configuring Apps vhost
Configuring Firewall
Installing ISPConfig
ISPConfig Port [8080]: <-- ENTER

Configuring DBServer
Installing Crontab
no crontab for root
no crontab for getmail
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 mysql
mysql 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
Installation completed.


Untuk mengakses gunakan browser dan ketikan alamat http://server1.example.com:8080/ atau http://192.168.0.100:8080/ user+password default admin admin



Referensi :
http://www.howtoforge.com/perfect-server-ubuntu-10.04-lucid-lynx-ispconfig-3-p3

Iklan adsense