Cara Install LAMP & phpMyAdmin di CentOS 6

* Berikut Command Step by Step Installasi Linux, Apache, MySQL, Perl/PHP/Phython & phpMyAdmin *

1. Instalasi MySQL
[email protected] [~]# yum install mysql mysql-server
[email protected] [~]# chkconfig --levels 235 mysqld on
[email protected] [~]# /etc/init.d/mysqld start
[email protected] [~]# mysql_secure_installation

2. Instalasi Apache
[email protected] [~]# yum install httpd
[email protected] [~]# chkconfig --levels 235 httpd on
[email protected] [~]# /etc/init.d/httpd start

3. Instalasi PHP
[email protected] [~]# yum install php
[email protected] [~]# yum search php
[email protected] [~]# yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc
[email protected] [~]# /etc/init.d/httpd restart

4. Instalasi phpMyAdmin
[email protected] [~]# yum install nano
[email protected] [~]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
[email protected] [~]# yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
[email protected] [~]# yum install phpmyadmin -y

5. Edit phpmyadmin.conf 
[email protected] [~]# nano /etc/httpd/conf.d/phpmyadmin.conf

Edit kira-kira seperti berikut:
#
# Web application to manage MySQL
#
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

6. Edit file config.inc.php
[email protected] [~]# nano /usr/share/phpmyadmin/config.inc.php

Temukan tulisan seperti dibawah ini, edit dan simpan kira-kira seperti berikut:
[...]
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
[...]

7. Lanjut membuat direktori dan memindahkan file, lalu restart
[email protected] [~]# mkdir /var/www/phpadmin
[email protected] [~]# cp -r /usr/share/phpmyadmin/. /var/www/phpadmin
[email protected] [~]# service httpd restart

Selanjutnya silahkan Anda akses HTTP://IP-VPS/phpadmin
dan jika masih terdapat error, (./config.inc.php) is not readable, silahkan lakukan permission file 0644:
[email protected] [~]# chmod 644 config.inc.php

Dan silahkan akses kembali HTTP://IP-VPS/phpadmin

Selesai.

0 Response to "Cara Install LAMP & phpMyAdmin di CentOS 6"

Post a Comment