Install PhpMyAdmin di Apache pada Centos 6

Sebelum install PhpMyadmin pastikan kamu sudah menginstall Apache terlebih dahulu. Untuk panduan instalasi Apache di Centos 6 dapat kamu baca di sini:

Install Apache2 , Mysql Server Dan PHP Di Centos 6

Jika sudah, ikuti langkah berikut untuk instalasi PhpMyadmin di Centos 6

1. Install Dependensi Repositori untuk PhpMyadmin
Buka terminal dan ketikkan:

Untuk Centos 6 32bit:
[root@centos ~]# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
[root@centos ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Untuk Centos 6 64bit:
[root@centos ~]# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@centos ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm


2. Install PhpMyadmin
Setelah depedensi terinstall, langkah selanjutnya adalah install PhpMyadmin dengan perintah:
[root@centos ~]# yum --enablerepo=remi install phpmyadmin

3. Konfigurasi PhpMyadmin
File konfigurasi PhpMyadmin dapat kamu temukan di direktori:
/etc/httpd/conf.d/phpMyAdmin.conf

Agar PhpMyadmin dapat diakses selain dari localhost atau dapat diakses dari luar maka perlu dilakukan modifikasi dengan perintah
[root@centos ~]# vi /etc/httpd/conf.d/phpMyAdmin.conf

Lalu cari baris Allow from 127.0.0.1 seperti baris berikut:
 # Apache 2.2    
 Order Deny,Allow    
 Deny from All    
Allow from 127.0.0.1      

Dan ganti menjadi:
 # Apache 2.2    
 Order Deny,Allow    
 Deny from All    
  Allow from All  
  Allow from ::1  

4. Restart Apache
Agar PhpMyadmin dapat diakses lakukan restart pada service Apache dengan perintah:
[root@centos ~]# service httpd restart

5. Menjalankan PhpMyadmin
Buka web browser favoritmu dan ketikkan:
http://localhost/phpmyadmin



Mudah kan. Selamat mencoba :)
Install PhpMyAdmin di Apache pada Centos 6 Install PhpMyAdmin di Apache pada Centos 6 Reviewed by rizupz on Senin, September 16, 2013 Rating: 5

Tidak ada komentar:

Diberdayakan oleh Blogger.