Home General Computer Multimedia Business Lounge
|
Tutor Linode Server Migration ubuntu
|
|
04-02-2012, 07:21 PM
(This post was last modified: 04-02-2012 07:24 PM by nobodyknowme.)
|
|||
|
|||
|
Linode Server Migration ubuntu
Edit /etc/apt/sources.list and update
Code: apt-get updateEnable the root account sudo passwd root masukan root password . dan perintah untuk menjadi root Code: suSynchronize the system clock singkronisasikan dengan NTP server diinternet Code: apt-get install ntp ntpdateInstall the SSH server defaultnya adalah openssh . Code: apt-get install ssh openssh-serverConfigure the network edit /etc/network/interfaces: Code: #This file describes the network interfaces available on your systemRestart Network: Code: /etc/init.d/networking restartedit /etc/hosts: Code: 127.0.0.1 localhost.localdomain localhostkemudian jalankan Code: echo server1.example.com > /etc/hostnamerestart dengan perintah: Code: rebootkemudian Code: hostnametambahkan user sample dengan nama webmaster Code: sudo useradd -d /home/webmaster -m webmasterlanjut ke mysql Code: apt-get install mysql-server mysql-clientkemudian Postfix for SMTP support Code: apt-get install postfix procmailkemudian akan ada pertanyaan : Code: General type of configuration? <-- Internet Sitejalankan Code: dpkg-reconfigure postfixmuncul beberapa pertanyaann Code: General type of configuration? <-- Internet Sitekemudian Code: postconf -e 'inet_interfaces = loopback-only'restart postfix Code: /etc/init.d/postfix restartkemudian kita lanjutkan setup apache Apache/PHP5 Code: apt-get install apache2 apache2-mpm-prefork apache2-utils ssl-certInstall PHP5: Code: apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xslEdit /etc/apache2/mods-available/dir.conf: Code: <IfModule mod_dir.c>kemudian kita aktifkan beberapa module apachenya Code: a2enmod sslkemudian reload apachenya Code: /etc/init.d/apache2 force-reloadmenambahkan subdomain /etc/apache2/sites-enabled, Code: <VirtualHost *>dilanjut dengan Proftpd apt-get install proftpd ucf muncul pertanyaan : Code: Run proftpd from inetd or standalone? <-- standaloneedit /etc/proftpd/proftpd.conf: Code: [...]restart Code: /etc/init.d/proftpd restartInstall PHPMyAdmin: Code: apt-get install phpmyadminSecure SSH bit Edit /etc/ssh/sshd_config: Code: Port 4444 #Other than 22Set /var/www permissions Code: chown -R webmaster:www-data /var/wwwInstall proteksi dari slowloris Code: apt-get install gcc apache2-threaded-devInstall fail2ban Code: apt-get install fail2bantahap migrasii pindahkan user files, virtualhost configurations, /var/www. Backup mysql data bases. kemudian Install openjdk-6-jre, davmail jika digunakan Backup script: Code: tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/dev --exclude=/usr --exclude=/bin --exclude=/sbin --exclude=/backup.tgz / |
|||
Reputed by : ditatompel(+1) |
|
04-02-2012, 08:41 PM
|
|||
|
|||
RE: Linode Server Migration ubuntu
![]()
|
|||
|
04-02-2012, 10:47 PM
|
|||
|
|||
|
RE: Linode Server Migration ubuntu
Wih.. Mantap omz.. :ane ijin pelajari dulu...
|
|||
|
« Next Oldest | Next Newest »
|
| Topic Tools | ||||||
| ||||||
| Users Browsing |














