Cara Install LAMP & phpMyAdmin di CentOS 6

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

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

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

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

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

5. Edit phpmyadmin.conf 
root@lingga [~]# 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
root@lingga [~]# 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
root@lingga [~]# mkdir /var/www/phpadmin
root@lingga [~]# cp -r /usr/share/phpmyadmin/. /var/www/phpadmin
root@lingga [~]# 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:
root@lingga [~]# chmod 644 config.inc.php

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

Selesai.

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

Posting Komentar