Sebelumnya ane lagi iseng-iseng buat install lampp buat VPS ane tapi ternyata ada masalah waktu point install phpmyadminnya alhasil stress dan bingung tapi gag nyerah dah :D googling sana sini jalan trus.. alhamdulillah sukses install phpmyadmin di VPS ane :D
oke dah gag banyak omong langsung aja buat sobat yang bermasalah waktu install phpmyadmin dengan error "No package phpmyadmin available. Nothing to do" di centOS 5 atau 6.
1. login sebagau super user / root
2. ketik perintah ini
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
nah kalo ada error waktu jalanin import diatas "3. cd /tmp
"error: http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt: import read failed(-1)." cara lainnya yaitu
2a. wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
2b. rpm --import RPM-GPG-KEY.dag.txt
4. wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
5. rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
6. yum install ntp httpd mysql-server php php-mysql php-mbstring php-mcrypt phpmyadmin
7. mysql_secure_installation
8. nano /etc/httpd/conf.d/phpmyadmin.conf
Sebelumnya :9. nano /usr/share/phpmyadmin/config.inc.php
#
# 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
edit menjadi
sesudahnya:
#
# 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
Ctrl-X to save
Cari baris
$cfg['Servers'][$i]['auth_type'] = 'cookie';
Ganti dengan
$cfg['Servers'][$i]['auth_type'] = 'http';
Ctrl-X to save again.10. Selanjutnya terakhir adalah restart apache lagi.
service httpd restart11. Sekarang buka phpmyadmin sobat http://ipdomainanda/phpmyadmin
Semoga bermanfaat buat temen-temen semua yah :-)