Selasa, 19 Februari 2013

Basic Install Centos 6.3 di Server IBM X3650

Sedikit share mengenai instalasi Centos 6.3 di server IBM X3650, pada dasarnya sama dengan instalasi OS berbasis linux di server-server lainnya, namun yang perlu diperhatikan adalah bahwa X3650 menggunakan BIOS UEFI, berbeda dengan seri-seri server IBM lainnya. Maka dari itu pastikan anda telah mempersiapkan CD Centos yang support UEFI. Bisa di cek di sini utntuk file ISO nya, saran saya pilihlah yang minimal fiturnya (tidak perlu ada GUI-nya) agar proses instalasi lebih cepat dan tidak memakan space hardisk berlebih.

Nah setelah anda siap dengan CD Centos yang support UEFI/EFI Bios, silakan lakukan install OS tersebut pada PC Server anda, untuk step-step instalasi OS tidak akan dibahas di sini.
Setelah instalasi selesai, tentunya PC Server anda tidak serta merta bisa digunakan, karena harus anda setting dulu untuk bisa terhubung dengan internet. Langkah yang harus anda lakukan adalah login sebagai root, kemudian ketikkan perintah berikut :

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Maka akan muncul tampilan :

DEVICE=eth0
BOOTPROTO=none
HWADDR=E4:1F:13:44:67:24
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID=d94fdec8-e907-4e9b-9771-7bc5313dd584
IPADDR=27.xx.xx.xx
NETMASK=255.255.255.xx
GATEWAY=27.xx.xx.xx
IPV6INIT=no
USERCTL=no

Yang perlu anda perhatikan adalah bagian teks yang berwarna merah, sesuaikan dengan settingan internet anda. Untuk menggunakan editor vi silakan lihat di sini.
Jika sudah jangan lupa untuk menyimpan perubahan yang anda lakukan. Selanjutnya adalah setting DNS, caranya ketik :

vi /etc/resolv.conf

Ketikkan IP DNS anda, misal :

nameserver 202.43.xxx.xxx
nameserver 202.43.xxx.xxx

Lalu simpan dengan menekan tombol esc, Shift+ZZ
Dengan demikian anda sudah berhasil melakukan setting IP/network address PC Server anda, sekarang lakukan test ping ke gateway dan ke google.com, jika sudah reply berarti PC anda sudah terhubung dengan internet.

Contoh :
ping google.com

Hasilnya :
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=6 ttl=56 time=22.1 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=7 ttl=56 time=18.0 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=8 ttl=56 time=20.3 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=9 ttl=56 time=23.4 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=10 ttl=56 time=16.4 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=11 ttl=56 time=20.8 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=12 ttl=56 time=24.4 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=13 ttl=56 time=26.3 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=14 ttl=56 time=18.4 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=15 ttl=56 time=20.2 ms
64 bytes from sin04s02-in-f4.1e100.net (173.194.38.164): icmp_seq=16 ttl=56 time=22.3 ms

Install LAMP (Linux Apache MySQL PHP) :

Instal MySQL :

yum install mysql mysql-server

Setting startup mysql :

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

Set password :

mysql_secure_installation

Akan muncul tulisan :

[root@server1 ~]# mysql_secure_installation




NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n] <-- ENTER
New password: <-- yourrootsqlpassword
Re-enter new password: <-- yourrootsqlpassword
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] <-- ENTER
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] <-- ENTER
 ... Success!

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] <-- ENTER
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] <-- ENTER
 ... Success!

Cleaning up...



All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!


[root@server1 ~]#

Install Apache2 :

yum install httpd

Setting startup apache :

chkconfig --levels 235 httpd on
/etc/init.d/httpd start

Sekarang test buka browser dan ketikkan IP server anda.

Install PHP5 :

yum install php

/etc/init.d/httpd restart


Test PHP5 :

vi /var/www/html/info.php

ketik :

<?php
phpinfo();
?>

Simpan, lalu cek di browser dengan mengetikkan ip-address/info.php
ip-address : ganti dengan alamat IP anda.

Support MySQL PHP5 :

yum search php

yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc


/etc/init.d/httpd restart


Install phpmyadmin :


Import RPMforge GPG key:

rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

Untuk x86_64 systems :

yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Untuk i386 systems :

yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

phpMyAdmin bisa diinstal dengan cara :

yum install phpmyadmin



Sekarang edit file phpmyadmin.conf seperti berikut :

vi /etc/httpd/conf.d/phpmyadmin.conf

#
#  Web application to manage MySQL
#

#<Directory "/usr/share/phpmyadmin">
#  Order Deny,Allow
#  Deny from all
#  Allow from 127.0.0.1
#</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

Rubah autentifikasi phpMyAdmin dari cookie ke http:

vi /usr/share/phpmyadmin/config.inc.php

[...]
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
[...]

Restart Apache:

/etc/init.d/httpd restart

Sekarang coba akses dari browser : ip-address/phpmyadmin

Selesai.....thanks to howtoforge








Tidak ada komentar:

Posting Komentar