1. ติดตั้งแพ็กเกจ epel ก่อนเป้นอันดับแรก
CentOS 64 Bit
[root@cloud01 ~]# rpm – ivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_6...
CentOS 64 Bit
[root@cloud01 ~]# rpm – ivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_6...
CentOS 32 Bit
[root@cloud01 ~]# rpm -ivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/...
[root@cloud01 ~]# rpm -ivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/...
2. ทำการ yum update (สามารถข้ามขั้นตอนนี้ไปได้ครับ ถ้าใครไม่ต้องการ update)
[root@cloud01 ~]# yum update -y
[root@cloud01 ~]# yum update -y
3. ติดตั้งแพ็กเกจ php-mcrypt และ phpMyAdmin
[root@cloud01 ~]# yum install php-mcrypt phpMyAdmin -y
[root@cloud01 ~]# yum install php-mcrypt phpMyAdmin -y
4. ทำการแก้ไขไฟล์คอนฟิกของ phpMyAdmin
[root@cloud01 ~]# vi /etc/httpd/conf.d/phpMyAdmin.conf
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
# Apache 2.4
Require ip 127.0.0.1
# Require ip ::1
# Apache 2.2
Order Deny,Allow
#Deny from All
Allow from All
#Allow from 127.0.0.1
#Allow from ::1
Order Deny,Allow
#Deny from All
Allow from All
#Allow from 127.0.0.1
#Allow from ::1
5. การการรีสต๊าทเซอร์วิส Web Server ใหม่
[root@cloud01 ~]# service httpd restart
6. ทดสอบเรียกใช้งาน phpMyAdmin
http://ip_address/phpMyAdmin/ หรือ
http://ip_address/phpmyadmin/
http://ip_address/phpmyadmin/
- See more at: ขอบคุณครับ
ไม่มีความคิดเห็น:
แสดงความคิดเห็น