blog‎ > ‎

CentOS install phpMyAdmin

posted 15 Nov 2012, 18:46 by Kampau Ocu
cara gampangnya, install dahulu RPMforge

http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

RPMforge

Check dahulu apakah arsitektur kita 32bit atau 64bit ...
[root@www phpmyadmin]# uname -i
i386

Check apakah kita bisa install 7zip

[root@www phpmyadmin]# yum install p7zip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.finalasp.com
 * extras: mirror.teklinks.com
 * updates: mirror.cogentco.com
Setting up Install Process
No package p7zip available.
Nothing to do

Ternyata belum ada paket tersebut ...

sebenarnya saya sudah download phpMyAdmin terbaru ...

[root@www phpmyadmin]# dir
phpMyAdmin-3.5.3-english.7z


tapi .. sebaiknya kita install RPMforge saja, biar lebih mudah dalam management updatenya ...

[root@www phpmyadmin]# cd
[root@www ~]# mkdir RPMforge
[root@www ~]# cd RPMforge/
[root@www RPMforge]# dir

Download file RPM nya ...

[root@www RPMforge]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
--2012-11-16 05:31:35--  http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving packages.sw.be... 78.46.17.228
Connecting to packages.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm [following]
--2012-11-16 05:31:36--  http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving pkgs.repoforge.org... 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm [following]
--2012-11-16 05:31:36--  http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving rpmforge.sw.be... 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm [following]
--2012-11-16 05:31:37--  http://tree.repoforge.org/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving tree.repoforge.org... 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm [following]
--2012-11-16 05:31:38--  http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12680 (12K) [application/x-redhat-package-manager]
Saving to: `rpmforge-release-0.5.2-2.el5.rf.i386.rpm'

100%[======================================>] 12,680      51.5K/s   in 0.2s

2012-11-16 05:31:38 (51.5 KB/s) - `rpmforge-release-0.5.2-2.el5.rf.i386.rpm' saved [12680/12680]

check apakah sudah terdownload?

[root@www RPMforge]# ls -al
total 24
drwxr-xr-x 2 root root  4096 Nov 16 05:31 .
drwxr-x--- 5 root root  4096 Nov 16 05:31 ..
-rw-r--r-- 1 root root 12680 Nov 13  2010 rpmforge-release-0.5.2-2.el5.rf.i386.rpm
ternyata sudah ...

check dahulu apakah RPM tersebut tidak salah download ...

[root@www RPMforge]# wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
--2012-11-16 05:32:15--  http://apt.sw.be/RPM-GPG-KEY.dag.txt
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1672 (1.6K) [text/plain]
Saving to: `RPM-GPG-KEY.dag.txt'

100%[======================================>] 1,672       --.-K/s   in 0s

2012-11-16 05:32:15 (319 MB/s) - `RPM-GPG-KEY.dag.txt' saved [1672/1672]

[root@www RPMforge]# rpm --import RPM-GPG-KEY.dag.txt
[root@www RPMforge]# rpm -K rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpmforge-release-0.5.2-2.el5.rf.i386.rpm: (sha1) dsa sha1 md5 gpg OK
[root@www RPMforge]# rpm -i rpmforge-release-0.5.2-2.el5.rf.i386.rpm

sekarang ... coba install 7zip ...

[root@www RPMforge]# yum install p7zip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.finalasp.com
 * extras: mirror.teklinks.com
 * rpmforge: mirror.teklinks.com
 * updates: mirror.cogentco.com
rpmforge                                                 | 1.9 kB     00:00
rpmforge/primary_db                                      | 7.1 MB     00:02
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package p7zip.i386 0:9.20.1-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch          Version                   Repository         Size
================================================================================
Installing:
 p7zip          i386          9.20.1-1.el5.rf           rpmforge          4.2 M

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 4.2 M
Is this ok [y/N]: y
Downloading Packages:
p7zip-9.20.1-1.el5.rf.i386.rpm                           | 4.2 MB     00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : p7zip                                                    1/1

Installed:
  p7zip.i386 0:9.20.1-1.el5.rf

Complete!
[root@www RPMforge]#

sekarang coba install phpmyadmin ... :D

[root@www RPMforge]# yum install phpmyadmin
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.finalasp.com
 * extras: mirror.teklinks.com
 * rpmforge: mirror.teklinks.com
 * updates: mirror.cogentco.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpmyadmin.noarch 0:2.11.11.3-2.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch         Version                     Repository      Size
================================================================================
Installing:
 phpmyadmin       noarch       2.11.11.3-2.el5.rf          rpmforge       4.2 M

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 4.2 M
Is this ok [y/N]: y
Downloading Packages:
phpmyadmin-2.11.11.3-2.el5.rf.noarch.rpm                 | 4.2 MB     00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : phpmyadmin                                               1/1

Installed:
  phpmyadmin.noarch 0:2.11.11.3-2.el5.rf

Complete!
[root@www RPMforge]#



Comments