Updating from CentOS 5.8 to CentOS 5.9 using Yum Update

centosAs per my previous post, CentOS 5.9 now available for download on 17 January 2013. This is the ninth update to the CentOS 5 distribution series and it’s contains a lot of bugfixes, updates and new functionality if compared than CentOS 5.8. This post assumed that you have already installed CentOS 5.8 and planned to upgrade to CentOS 5.9. The steps to upgrade is very simple as easy you update the software such as httpd or php. For internet webmasters or bloggers who currently run CentOS 5.8 or older version of virtual private server (VPS) to host their blog or homepage also may use this steps to upgrade their CentOS 5.5/CentOS 5.6/CentOS 5.7/CentOS 5.8 VPS server.

Steps to Update from CentOS 5.8 or older version to CentOS 5.9 :

1. Run “yum list updates”

[root@centos58 ~]# yum list updates

This is to get a list of packages that are going to be updated.

2. Verify the current version of CentOS 5.

[root@centos58 ~]# cat /etc/redhat-release
CentOS release 5.8 (Final)

3. Update CentOS 5.8 server via yum by issue the following command :

[root@centos58 ~]# yum update -y

Example :

[root@centos58 ~]# yum update -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * extras: centos.ipserverone.com
 * updates: centos.ipserverone.com
Setting up Update Process
..
..
..
Running Transaction
  Updating       : tzdata                                                                                                                              1/239
  Updating       : glibc-common                                                                                                                        2/239
  Updating       : crontabs                                                                                                                            3/239
  Updating       : hwdata                                                                                                                              4/239
  Updating       : centos-release-notes                                                                                                                5/239
  Updating       : centos-release                                                                                                                      6/239
  Updating       : tzdata-java                                                                                                                         7/239
  Updating       : nash                                                                                                                                8/239
  Updating       : selinux-policy                                                                                                                      9/239
  Updating       : aspell-en                                                                                                                          10/239
  Updating       : libgcc                                                                                                                             11/239
  Updating       : glibc                                                                                                                              12/239
  Updating       : zlib                                                                                                                               13/239
  Updating       : e2fsprogs-libs                                                                                                                     14/239
  Updating       : openssl                                                                                                                            15/239
  Updating       : php53-common                                                                                                                       16/239
  Updating       : nspr                                                                                                                               17/239
  Updating       : nss                                                                                                                                18/239
  Updating       : libxml2                                                                                                                            19/239
  Updating       : popt                                                                                                                               20/239
  Updating       : cyrus-sasl-lib                                                                                                                     21/239
  Updating       : libstdc++                                                                                                                          22/239
  Updating       : openldap                                                                                                                           23/239
  Updating       : sqlite                                                                                                                             24/239
  Updating       : shadow-utils                                                                                                                       25/239
  Updating       : gawk                                                                                                                               26/239
  Updating       : libpng                                                                                                                             27/239
  Updating       : expat                                                                                                                              28/239
  Updating       : freetype                                                                                                                           29/239
  Updating       : php53-pdo                                                                                                                          30/239
  Updating       : net-snmp-libs                                                                                                                      31/239
  Updating       : libgcrypt                                                                                                                          32/239
  Updating       : gdbm                                                                                                                               33/239
  Updating       : perl                                                                                                                               34/239
  Updating       : e2fsprogs                                                                                                                          35/239
  Updating       : diffutils                                                                                                                          36/239
  Updating       : libxslt                                                                                                                            37/239
  Updating       : libtiff                                                                                                                            38/239
  Updating       : gtk2                                                                                                                               39/239
  Updating       : libgcj                                                                                                                             40/239
  Updating       : mozldap                                                                                                                            41/239
  Updating       : postgresql-libs                                                                                                                    42/239
  Updating       : file                                                                                                                               43/239
  Updating       : libvolume_id                                                                                                                       44/239
  Updating       : kpartx                                                                                                                             45/239
  Updating       : procps                                                                                                                             46/239
  Updating       : lvm2                                                                                                                               47/239
  Updating       : device-mapper-multipath                                                                                                            48/239
  Updating       : logrotate                                                                                                                          49/239
  Updating       : php53-cli                                                                                                                          50/239
  Updating       : nss-tools                                                                                                                          51/239
  Updating       : cpio                                                                                                                               52/239
  Updating       : tar                                                                                                                                53/239
  Updating       : psmisc                                                                                                                             54/239
  Updating       : iproute                                                                                                                            55/239
  Updating       : gnutls                                                                                                                             56/239
  Updating       : cyrus-sasl-gssapi                                                                                                                  57/239
  Updating       : cyrus-sasl-md5                                                                                                                     58/239
  Updating       : tcl                                                                                                                                59/239
  Updating       : php53-pgsql                                                                                                                        60/239
  Updating       : mozldap-tools                                                                                                                      61/239
  Updating       : php53-xml                                                                                                                          62/239
  Updating       : grub                                                                                                                               63/239
  Updating       : php53-odbc                                                                                                                         64/239
  Updating       : php53-gd                                                                                                                           65/239
  Updating       : vim-common                                                                                                                         66/239
  Updating       : php53-ldap                                                                                                                         67/239
  Updating       : openldap-clients                                                                                                                   68/239
  Updating       : php53-xmlrpc                                                                                                                       69/239
  Updating       : php53-soap                                                                                                                         70/239
  Updating       : php53-intl                                                                                                                         71/239
  Updating       : php53-mbstring                                                                                                                     72/239
  Updating       : php53-pspell                                                                                                                       73/239
  Updating       : php53-dba                                                                                                                          74/239
  Updating       : php53-process                                                                                                                      75/239
  Updating       : php53-bcmath                                                                                                                       76/239
  Updating       : wget                                                                                                                               77/239
  Updating       : iptables                                                                                                                           78/239
  Updating       : binutils                                                                                                                           79/239
  Updating       : ftp                                                                                                                                80/239
  Updating       : vim-minimal                                                                                                                        81/239
  Updating       : jpackage-utils                                                                                                                     82/239
  Updating       : java-1.6.0-openjdk                                                                                                                 83/239
  Updating       : coreutils                                                                                                                          84/239
  Updating       : python                                                                                                                             85/239
  Updating       : pam                                                                                                                                86/239
  Updating       : udev                                                                                                                               87/239
  Updating       : util-linux                                                                                                                         88/239
  Updating       : initscripts                                                                                                                        89/239
  Updating       : rpm-libs                                                                                                                           90/239
  Updating       : rpm                                                                                                                                91/239
  Updating       : httpd                                                                                                                              92/239
  Updating       : mysql                                                                                                                              93/239
  Updating       : iscsi-initiator-utils                                                                                                              94/239
  Updating       : python-libs                                                                                                                        95/239
  Updating       : python-iniparse                                                                                                                    96/239
  Updating       : selinux-policy-targeted                                                                                                            97/239
  Updating       : rpm-python                                                                                                                         98/239
  Updating       : net-snmp                                                                                                                           99/239
  Updating       : kbd                                                                                                                               100/239
  Updating       : yum-metadata-parser                                                                                                               101/239
  Updating       : mkinitrd                                                                                                                          102/239
  Updating       : php53                                                                                                                             103/239
  Updating       : libuser                                                                                                                           104/239
  Updating       : php53-snmp                                                                                                                        105/239
  Updating       : php53-mysql                                                                                                                       106/239
  Updating       : mysql-server                                                                                                                      107/239
  Updating       : mod_nss                                                                                                                           108/239
  Updating       : mod_ssl                                                                                                                           109/239
  Updating       : man                                                                                                                               110/239
  Updating       : dhclient                                                                                                                          111/239
  Updating       : nfs-utils                                                                                                                         112/239
  Updating       : php53-imap                                                                                                                        113/239
  Updating       : m2crypto                                                                                                                          114/239
  Updating       : php53-devel                                                                                                                       115/239
  Installing     : kernel                                                                                                                            116/239
  Updating       : yum                                                                                                                               117/239
  Updating       : hal                                                                                                                               118/239
  Updating       : pm-utils                                                                                                                          119/239
  Updating       : kudzu                                                                                                                             120/239
  Cleanup        : libxml2                                                                                                                           121/239
  Cleanup        : tzdata-java                                                                                                                       122/239
  Cleanup        : mozldap                                                                                                                           123/239
  Cleanup        : php53-intl                                                                                                                        124/239
  Cleanup        : device-mapper-multipath                                                                                                           125/239
  Cleanup        : libgcrypt                                                                                                                         126/239
  Cleanup        : openssl                                                                                                                           127/239
  Cleanup        : selinux-policy-targeted                                                                                                           128/239
  Cleanup        : expat                                                                                                                             129/239
  Cleanup        : php53-common                                                                                                                      130/239
  Cleanup        : man                                                                                                                               131/239
  Cleanup        : php53-gd                                                                                                                          132/239
  Cleanup        : libgcc                                                                                                                            133/239
  Cleanup        : cpio                                                                                                                              134/239
  Cleanup        : php53-xml                                                                                                                         135/239
  Cleanup        : tcl                                                                                                                               136/239
  Cleanup        : python-iniparse                                                                                                                   137/239
  Cleanup        : dhclient                                                                                                                          138/239
  Cleanup        : file                                                                                                                              139/239
  Cleanup        : php53-mbstring                                                                                                                    140/239
  Cleanup        : php53-pdo                                                                                                                         141/239
  Cleanup        : perl                                                                                                                              142/239
  Cleanup        : nspr                                                                                                                              143/239
  Cleanup        : php53-ldap                                                                                                                        144/239
  Cleanup        : initscripts                                                                                                                       145/239
  Cleanup        : selinux-policy                                                                                                                    146/239
  Cleanup        : diffutils                                                                                                                         147/239
  Cleanup        : gtk2                                                                                                                              148/239
  Cleanup        : jpackage-utils                                                                                                                    149/239
  Cleanup        : rpm-python                                                                                                                        150/239
  Cleanup        : kudzu                                                                                                                             151/239
  Cleanup        : mysql                                                                                                                             152/239
  Cleanup        : tar                                                                                                                               153/239
  Cleanup        : popt                                                                                                                              154/239
  Cleanup        : cyrus-sasl-lib                                                                                                                    155/239
  Cleanup        : libvolume_id                                                                                                                      156/239
  Cleanup        : net-snmp-libs                                                                                                                     157/239
  Cleanup        : nfs-utils                                                                                                                         158/239
  Cleanup        : vim-common                                                                                                                        159/239
  Cleanup        : iptables                                                                                                                          160/239
  Cleanup        : mkinitrd                                                                                                                          161/239
  Cleanup        : php53-xmlrpc                                                                                                                      162/239
  Cleanup        : python-libs                                                                                                                       163/239
  Cleanup        : mod_nss                                                                                                                           164/239
  Cleanup        : aspell-en                                                                                                                         165/239
  Cleanup        : php53-pspell                                                                                                                      166/239
  Cleanup        : openldap-clients                                                                                                                  167/239
  Cleanup        : php53-dba                                                                                                                         168/239
  Cleanup        : psmisc                                                                                                                            169/239
  Cleanup        : libxslt                                                                                                                           170/239
  Cleanup        : centos-release-notes                                                                                                              171/239
  Cleanup        : libtiff                                                                                                                           172/239
  Cleanup        : gdbm                                                                                                                              173/239
  Cleanup        : iscsi-initiator-utils                                                                                                             174/239
  Cleanup        : zlib                                                                                                                              175/239
  Cleanup        : hwdata                                                                                                                            176/239
  Cleanup        : util-linux                                                                                                                        177/239
  Cleanup        : wget                                                                                                                              178/239
  Cleanup        : libpng                                                                                                                            179/239
  Cleanup        : logrotate                                                                                                                         180/239
  Cleanup        : iproute                                                                                                                           181/239
  Cleanup        : hal                                                                                                                               182/239
  Cleanup        : freetype                                                                                                                          183/239
  Cleanup        : php53-mysql                                                                                                                       184/239
  Cleanup        : php53-process                                                                                                                     185/239
  Cleanup        : rpm                                                                                                                               186/239
  Cleanup        : nss                                                                                                                               187/239
  Cleanup        : crontabs                                                                                                                          188/239
  Cleanup        : postgresql-libs                                                                                                                   189/239
  Cleanup        : libuser                                                                                                                           190/239
  Cleanup        : e2fsprogs-libs                                                                                                                    191/239
  Cleanup        : libgcj                                                                                                                            192/239
  Cleanup        : sqlite                                                                                                                            193/239
  Cleanup        : shadow-utils                                                                                                                      194/239
  Cleanup        : openldap                                                                                                                          195/239
  Cleanup        : httpd                                                                                                                             196/239
  Cleanup        : java-1.6.0-openjdk                                                                                                                197/239
  Cleanup        : coreutils                                                                                                                         198/239
  Cleanup        : binutils                                                                                                                          199/239
  Cleanup        : m2crypto                                                                                                                          200/239
  Cleanup        : ftp                                                                                                                               201/239
  Cleanup        : kpartx                                                                                                                            202/239
  Cleanup        : centos-release                                                                                                                    203/239
  Cleanup        : php53-snmp                                                                                                                        204/239
  Cleanup        : e2fsprogs                                                                                                                         205/239
  Cleanup        : gawk                                                                                                                              206/239
  Cleanup        : yum-metadata-parser                                                                                                               207/239
  Cleanup        : tzdata                                                                                                                            208/239
  Cleanup        : php53-odbc                                                                                                                        209/239
  Cleanup        : mod_ssl                                                                                                                           210/239
  Cleanup        : procps                                                                                                                            211/239
  Cleanup        : libstdc++                                                                                                                         212/239
  Cleanup        : cyrus-sasl-gssapi                                                                                                                 213/239
  Cleanup        : vim-minimal                                                                                                                       214/239
  Cleanup        : php53-soap                                                                                                                        215/239
  Cleanup        : mysql-server                                                                                                                      216/239
  Cleanup        : kbd                                                                                                                               217/239
  Cleanup        : pm-utils                                                                                                                          218/239
  Cleanup        : gnutls                                                                                                                            219/239
  Cleanup        : yum                                                                                                                               220/239
  Cleanup        : php53-pgsql                                                                                                                       221/239
  Cleanup        : glibc-common                                                                                                                      222/239
  Cleanup        : mozldap-tools                                                                                                                     223/239
  Cleanup        : glibc                                                                                                                             224/239
  Cleanup        : php53-devel                                                                                                                       225/239
  Cleanup        : lvm2                                                                                                                              226/239
  Cleanup        : python                                                                                                                            227/239
  Cleanup        : php53-imap                                                                                                                        228/239
  Cleanup        : cyrus-sasl-md5                                                                                                                    229/239
  Cleanup        : php53-cli                                                                                                                         230/239
  Cleanup        : grub                                                                                                                              231/239
  Cleanup        : pam                                                                                                                               232/239
  Cleanup        : php53-bcmath                                                                                                                      233/239
  Cleanup        : rpm-libs                                                                                                                          234/239
  Cleanup        : php53                                                                                                                             235/239
  Cleanup        : udev                                                                                                                              236/239
  Cleanup        : net-snmp                                                                                                                          237/239
  Cleanup        : nash                                                                                                                              238/239
  Cleanup        : nss-tools                                                                                                                         239/239

Installed:
  kernel.i686 0:2.6.18-348.1.1.el5

Updated:
  aspell-en.i386 50:6.0-3                                binutils.i386 0:2.17.50.0.6-20.el5_8.3             centos-release.i386 10:5-9.el5.centos.1
  centos-release-notes.i386 0:5.9-0                      coreutils.i386 0:5.97-34.el5_8.1                   cpio.i386 0:2.6-25.el5
  crontabs.noarch 0:1.10-11.el5                          cyrus-sasl-gssapi.i386 0:2.1.22-7.el5_8.1          cyrus-sasl-lib.i386 0:2.1.22-7.el5_8.1
  cyrus-sasl-md5.i386 0:2.1.22-7.el5_8.1                 device-mapper-multipath.i386 0:0.4.7-54.el5_9.1    dhclient.i386 12:3.0.5-33.el5_9
  diffutils.i386 0:2.8.1-16.el5                          e2fsprogs.i386 0:1.39-35.el5                       e2fsprogs-libs.i386 0:1.39-35.el5
  expat.i386 0:1.95.8-11.el5_8                           file.i386 0:4.17-28                                freetype.i386 0:2.2.1-32.el5_9.1
  ftp.i386 0:0.17-38.el5                                 gawk.i386 0:3.1.5-16.el5                           gdbm.i386 0:1.8.0-28.el5
  glibc.i686 0:2.5-107                                   glibc-common.i386 0:2.5-107                        gnutls.i386 0:1.4.1-10.el5
  grub.i386 0:0.97-13.10.el5                             gtk2.i386 0:2.10.4-29.el5                          hal.i386 0:0.5.8.1-64.el5
  httpd.i386 0:2.2.3-76.el5.centos                       hwdata.noarch 0:0.213.28-1.el5                     initscripts.i386 0:8.45.42-1.el5.centos.1
  iproute.i386 0:2.6.18-15.el5                           iptables.i386 0:1.3.5-9.2.el5_8                    iscsi-initiator-utils.i386 0:6.2.0.872-16.el5
  java-1.6.0-openjdk.i386 1:1.6.0.0-1.33.1.11.6.el5_9    jpackage-utils.noarch 0:1.7.3-1jpp.3.el5           kbd.i386 0:1.12-22.el5
  kpartx.i386 0:0.4.7-54.el5_9.1                         kudzu.i386 0:1.2.57.1.26-7.el5.centos              libgcc.i386 0:4.1.2-54.el5
  libgcj.i386 0:4.1.2-54.el5                             libgcrypt.i386 0:1.4.4-5.el5_8.2                   libpng.i386 2:1.2.10-17.el5_8
  libstdc++.i386 0:4.1.2-54.el5                          libtiff.i386 0:3.8.2-18.el5_8                      libuser.i386 0:0.54.7-3.el5
  libvolume_id.i386 0:095-14.29.el5                      libxml2.i386 0:2.6.26-2.1.15.el5_8.6               libxslt.i386 0:1.1.17-4.el5_8.3
  logrotate.i386 0:3.7.4-14                              lvm2.i386 0:2.02.88-10.el5                         m2crypto.i386 0:0.16-9.el5
  man.i386 0:1.6d-3.el5                                  mkinitrd.i386 0:5.1.19.6-79.el5                    mod_nss.i386 0:1.0.8-7.el5
  mod_ssl.i386 1:2.2.3-76.el5.centos                     mozldap.i386 0:6.0.5-2.el5                         mozldap-tools.i386 0:6.0.5-2.el5
  mysql.i386 0:5.0.95-5.el5_9                            mysql-server.i386 0:5.0.95-5.el5_9                 nash.i386 0:5.1.19.6-79.el5
  net-snmp.i386 1:5.3.2.2-20.el5                         net-snmp-libs.i386 1:5.3.2.2-20.el5                nfs-utils.i386 1:1.0.9-66.el5
  nspr.i386 0:4.9.2-2.el5_9                              nss.i386 0:3.13.6-3.el5_9                          nss-tools.i386 0:3.13.6-3.el5_9
  openldap.i386 0:2.3.43-25.el5_8.1                      openldap-clients.i386 0:2.3.43-25.el5_8.1          openssl.i686 0:0.9.8e-22.el5_8.4
  pam.i386 0:0.99.6.2-12.el5                             perl.i386 4:5.8.8-38.el5_8                         php53.i386 0:5.3.3-13.el5_8
  php53-bcmath.i386 0:5.3.3-13.el5_8                     php53-cli.i386 0:5.3.3-13.el5_8                    php53-common.i386 0:5.3.3-13.el5_8
  php53-dba.i386 0:5.3.3-13.el5_8                        php53-devel.i386 0:5.3.3-13.el5_8                  php53-gd.i386 0:5.3.3-13.el5_8
  php53-imap.i386 0:5.3.3-13.el5_8                       php53-intl.i386 0:5.3.3-13.el5_8                   php53-ldap.i386 0:5.3.3-13.el5_8
  php53-mbstring.i386 0:5.3.3-13.el5_8                   php53-mysql.i386 0:5.3.3-13.el5_8                  php53-odbc.i386 0:5.3.3-13.el5_8
  php53-pdo.i386 0:5.3.3-13.el5_8                        php53-pgsql.i386 0:5.3.3-13.el5_8                  php53-process.i386 0:5.3.3-13.el5_8
  php53-pspell.i386 0:5.3.3-13.el5_8                     php53-snmp.i386 0:5.3.3-13.el5_8                   php53-soap.i386 0:5.3.3-13.el5_8
  php53-xml.i386 0:5.3.3-13.el5_8                        php53-xmlrpc.i386 0:5.3.3-13.el5_8                 pm-utils.i386 0:0.99.3-14.el5
  popt.i386 0:1.10.2.3-31.el5                            postgresql-libs.i386 0:8.1.23-6.el5_8              procps.i386 0:3.2.7-22.el5
  psmisc.i386 0:22.2-11                                  python.i386 0:2.4.3-56.el5                         python-iniparse.noarch 0:0.2.3-6.el5
  python-libs.i386 0:2.4.3-56.el5                        rpm.i386 0:4.4.2.3-31.el5                          rpm-libs.i386 0:4.4.2.3-31.el5
  rpm-python.i386 0:4.4.2.3-31.el5                       selinux-policy.noarch 0:2.4.6-338.el5              selinux-policy-targeted.noarch 0:2.4.6-338.el5
  shadow-utils.i386 2:4.0.17-21.el5                      sqlite.i386 0:3.3.6-6                              tar.i386 2:1.15.1-32.el5_8
  tcl.i386 0:8.4.13-6.el5                                tzdata.i386 0:2012j-1.el5                          tzdata-java.i386 0:2012j-1.el5
  udev.i386 0:095-14.29.el5                              util-linux.i386 0:2.13-0.59.el5_8                  vim-common.i386 2:7.0.109-7.2.el5
  vim-minimal.i386 2:7.0.109-7.2.el5                     wget.i386 0:1.11.4-3.el5_8.2                       yum.noarch 0:3.2.22-40.el5.centos
  yum-metadata-parser.i386 0:1.1.2-4.el5                 zlib.i386 0:1.2.3-7.el5

Complete!
[root@centos58 ~]#

4. Verify the updated version of CentOS 5.

[root@centos58 ~]# cat /etc/redhat-release
CentOS release 5.9 (Final)

How to Setup Webmin 1.580 on CentOS 5.8

CentOS 5.8This quick post will show you the steps on installing webmin, the web-based system configuration and administration tool on linux CentOS 5.8 server. There are three alternative way to setup webmin which using RPM, YUM command and using Tar file. After setup webmin, you will be able to do linux system administration task using Graphical User Interface (GUI) which is good for linux newbie who not familiar with command line.

Option 1 : Setup Webmin using RPM

1. Download required RPM file here (http://download.webmin.com/download/yum/)

[root@centos58 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm

or

[root@centos58 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm

Example :

[root@centos58 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
--2012-06-08 05:34:12--  http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
Resolving download.webmin.com... 67.228.198.100
Connecting to download.webmin.com|67.228.198.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17112780 (16M) [application/x-rpm]
Saving to: `webmin-1.580-1.noarch.rpm'

100%[==========================================================>] 17,112,780   118K/s   in 3m 2s

2012-06-08 05:37:15 (91.9 KB/s) - `webmin-1.580-1.noarch.rpm' saved [17112780/17112780]

2. Download and import my GPG key with which the packages are signed, with the commands :

[root@centos58 ~]# wget http://www.webmin.com/jcameron-key.asc
[root@centos58 ~]# rpm --import jcameron-key.asc

3. Install RPM version of Webmin as below :

[root@centos58 ~]# rpm -Uvh webmin-1.580-1.noarch.rpm
Preparing...                ########################################### [100%]
Operating system is CentOS Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://centos58.ehowtuff.local:10000/
as root with your root password.

Option 2 : Setup Webmin using YUM

1. Login to your CentOS server with root privileges.
2. Download and import my GPG key with which the packages are signed, with the commands :

[root@centos58 ~]# wget http://www.webmin.com/jcameron-key.asc
[root@centos58 ~]# rpm --import jcameron-key.asc

3. To install and update Webmin via RPM through yum, you have to create webmin.repo on /etc/yum.repos.d directory as below:

[root@centos58 ~]# vi /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

4. Install with yum command :

[root@centos58 ~]# yum install webmin -y

Example :

[root@centos58 ~]# yum install webmin -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * base: mirror.nus.edu.sg
 * epel: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
 * rpmforge: mirror.oscc.org.my
 * updates: mirror.as24220.net
Webmin                                                                       |  951 B     00:00
Webmin/primary                                                               |  13 kB     00:00
Webmin                                                                                      102/102
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:1.580-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch                   Version                 Repository              Size
====================================================================================================
Installing:
 webmin                 noarch                 1.580-1                 Webmin                  16 M

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

Total download size: 16 M
Downloading Packages:
webmin-1.580-1.noarch.rpm                                                    |  16 MB     02:39
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Operating system is CentOS Linux
  Installing     : webmin                                                                       1/1
Webmin install complete. You can now login to http://centos58.ehowtuff.local:10000/
as root with your root password.

Installed:
  webmin.noarch 0:1.580-1

Complete!

Option 3 : Setup Webmin using Tar File

Before downloading Webmin, please make sure that Perl 5 has been installed on your CentOS 5.8.
1. Download and extract the tar file :

[root@centos58 ~]# cd /tmp
[root@centos58 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
[root@centos58 tmp]# tar xzf webmin-1.580.tar.gz

2. Run ./setup.sh to install the webmin on /usr/local/webmin.

[root@centos58 tmp]# cd webmin-1.580
[root@centos58 webmin-1.580]# ./setup.sh /usr/local/webmin

This is just an example and the default admin was admin and the password is password.

[root@centos58 webmin-1.580]# ./setup.sh /usr/local/webmin
***********************************************************************
*            Welcome to the Webmin setup script, version 1.580        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin from /tmp/webmin-1.580 to /usr/local/webmin ...

***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name:    CentOS Linux
Operating system version: 5.8

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
 - What port to run the web server on. There must not be another
   web server already using this port.
 - The login name required to access the web server.
 - The password required to access the web server.
 - If the webserver should use SSL (if your system supports it).
 - Whether to start webmin at boot time.

Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): y
***********************************************************************
Copying files to /usr/local/webmin ..
..done

Creating web server config files..
..done

Creating access control file..
..done

Inserting path to perl into scripts..
..done

Creating start and stop scripts..
..done

Copying config files..
..done

Configuring Webmin to start at boot time..
Created init script /etc/rc.d/init.d/webmin
..done

Creating uninstall script /etc/webmin/uninstall.sh ..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
PID file /var/webmin/miniserv.pid does not exist
Subroutine setup_ca redefined at /usr/local/webmin/webmin/webmin-lib.pl line 72.
Subroutine install_webmin_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 122.
Subroutine grant_user_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 419.
Subroutine delete_webmin_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 460.
Subroutine file_basename redefined at /usr/local/webmin/webmin/webmin-lib.pl line 569.
Subroutine gnupg_setup redefined at /usr/local/webmin/webmin/webmin-lib.pl line 583.
Subroutine list_standard_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 611.
Subroutine standard_chooser_button redefined at /usr/local/webmin/webmin/webmin-lib.pl line 643.
Subroutine list_third_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 656.
Subroutine third_chooser_button redefined at /usr/local/webmin/webmin/webmin-lib.pl line 688.
Subroutine get_webmin_base_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 699.
Subroutine base_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 709.
Subroutine get_newmodule_users redefined at /usr/local/webmin/webmin/webmin-lib.pl line 720.
Subroutine save_newmodule_users redefined at /usr/local/webmin/webmin/webmin-lib.pl line 742.
Subroutine get_miniserv_sockets redefined at /usr/local/webmin/webmin/webmin-lib.pl line 766.
Subroutine fetch_updates redefined at /usr/local/webmin/webmin/webmin-lib.pl line 814.
Subroutine check_update_signature redefined at /usr/local/webmin/webmin/webmin-lib.pl line 881.
Subroutine find_cron_job redefined at /usr/local/webmin/webmin/webmin-lib.pl line 912.
Subroutine get_ipkeys redefined at /usr/local/webmin/webmin/webmin-lib.pl line 924.
Subroutine save_ipkeys redefined at /usr/local/webmin/webmin/webmin-lib.pl line 945.
Subroutine validate_key_cert redefined at /usr/local/webmin/webmin/webmin-lib.pl line 977.
Subroutine detect_operating_system redefined at /usr/local/webmin/webmin/webmin-lib.pl line 998.
Subroutine show_webmin_notifications redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1033.
Subroutine get_webmin_notifications redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1049.
Subroutine get_system_uptime redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1238.
Subroutine list_operating_systems redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1285.
Subroutine shared_root_directory redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1310.
Subroutine submit_os_info redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1347.
Subroutine get_webmin_id redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1375.
Subroutine ip_match redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1391.
Subroutine prefix_to_mask redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1477.
Subroutine valid_allow redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1491.
Subroutine get_preloads redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1536.
Subroutine save_preloads redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1548.
Subroutine get_tempdirs redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1559.
Subroutine save_tempdirs redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1576.
Subroutine get_module_install_type redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1595.
Subroutine get_install_type redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1612.
Subroutine list_cached_files redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1642.
Subroutine show_restart_page redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1661.
Subroutine cert_info redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1679.
Subroutine cert_pem_data redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1720.
Subroutine cert_pkcs12_data redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1735.
Subroutine get_blocked_users_hosts redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1761.
Subroutine show_ssl_key_form redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1789.
Subroutine parse_ssl_key_form redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1833.
Subroutine build_installed_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1906.
Subroutine get_latest_webmin_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1948.
Subroutine filter_updates redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1981.
Subroutine list_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 23.
Subroutine list_keys_sorted redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 74.
Subroutine list_secret_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 82.
Subroutine key_fingerprint redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 88.
Subroutine get_passphrase redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 105.
Subroutine put_passphrase redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 116.
Subroutine encrypt_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 128.
Subroutine decrypt_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 167.
Subroutine sign_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 224.
Subroutine verify_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 283.
Subroutine read_entire_file redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 327.
Subroutine write_entire_file redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 339.
Subroutine get_trust_level redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 349.
Subroutine delete_key redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 371.
Subroutine default_email_address redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 398.
Subroutine fetch_gpg_key redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 415.
Subroutine search_gpg_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 442.
..done

Enabling background status collection ..
PID file /var/webmin/miniserv.pid does not exist
..done

Attempting to start Webmin mini web server..
Starting Webmin server in /usr/local/webmin
Pre-loaded WebminCore
..done

***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to

  http://centos58.ehowtuff.local:10000/

and login with the name and password you entered previously.

How to start webmin :

[root@centos58 ~]# service webmin start

or

[root@centos58 ~]# /etc/init.d/webmin start

How to stop webmin :

[root@centos58 ~]# service webmin stop
Stopping Webmin server in /usr/local/webmin

or

[root@centos58 ~]# /etc/init.d/webmin stop
Stopping Webmin server in /usr/local/webmin

How to check webmin status :

[root@centos58 ~]# /etc/init.d/webmin status
webmin (pid 5070) is running

or

[root@centos58 ~]# service webmin status
webmin (pid 4834) is running

How to Install and Configure RPMforge Repository on CentOS 5.8

RPMforge repository is a collaboration of Dag, Dries, and other packagers. In this post i will show on how to install and configure RPMforge repository on linux CentOS 5.8 server. This steps has been tested on CentOS 5.8 and may working on CentOS 6.x as well.

1. Download the rpmforge-release package

[root@centos58 ~]# wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
--2012-05-15 06:21:51--  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-05-15 06:21:53 (46.0 MB/s) - `RPM-GPG-KEY.dag.txt' saved [1672/1672]

2. Import the RPMforge GPG key :

[root@centos58 ~]# rpm --import RPM-GPG-KEY.dag.txt

3. Download rpmforge-release :

[root@centos58 ~]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

Example :

[root@centos58 ~]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
--2012-05-15 06:23:18--  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-05-15 06:23:19--  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-05-15 06:23:20--  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-05-15 06:23:21--  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      12.6K/s   in 1.0s

2012-05-15 06:23:23 (12.6 KB/s) - `rpmforge-release-0.5.2-2.el5.rf.i386.rpm' saved [12680/12680]

4. Verify the rpmforge-release package you have downloaded :

[root@centos58 ~]# 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

5. Install the rpmforge-release package using this command :

[root@centos58 ~]# rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]

6. You can start using RPMforge Repository to install, remove and update the package as below :

[root@centos58 ~]# yum install package-name -y
[root@centos58 ~]# yum remove package-name -y
[root@centos58 ~]# yum update package-name -y

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

How to Install PHP 5.3.3 on CentOS 5.8

PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. In this post, i will share on how to install PHP 5.3.3 on linux CentOS 5.8 server. This steps may working on other version of CentOS.

Simply run the following command to install PHP 5.3.3 :

[root@centos58 ~]# yum install php53-* -y
Transaction Summary
====================================================================================================
Install      58 Package(s)
Upgrade       0 Package(s)

Total download size: 24 M
Downloading Packages:
(1/58): php53-recode-5.3.3-1.el5.i386.rpm                                    | 5.9 kB     00:00
(2/58): firebird-filesystem-2.1.4.18393.0-1.el5.i386.rpm                     | 6.6 kB     00:00
(3/58): php53-enchant-5.3.3-1.el5.i386.rpm                                   | 9.7 kB     00:00
(4/58): php53-mcrypt-5.3.3-1.el5.i386.rpm                                    |  16 kB     00:00
(5/58): php53-tidy-5.3.3-1.el5.i386.rpm                                      |  18 kB     00:00
(6/58): php53-php-gettext-1.0.11-3.el5.noarch.rpm                            |  20 kB     00:00
(7/58): zarafa-common-7.0.6-1.el5.i386.rpm                                   |  21 kB     00:00
(8/58): boost141-system-1.41.0-2.el5.i386.rpm                                |  24 kB     00:00
(9/58): php53-pspell-5.3.3-7.el5_8.i386.rpm                                  |  26 kB     00:00
(10/58): php53-mssql-5.3.3-1.el5.i386.rpm                                    |  26 kB     00:00
(11/58): php53-snmp-5.3.3-7.el5_8.i386.rpm                                   |  29 kB     00:00
(12/58): php53-ldap-5.3.3-7.el5_8.i386.rpm                                   |  36 kB     00:00
(13/58): php53-process-5.3.3-7.el5_8.i386.rpm                                |  38 kB     00:00
(14/58): php53-dba-5.3.3-7.el5_8.i386.rpm                                    |  39 kB     00:00
(15/58): php53-bcmath-5.3.3-7.el5_8.i386.rpm                                 |  42 kB     00:00
(16/58): libntlm-1.0-1.el5.i386.rpm                                          |  43 kB     00:00
(17/58): libXpm-3.5.5-3.i386.rpm                                             |  45 kB     00:00
(18/58): php53-imap-5.3.3-7.el5_8.i386.rpm                                   |  50 kB     00:00
(19/58): php53-interbase-5.3.3-1.el5.i386.rpm                                |  50 kB     00:00
(20/58): php53-odbc-5.3.3-7.el5_8.i386.rpm                                   |  51 kB     00:00
(21/58): php53-xmlrpc-5.3.3-7.el5_8.i386.rpm                                 |  52 kB     00:00
(22/58): php53-pdo-5.3.3-7.el5_8.i386.rpm                                    |  66 kB     00:00
(23/58): boost141-filesystem-1.41.0-2.el5.i386.rpm                           |  72 kB     00:00
(24/58): php53-pgsql-5.3.3-7.el5_8.i386.rpm                                  |  73 kB     00:00
(25/58): php53-intl-5.3.3-7.el5_8.i386.rpm                                   |  74 kB     00:00
(26/58): php53-mysql-5.3.3-7.el5_8.i386.rpm                                  |  87 kB     00:00
(27/58): mod_ssl-2.2.3-63.el5.centos.1.i386.rpm                              |  94 kB     00:00
(28/58): libgsasl-0.2.29-1.el5.i386.rpm                                      | 100 kB     00:01
(29/58): php53-gd-5.3.3-7.el5_8.i386.rpm                                     | 109 kB     00:00
(30/58): php53-xml-5.3.3-7.el5_8.i386.rpm                                    | 112 kB     00:00
(31/58): distcache-1.4.5-14.1.i386.rpm                                       | 119 kB     00:00
(32/58): m4-1.4.5-3.el5.1.i386.rpm                                           | 133 kB     00:01
(33/58): libtidy-0.99.0-14.20070615.el5.i386.rpm                             | 140 kB     00:01
(34/58): php53-soap-5.3.3-7.el5_8.i386.rpm                                   | 146 kB     00:01
(35/58): enchant-1.4.2-4.el5.1.i386.rpm                                      | 151 kB     00:01
(36/58): libical-0.48-1.el5.i386.rpm                                         | 202 kB     00:01
(37/58): php53-mapi-7.0.6-1.el5.i386.rpm                                     | 217 kB     00:02
(38/58): firebird-libfbclient-2.1.4.18393.0-1.el5.i386.rpm                   | 295 kB     00:02
(39/58): imake-1.0.2-3.i386.rpm                                              | 319 kB     00:02
(40/58): automake-1.9.6-2.3.el5.noarch.rpm                                   | 476 kB     00:03
(41/58): libxslt-1.1.17-2.el5_2.2.i386.rpm                                   | 485 kB     00:04
(42/58): lm_sensors-2.10.7-9.el5.i386.rpm                                    | 511 kB     00:04
(43/58): libc-client-2004g-2.2.1.i386.rpm                                    | 516 kB     00:04
(44/58): unixODBC-libs-2.2.11-10.el5.i386.rpm                                | 551 kB     00:04
(45/58): php53-devel-5.3.3-7.el5_8.i386.rpm                                  | 591 kB     00:05
(46/58): php53-common-5.3.3-7.el5_8.i386.rpm                                 | 604 kB     00:04
(47/58): autoconf-2.59-12.noarch.rpm                                         | 647 kB     00:05
(48/58): net-snmp-5.3.2.2-17.el5.i386.rpm                                    | 703 kB     00:06
(49/58): recode-3.6-24.el5.i386.rpm                                          | 838 kB     00:07
(50/58): libmapi-7.0.6-1.el5.i386.rpm                                        | 886 kB     00:07
(51/58): libvmime-0.9.2-0.1.20110626svn.el5.i386.rpm                         | 887 kB     00:07
(52/58): freetds-0.91-2.el5.i386.rpm                                         | 992 kB     00:08
(53/58): php53-mbstring-5.3.3-7.el5_8.i386.rpm                               | 1.2 MB     00:09
(54/58): zarafa-client-7.0.6-1.el5.i386.rpm                                  | 1.2 MB     00:11
(55/58): php53-5.3.3-7.el5_8.i386.rpm                                        | 1.3 MB     00:10
(56/58): net-snmp-libs-5.3.2.2-17.el5.i386.rpm                               | 1.3 MB     00:11
(57/58): php53-cli-5.3.3-7.el5_8.i386.rpm                                    | 2.5 MB     00:22
(58/58): libicu-3.6-5.16.1.i386.rpm                                          | 5.3 MB     00:47
----------------------------------------------------------------------------------------------------
Total                                                               114 kB/s |  24 MB     03:37
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php53-common                                                                1/58
  Installing     : php53-pdo                                                                   2/58
  Installing     : libicu                                                                      3/58
  Installing     : boost141-system                                                             4/58
  Installing     : unixODBC-libs                                                               5/58
  Installing     : net-snmp-libs                                                               6/58
  Installing     : freetds                                                                     7/58
  Installing     : boost141-filesystem                                                         8/58
  Installing     : php53-cli                                                                   9/58
  Installing     : php53                                                                      10/58
  Installing     : php53-mbstring                                                             11/58
  Installing     : enchant                                                                    12/58
  Installing     : libc-client                                                                13/58
  Installing     : libxslt                                                                    14/58
  Installing     : libntlm                                                                    15/58
  Installing     : libgsasl                                                                   16/58
  Installing     : libvmime                                                                   17/58
  Installing     : libical                                                                    18/58
  Installing     : m4                                                                         19/58
  Installing     : lm_sensors                                                                 20/58
  Installing     : net-snmp                                                                   21/58
  Installing     : libtidy                                                                    22/58
  Installing     : libXpm                                                                     23/58
  Installing     : imake                                                                      24/58
  Installing     : distcache                                                                  25/58
  Installing     : mod_ssl                                                                    26/58
  Installing     : recode                                                                     27/58
  Installing     : autoconf                                                                   28/58
  Installing     : automake                                                                   29/58
  Installing     : firebird-filesystem                                                        30/58
  Installing     : zarafa-common                                                              31/58
  Installing     : firebird-libfbclient                                                       32/58
  Installing     : php53-interbase                                                            33/58
  Installing     : php53-recode                                                               34/58
  Installing     : php53-gd                                                                   35/58
  Installing     : php53-tidy                                                                 36/58
  Installing     : php53-snmp                                                                 37/58
  Installing     : php53-xml                                                                  38/58
  Installing     : php53-imap                                                                 39/58
  Installing     : php53-enchant                                                              40/58
  Installing     : php53-mssql                                                                41/58
  Installing     : php53-odbc                                                                 42/58
  Installing     : php53-intl                                                                 43/58
  Installing     : php53-pgsql                                                                44/58
  Installing     : php53-mysql                                                                45/58
  Installing     : php53-pspell                                                               46/58
  Installing     : php53-bcmath                                                               47/58
  Installing     : php53-mcrypt                                                               48/58
  Installing     : php53-ldap                                                                 49/58
  Installing     : php53-soap                                                                 50/58
  Installing     : php53-process                                                              51/58
  Installing     : php53-xmlrpc                                                               52/58
  Installing     : php53-dba                                                                  53/58
  Installing     : php53-devel                                                                54/58
  Installing     : php53-php-gettext                                                          55/58
  Installing     : libmapi                                                                    56/58
  Installing     : php53-mapi                                                                 57/58
  Installing     : zarafa-client                                                              58/58

Installed:
  php53.i386 0:5.3.3-7.el5_8                         php53-bcmath.i386 0:5.3.3-7.el5_8
  php53-cli.i386 0:5.3.3-7.el5_8                     php53-common.i386 0:5.3.3-7.el5_8
  php53-dba.i386 0:5.3.3-7.el5_8                     php53-devel.i386 0:5.3.3-7.el5_8
  php53-enchant.i386 0:5.3.3-1.el5                   php53-gd.i386 0:5.3.3-7.el5_8
  php53-imap.i386 0:5.3.3-7.el5_8                    php53-interbase.i386 0:5.3.3-1.el5
  php53-intl.i386 0:5.3.3-7.el5_8                    php53-ldap.i386 0:5.3.3-7.el5_8
  php53-mapi.i386 0:7.0.6-1.el5                      php53-mbstring.i386 0:5.3.3-7.el5_8
  php53-mcrypt.i386 0:5.3.3-1.el5                    php53-mssql.i386 0:5.3.3-1.el5
  php53-mysql.i386 0:5.3.3-7.el5_8                   php53-odbc.i386 0:5.3.3-7.el5_8
  php53-pdo.i386 0:5.3.3-7.el5_8                     php53-pgsql.i386 0:5.3.3-7.el5_8
  php53-php-gettext.noarch 0:1.0.11-3.el5            php53-process.i386 0:5.3.3-7.el5_8
  php53-pspell.i386 0:5.3.3-7.el5_8                  php53-recode.i386 0:5.3.3-1.el5
  php53-snmp.i386 0:5.3.3-7.el5_8                    php53-soap.i386 0:5.3.3-7.el5_8
  php53-tidy.i386 0:5.3.3-1.el5                      php53-xml.i386 0:5.3.3-7.el5_8
  php53-xmlrpc.i386 0:5.3.3-7.el5_8

Dependency Installed:
  autoconf.noarch 0:2.59-12                        automake.noarch 0:1.9.6-2.3.el5
  boost141-filesystem.i386 0:1.41.0-2.el5          boost141-system.i386 0:1.41.0-2.el5
  distcache.i386 0:1.4.5-14.1                      enchant.i386 1:1.4.2-4.el5.1
  firebird-filesystem.i386 0:2.1.4.18393.0-1.el5   firebird-libfbclient.i386 0:2.1.4.18393.0-1.el5
  freetds.i386 0:0.91-2.el5                        imake.i386 0:1.0.2-3
  libXpm.i386 0:3.5.5-3                            libc-client.i386 0:2004g-2.2.1
  libgsasl.i386 0:0.2.29-1.el5                     libical.i386 0:0.48-1.el5
  libicu.i386 0:3.6-5.16.1                         libmapi.i386 0:7.0.6-1.el5
  libntlm.i386 0:1.0-1.el5                         libtidy.i386 0:0.99.0-14.20070615.el5
  libvmime.i386 0:0.9.2-0.1.20110626svn.el5        libxslt.i386 0:1.1.17-2.el5_2.2
  lm_sensors.i386 0:2.10.7-9.el5                   m4.i386 0:1.4.5-3.el5.1
  mod_ssl.i386 1:2.2.3-63.el5.centos.1             net-snmp.i386 1:5.3.2.2-17.el5
  net-snmp-libs.i386 1:5.3.2.2-17.el5              recode.i386 0:3.6-24.el5
  unixODBC-libs.i386 0:2.2.11-10.el5               zarafa-client.i386 0:7.0.6-1.el5
  zarafa-common.i386 0:7.0.6-1.el5

Complete!

How to Install 389 Directory Server on CentOS 5.8

389 Directory Server is an enterprise-class open source LDAP server for Linux and it’s based on Fedora Directory Server.This post will show you the quick steps to install 389 Directory Server on linux CentOS 5.8 server using EPEL repository. This post assumed that your CentOS server has been completely installed with minimum packages and the hostname and FQDN also has been configured correctly. Please make sure that you have configured EPEL repository on your CentOS 5.8 server.

Prerequisites :
How to Setup Local Yum Repository from CD-ROM/DVD-ROM image on CentOS 5.8
How to Install and Configure EPEL Repository on CentOS 5.8

Simply run this command to install 389 Directory Server on linux CentOS 5.8 server :

[root@centos58 ~]# yum install 389-ds openldap-clients -y

Examples :

[root@centos58 ~]# yum install 389-ds openldap-clients -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.oscc.org.my
 * epel: madura.idrepo.or.id
 * extras: mirror.oscc.org.my
 * rpmforge: mirror.oscc.org.my
 * updates: mirror.oscc.org.my
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package 389-ds.noarch 0:1.2.1-1.el5 set to be updated
--> Processing Dependency: 389-ds-console for package: 389-ds
--> Processing Dependency: 389-ds-console-doc for package: 389-ds
--> Processing Dependency: 389-admin-console-doc for package: 389-ds
--> Processing Dependency: 389-ds-base for package: 389-ds
--> Processing Dependency: 389-admin-console for package: 389-ds
--> Processing Dependency: 389-admin for package: 389-ds
--> Processing Dependency: idm-console-framework for package: 389-ds
--> Processing Dependency: 389-dsgw for package: 389-ds
--> Processing Dependency: 389-console for package: 389-ds
---> Package openldap-clients.i386 0:2.3.43-25.el5 set to be updated
--> Running transaction check
---> Package 389-admin.i386 0:1.1.29-1.el5 set to be updated
--> Processing Dependency: perl-Mozilla-LDAP for package: 389-admin
--> Processing Dependency: perl(Mozilla::LDAP::Utils) for package: 389-admin
--> Processing Dependency: perl(Mozilla::LDAP::Conn) for package: 389-admin
--> Processing Dependency: perl(Mozilla::LDAP::API) for package: 389-admin
--> Processing Dependency: nss-tools for package: 389-admin
--> Processing Dependency: mod_nss for package: 389-admin
--> Processing Dependency: libssldap60.so for package: 389-admin
--> Processing Dependency: libprldap60.so for package: 389-admin
--> Processing Dependency: libldif60.so for package: 389-admin
--> Processing Dependency: libldap60.so for package: 389-admin
--> Processing Dependency: libadmsslutil.so.0 for package: 389-admin
--> Processing Dependency: libadminutil.so.0 for package: 389-admin
---> Package 389-admin-console.noarch 0:1.1.8-1.el5 set to be updated
---> Package 389-admin-console-doc.noarch 0:1.1.8-1.el5 set to be updated
---> Package 389-console.noarch 0:1.1.7-3.el5 set to be updated
--> Processing Dependency: java >= 1:1.6.0 for package: 389-console
--> Processing Dependency: jpackage-utils for package: 389-console
---> Package 389-ds-base.i386 0:1.2.9.9-1.el5 set to be updated
--> Processing Dependency: 389-ds-base-libs = 1.2.9.9-1.el5 for package: 389-ds-base
--> Processing Dependency: libslapd.so.0 for package: 389-ds-base
--> Processing Dependency: cyrus-sasl-gssapi for package: 389-ds-base
--> Processing Dependency: cyrus-sasl-md5 for package: 389-ds-base
--> Processing Dependency: libsvrcore.so.0 for package: 389-ds-base
--> Processing Dependency: db4-utils for package: 389-ds-base
--> Processing Dependency: mozldap-tools for package: 389-ds-base
---> Package 389-ds-console.noarch 0:1.2.6-1.el5 set to be updated
---> Package 389-ds-console-doc.noarch 0:1.2.6-1.el5 set to be updated
---> Package 389-dsgw.i386 0:1.1.9-1.el5 set to be updated
---> Package idm-console-framework.noarch 0:1.1.7-5.el5 set to be updated
--> Processing Dependency: jss >= 4.2 for package: idm-console-framework
--> Processing Dependency: ldapjdk for package: idm-console-framework
--> Running transaction check
---> Package 389-adminutil.i386 0:1.1.15-1.el5 set to be updated
---> Package 389-ds-base-libs.i386 0:1.2.9.9-1.el5 set to be updated
---> Package cyrus-sasl-gssapi.i386 0:2.1.22-5.el5_4.3 set to be updated
---> Package cyrus-sasl-md5.i386 0:2.1.22-5.el5_4.3 set to be updated
---> Package db4-utils.i386 0:4.3.29-10.el5_5.2 set to be updated
---> Package java-1.6.0-openjdk.i386 1:1.6.0.0-1.25.1.10.6.el5_8 set to be updated
--> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4) for package: java-1.6.0-openjdk
--> Processing Dependency: libasound.so.2 for package: java-1.6.0-openjdk
--> Processing Dependency: libgif.so.4 for package: java-1.6.0-openjdk
--> Processing Dependency: libXtst.so.6 for package: java-1.6.0-openjdk
--> Processing Dependency: libasound.so.2(ALSA_0.9) for package: java-1.6.0-openjdk
--> Processing Dependency: tzdata-java for package: java-1.6.0-openjdk
---> Package jpackage-utils.noarch 0:1.7.3-1jpp.2.el5 set to be updated
---> Package jss.i386 0:4.2.6-6.el5.centos set to be updated
---> Package ldapjdk.i386 0:4.18-2jpp.3.el5 set to be updated
--> Processing Dependency: java-gcj-compat for package: ldapjdk
--> Processing Dependency: libgcj_bc.so.1 for package: ldapjdk
---> Package mod_nss.i386 0:1.0.8-4.el5_6.1 set to be updated
---> Package mozldap.i386 0:6.0.5-1.el5 set to be updated
---> Package mozldap-tools.i386 0:6.0.5-1.el5 set to be updated
---> Package nss-tools.i386 0:3.13.1-5.el5_8 set to be updated
--> Processing Dependency: nss = 3.13.1-5.el5_8 for package: nss-tools
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.13) for package: nss-tools
--> Processing Dependency: libnss3.so(NSS_3.13) for package: nss-tools
---> Package perl-Mozilla-LDAP.i386 0:1.5.2-4.el5 set to be updated
---> Package svrcore.i386 0:4.0.4-3.el5 set to be updated
--> Running transaction check
---> Package alsa-lib.i386 0:1.0.17-1.el5 set to be updated
---> Package giflib.i386 0:4.1.3-7.3.3.el5 set to be updated
---> Package java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115 set to be updated
base/filelists                                                               | 3.0 MB     00:27
epel/filelists_db                                                            | 4.7 MB     00:44
extras/filelists_db                                                          | 213 kB     00:01
rpmforge/filelists_db                                                        | 6.0 MB     00:57
updates/filelists_db                                                         | 1.2 MB     00:10
--> Processing Dependency: zip for package: java-1.4.2-gcj-compat
--> Processing Dependency: gjdoc for package: java-1.4.2-gcj-compat
---> Package libXtst.i386 0:1.0.1-3.1 set to be updated
---> Package libgcj.i386 0:4.1.2-52.el5_8.1 set to be updated
--> Processing Dependency: libart_lgpl >= 2.1.0 for package: libgcj
--> Processing Dependency: libICE.so.6 for package: libgcj
--> Processing Dependency: libSM.so.6 for package: libgcj
---> Package nss.i386 0:3.13.1-5.el5_8 set to be updated
--> Processing Dependency: nspr >= 4.8.9 for package: nss
---> Package tzdata-java.i386 0:2012b-3.el5 set to be updated
--> Running transaction check
---> Package gjdoc.i386 0:0.7.7-12.el5 set to be updated
--> Processing Dependency: antlr for package: gjdoc
---> Package libICE.i386 0:1.0.1-2.1 set to be updated
---> Package libSM.i386 0:1.0.1-3.1 set to be updated
---> Package libart_lgpl.i386 0:2.3.17-4 set to be updated
---> Package nspr.i386 0:4.8.9-1.el5_8 set to be updated
---> Package zip.i386 0:2.31-2.el5 set to be updated
--> Running transaction check
---> Package antlr.i386 0:2.7.6-4jpp.2 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                  Arch      Version                           Repository               Size
====================================================================================================
Installing:
 389-ds                   noarch    1.2.1-1.el5                       epel                    9.1 k
 openldap-clients         i386      2.3.43-25.el5                     CentOS5.8-Repository    218 k
Installing for dependencies:
 389-admin                i386      1.1.29-1.el5                      epel                    412 k
 389-admin-console        noarch    1.1.8-1.el5                       epel                    203 k
 389-admin-console-doc    noarch    1.1.8-1.el5                       epel                     40 k
 389-adminutil            i386      1.1.15-1.el5                      epel                     70 k
 389-console              noarch    1.1.7-3.el5                       epel                     72 k
 389-ds-base              i386      1.2.9.9-1.el5                     epel                    1.6 M
 389-ds-base-libs         i386      1.2.9.9-1.el5                     epel                    407 k
 389-ds-console           noarch    1.2.6-1.el5                       epel                    1.4 M
 389-ds-console-doc       noarch    1.2.6-1.el5                       epel                     55 k
 389-dsgw                 i386      1.1.9-1.el5                       epel                    1.1 M
 alsa-lib                 i386      1.0.17-1.el5                      base                    412 k
 antlr                    i386      2.7.6-4jpp.2                      base                    978 k
 cyrus-sasl-gssapi        i386      2.1.22-5.el5_4.3                  base                     29 k
 cyrus-sasl-md5           i386      2.1.22-5.el5_4.3                  base                     46 k
 db4-utils                i386      4.3.29-10.el5_5.2                 base                    119 k
 giflib                   i386      4.1.3-7.3.3.el5                   base                     39 k
 gjdoc                    i386      0.7.7-12.el5                      base                    793 k
 idm-console-framework    noarch    1.1.7-5.el5                       epel                    1.1 M
 java-1.4.2-gcj-compat    i386      1.4.2.0-40jpp.115                 base                     29 k
 java-1.6.0-openjdk       i386      1:1.6.0.0-1.25.1.10.6.el5_8       updates                  37 M
 jpackage-utils           noarch    1.7.3-1jpp.2.el5                  base                     61 k
 jss                      i386      4.2.6-6.el5.centos                extras                  694 k
 ldapjdk                  i386      4.18-2jpp.3.el5                   base                    782 k
 libICE                   i386      1.0.1-2.1                         base                     54 k
 libSM                    i386      1.0.1-3.1                         base                     27 k
 libXtst                  i386      1.0.1-3.1                         base                     15 k
 libart_lgpl              i386      2.3.17-4                          base                     76 k
 libgcj                   i386      4.1.2-52.el5_8.1                  updates                  16 M
 mod_nss                  i386      1.0.8-4.el5_6.1                   base                     86 k
 mozldap                  i386      6.0.5-1.el5                       base                    132 k
 mozldap-tools            i386      6.0.5-1.el5                       base                    139 k
 nss-tools                i386      3.13.1-5.el5_8                    updates                 1.1 M
 perl-Mozilla-LDAP        i386      1.5.2-4.el5                       base                    181 k
 svrcore                  i386      4.0.4-3.el5                       base                     14 k
 tzdata-java              i386      2012b-3.el5                       updates                 181 k
 zip                      i386      2.31-2.el5                        base                    127 k
Updating for dependencies:
 nspr                     i386      4.8.9-1.el5_8                     updates                 121 k
 nss                      i386      3.13.1-5.el5_8                    updates                 1.1 M
.
.
.
.
  Updating       : nspr                                                                        1/42
  Updating       : nss                                                                         2/42
  Installing     : svrcore                                                                     3/42
  Installing     : mozldap                                                                     4/42
  Installing     : perl-Mozilla-LDAP                                                           5/42
  Installing     : nss-tools                                                                   6/42
  Installing     : 389-adminutil                                                               7/42
  Installing     : zip                                                                         8/42
  Installing     : libICE                                                                      9/42
  Installing     : libXtst                                                                    10/42
  Installing     : alsa-lib                                                                   11/42
  Installing     : libSM                                                                      12/42
  Installing     : mod_nss                                                                    13/42
  Installing     : mozldap-tools                                                              14/42
  Installing     : 389-ds-base-libs                                                           15/42
  Installing     : db4-utils                                                                  16/42
  Installing     : cyrus-sasl-md5                                                             17/42
  Installing     : giflib                                                                     18/42
  Installing     : cyrus-sasl-gssapi                                                          19/42
  Installing     : 389-ds-base                                                                20/42
  Installing     : 389-admin                                                                  21/42
  Installing     : 389-dsgw                                                                   22/42
  Installing     : libart_lgpl                                                                23/42
  Installing     : libgcj                                                                     24/42
  Installing     : openldap-clients                                                           25/42
  Installing     : jpackage-utils                                                             26/42
  Installing     : 389-ds-console                                                             27/42
  Installing     : 389-admin-console                                                          28/42
  Installing     : 389-admin-console-doc                                                      29/42
  Installing     : 389-ds-console-doc                                                         30/42
  Installing     : tzdata-java                                                                31/42
  Installing     : java-1.6.0-openjdk                                                         32/42
  Installing     : jss                                                                        33/42
  Installing     : java-1.4.2-gcj-compat                                                      34/42
  Installing     : ldapjdk                                                                    35/42
  Installing     : gjdoc                                                                      36/42
  Installing     : antlr                                                                      37/42
  Installing     : idm-console-framework                                                      38/42
  Installing     : 389-console                                                                39/42
  Installing     : 389-ds                                                                     40/42
  Cleanup        : nspr                                                                       41/42
  Cleanup        : nss                                                                        42/42

How to Tuning 389 Directory Server on CentOS 5.8

389 Directory Server is an enterprise-class open source LDAP server for Linux and it’s based on Fedora Directory Server. I will share with you on how to perform system tuning analysis for 389 Directory Server on linux CentOS 5.8 server. This post assumed that your CentOS server has been completely installed 389 Directory Server using EPEL repository. It is better to adjust some of the performance and security settings before we start to install 389 directory server. Follow this steps to tuning the 389 Directory Server on CentOS 5.8.

1. Perform TCP Tuning :

a) Decrease the time default value for tcp_keepalive_time connection. Edit the /etc/sysctl.conf file and add the following lines to the bottom of sysctl.conf.

[root@centos58 ~]# echo "net.ipv4.tcp_keepalive_time = 300" >> /etc/sysctl.conf

b) Increase number of local system ports available by editing this parameter in the /etc/sysctl.conf file :

[root@centos58 ~]# echo "net.ipv4.ip_local_port_range = 1024 65000" >> /etc/sysctl.conf

2. Perform File Tuning :

a) Increase the file descriptors by running these commands :

[root@centos58 ~]# echo "64000" > /proc/sys/fs/file-max

or
Simply run this command :

[root@centos58 ~]# echo "fs.file-max = 64000" >> /etc/sysctl.conf

b) Edit /etc/profile as below :

[root@centos58 ~]# echo "ulimit -n 8192" >> /etc/profile

c) Edit the file descriptors in /etc/security/limits.conf. Add two parameter at the bottom of the configuration file :

[root@centos58 ~]# echo "* soft nofile 524288" >> /etc/security/limits.conf
[root@centos58 ~]# echo "* hard nofile 524288" >> /etc/security/limits.conf

3. Directory Server Tuning :

[root@centos58 ~]# ulimit -n 8192

4. Sufficient Memory Assigned :
Make sure you have assign or upgrade the physical memory to at least 1024MB.

How to Turn Off or Disable Output Buffering for php.ini on PHP 5.3.3

In this post, i will show how turn off or disable output buffering for php.ini on PHP 5.3.3. Output buffering is used by PHP to improve performance and to perform a few tricks. PHP will send buffer to browser every get_opt(‘output_buffering’) bytes. Turning on output buffering alone decreases the amount of time it takes to download and render our HTML because it’s not being sent to the browser in pieces as PHP processes the HTML. For information, this steps has been tested on CentOS 5.8 server. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x and RHEL 5.x.

1. Open /etc/php.ini :

[root@centos58 ~]# vi /etc/php.ini

In PHP 5.3.3, output_buffering’s directive is set to ‘enabled’ or ‘On’ with buffer size 4096 by default. It’s on line 264 on /etc/php.ini file :

; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

2. In order to disable or turn it ‘off’, you have to comment out the line 264 as below :

; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
;output_buffering = 4096

3. Don’t forget to restart httpd service to take effect immediately :

[root@centos58 ~]# /etc/init.d/httpd restart

How to Fix “Your host needs to use PHP 5.2.4 or higher to run this version of Joomla!”

Question :
When i try run joomla 2.5.4 installation wizard, I get the following error :
http://server_ip_address/joomla254/installation/index.php

Your host needs to use PHP 5.2.4 or higher to run this version of Joomla!

Solution :
Install latest version of the PHP. To install PHP version 5.3.3, simply run the following command :

[root@centos58 ~]# yum install php53-* -y
Transaction Summary
====================================================================================================
Install      58 Package(s)
Upgrade       0 Package(s)

Total download size: 24 M
Downloading Packages:
(1/58): php53-recode-5.3.3-1.el5.i386.rpm                                    | 5.9 kB     00:00
(2/58): firebird-filesystem-2.1.4.18393.0-1.el5.i386.rpm                     | 6.6 kB     00:00
(3/58): php53-enchant-5.3.3-1.el5.i386.rpm                                   | 9.7 kB     00:00
(4/58): php53-mcrypt-5.3.3-1.el5.i386.rpm                                    |  16 kB     00:00
(5/58): php53-tidy-5.3.3-1.el5.i386.rpm                                      |  18 kB     00:00
(6/58): php53-php-gettext-1.0.11-3.el5.noarch.rpm                            |  20 kB     00:00
(7/58): zarafa-common-7.0.6-1.el5.i386.rpm                                   |  21 kB     00:00
(8/58): boost141-system-1.41.0-2.el5.i386.rpm                                |  24 kB     00:00
(9/58): php53-pspell-5.3.3-7.el5_8.i386.rpm                                  |  26 kB     00:00
(10/58): php53-mssql-5.3.3-1.el5.i386.rpm                                    |  26 kB     00:00
(11/58): php53-snmp-5.3.3-7.el5_8.i386.rpm                                   |  29 kB     00:00
(12/58): php53-ldap-5.3.3-7.el5_8.i386.rpm                                   |  36 kB     00:00
(13/58): php53-process-5.3.3-7.el5_8.i386.rpm                                |  38 kB     00:00
(14/58): php53-dba-5.3.3-7.el5_8.i386.rpm                                    |  39 kB     00:00
(15/58): php53-bcmath-5.3.3-7.el5_8.i386.rpm                                 |  42 kB     00:00
(16/58): libntlm-1.0-1.el5.i386.rpm                                          |  43 kB     00:00
(17/58): libXpm-3.5.5-3.i386.rpm                                             |  45 kB     00:00
(18/58): php53-imap-5.3.3-7.el5_8.i386.rpm                                   |  50 kB     00:00
(19/58): php53-interbase-5.3.3-1.el5.i386.rpm                                |  50 kB     00:00
(20/58): php53-odbc-5.3.3-7.el5_8.i386.rpm                                   |  51 kB     00:00
(21/58): php53-xmlrpc-5.3.3-7.el5_8.i386.rpm                                 |  52 kB     00:00
(22/58): php53-pdo-5.3.3-7.el5_8.i386.rpm                                    |  66 kB     00:00
(23/58): boost141-filesystem-1.41.0-2.el5.i386.rpm                           |  72 kB     00:00
(24/58): php53-pgsql-5.3.3-7.el5_8.i386.rpm                                  |  73 kB     00:00
(25/58): php53-intl-5.3.3-7.el5_8.i386.rpm                                   |  74 kB     00:00
(26/58): php53-mysql-5.3.3-7.el5_8.i386.rpm                                  |  87 kB     00:00
(27/58): mod_ssl-2.2.3-63.el5.centos.1.i386.rpm                              |  94 kB     00:00
(28/58): libgsasl-0.2.29-1.el5.i386.rpm                                      | 100 kB     00:01
(29/58): php53-gd-5.3.3-7.el5_8.i386.rpm                                     | 109 kB     00:00
(30/58): php53-xml-5.3.3-7.el5_8.i386.rpm                                    | 112 kB     00:00
(31/58): distcache-1.4.5-14.1.i386.rpm                                       | 119 kB     00:00
(32/58): m4-1.4.5-3.el5.1.i386.rpm                                           | 133 kB     00:01
(33/58): libtidy-0.99.0-14.20070615.el5.i386.rpm                             | 140 kB     00:01
(34/58): php53-soap-5.3.3-7.el5_8.i386.rpm                                   | 146 kB     00:01
(35/58): enchant-1.4.2-4.el5.1.i386.rpm                                      | 151 kB     00:01
(36/58): libical-0.48-1.el5.i386.rpm                                         | 202 kB     00:01
(37/58): php53-mapi-7.0.6-1.el5.i386.rpm                                     | 217 kB     00:02
(38/58): firebird-libfbclient-2.1.4.18393.0-1.el5.i386.rpm                   | 295 kB     00:02
(39/58): imake-1.0.2-3.i386.rpm                                              | 319 kB     00:02
(40/58): automake-1.9.6-2.3.el5.noarch.rpm                                   | 476 kB     00:03
(41/58): libxslt-1.1.17-2.el5_2.2.i386.rpm                                   | 485 kB     00:04
(42/58): lm_sensors-2.10.7-9.el5.i386.rpm                                    | 511 kB     00:04
(43/58): libc-client-2004g-2.2.1.i386.rpm                                    | 516 kB     00:04
(44/58): unixODBC-libs-2.2.11-10.el5.i386.rpm                                | 551 kB     00:04
(45/58): php53-devel-5.3.3-7.el5_8.i386.rpm                                  | 591 kB     00:05
(46/58): php53-common-5.3.3-7.el5_8.i386.rpm                                 | 604 kB     00:04
(47/58): autoconf-2.59-12.noarch.rpm                                         | 647 kB     00:05
(48/58): net-snmp-5.3.2.2-17.el5.i386.rpm                                    | 703 kB     00:06
(49/58): recode-3.6-24.el5.i386.rpm                                          | 838 kB     00:07
(50/58): libmapi-7.0.6-1.el5.i386.rpm                                        | 886 kB     00:07
(51/58): libvmime-0.9.2-0.1.20110626svn.el5.i386.rpm                         | 887 kB     00:07
(52/58): freetds-0.91-2.el5.i386.rpm                                         | 992 kB     00:08
(53/58): php53-mbstring-5.3.3-7.el5_8.i386.rpm                               | 1.2 MB     00:09
(54/58): zarafa-client-7.0.6-1.el5.i386.rpm                                  | 1.2 MB     00:11
(55/58): php53-5.3.3-7.el5_8.i386.rpm                                        | 1.3 MB     00:10
(56/58): net-snmp-libs-5.3.2.2-17.el5.i386.rpm                               | 1.3 MB     00:11
(57/58): php53-cli-5.3.3-7.el5_8.i386.rpm                                    | 2.5 MB     00:22
(58/58): libicu-3.6-5.16.1.i386.rpm                                          | 5.3 MB     00:47
----------------------------------------------------------------------------------------------------
Total                                                               114 kB/s |  24 MB     03:37
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php53-common                                                                1/58
  Installing     : php53-pdo                                                                   2/58
  Installing     : libicu                                                                      3/58
  Installing     : boost141-system                                                             4/58
  Installing     : unixODBC-libs                                                               5/58
  Installing     : net-snmp-libs                                                               6/58
  Installing     : freetds                                                                     7/58
  Installing     : boost141-filesystem                                                         8/58
  Installing     : php53-cli                                                                   9/58
  Installing     : php53                                                                      10/58
  Installing     : php53-mbstring                                                             11/58
  Installing     : enchant                                                                    12/58
  Installing     : libc-client                                                                13/58
  Installing     : libxslt                                                                    14/58
  Installing     : libntlm                                                                    15/58
  Installing     : libgsasl                                                                   16/58
  Installing     : libvmime                                                                   17/58
  Installing     : libical                                                                    18/58
  Installing     : m4                                                                         19/58
  Installing     : lm_sensors                                                                 20/58
  Installing     : net-snmp                                                                   21/58
  Installing     : libtidy                                                                    22/58
  Installing     : libXpm                                                                     23/58
  Installing     : imake                                                                      24/58
  Installing     : distcache                                                                  25/58
  Installing     : mod_ssl                                                                    26/58
  Installing     : recode                                                                     27/58
  Installing     : autoconf                                                                   28/58
  Installing     : automake                                                                   29/58
  Installing     : firebird-filesystem                                                        30/58
  Installing     : zarafa-common                                                              31/58
  Installing     : firebird-libfbclient                                                       32/58
  Installing     : php53-interbase                                                            33/58
  Installing     : php53-recode                                                               34/58
  Installing     : php53-gd                                                                   35/58
  Installing     : php53-tidy                                                                 36/58
  Installing     : php53-snmp                                                                 37/58
  Installing     : php53-xml                                                                  38/58
  Installing     : php53-imap                                                                 39/58
  Installing     : php53-enchant                                                              40/58
  Installing     : php53-mssql                                                                41/58
  Installing     : php53-odbc                                                                 42/58
  Installing     : php53-intl                                                                 43/58
  Installing     : php53-pgsql                                                                44/58
  Installing     : php53-mysql                                                                45/58
  Installing     : php53-pspell                                                               46/58
  Installing     : php53-bcmath                                                               47/58
  Installing     : php53-mcrypt                                                               48/58
  Installing     : php53-ldap                                                                 49/58
  Installing     : php53-soap                                                                 50/58
  Installing     : php53-process                                                              51/58
  Installing     : php53-xmlrpc                                                               52/58
  Installing     : php53-dba                                                                  53/58
  Installing     : php53-devel                                                                54/58
  Installing     : php53-php-gettext                                                          55/58
  Installing     : libmapi                                                                    56/58
  Installing     : php53-mapi                                                                 57/58
  Installing     : zarafa-client                                                              58/58

Installed:
  php53.i386 0:5.3.3-7.el5_8                         php53-bcmath.i386 0:5.3.3-7.el5_8
  php53-cli.i386 0:5.3.3-7.el5_8                     php53-common.i386 0:5.3.3-7.el5_8
  php53-dba.i386 0:5.3.3-7.el5_8                     php53-devel.i386 0:5.3.3-7.el5_8
  php53-enchant.i386 0:5.3.3-1.el5                   php53-gd.i386 0:5.3.3-7.el5_8
  php53-imap.i386 0:5.3.3-7.el5_8                    php53-interbase.i386 0:5.3.3-1.el5
  php53-intl.i386 0:5.3.3-7.el5_8                    php53-ldap.i386 0:5.3.3-7.el5_8
  php53-mapi.i386 0:7.0.6-1.el5                      php53-mbstring.i386 0:5.3.3-7.el5_8
  php53-mcrypt.i386 0:5.3.3-1.el5                    php53-mssql.i386 0:5.3.3-1.el5
  php53-mysql.i386 0:5.3.3-7.el5_8                   php53-odbc.i386 0:5.3.3-7.el5_8
  php53-pdo.i386 0:5.3.3-7.el5_8                     php53-pgsql.i386 0:5.3.3-7.el5_8
  php53-php-gettext.noarch 0:1.0.11-3.el5            php53-process.i386 0:5.3.3-7.el5_8
  php53-pspell.i386 0:5.3.3-7.el5_8                  php53-recode.i386 0:5.3.3-1.el5
  php53-snmp.i386 0:5.3.3-7.el5_8                    php53-soap.i386 0:5.3.3-7.el5_8
  php53-tidy.i386 0:5.3.3-1.el5                      php53-xml.i386 0:5.3.3-7.el5_8
  php53-xmlrpc.i386 0:5.3.3-7.el5_8

Dependency Installed:
  autoconf.noarch 0:2.59-12                        automake.noarch 0:1.9.6-2.3.el5
  boost141-filesystem.i386 0:1.41.0-2.el5          boost141-system.i386 0:1.41.0-2.el5
  distcache.i386 0:1.4.5-14.1                      enchant.i386 1:1.4.2-4.el5.1
  firebird-filesystem.i386 0:2.1.4.18393.0-1.el5   firebird-libfbclient.i386 0:2.1.4.18393.0-1.el5
  freetds.i386 0:0.91-2.el5                        imake.i386 0:1.0.2-3
  libXpm.i386 0:3.5.5-3                            libc-client.i386 0:2004g-2.2.1
  libgsasl.i386 0:0.2.29-1.el5                     libical.i386 0:0.48-1.el5
  libicu.i386 0:3.6-5.16.1                         libmapi.i386 0:7.0.6-1.el5
  libntlm.i386 0:1.0-1.el5                         libtidy.i386 0:0.99.0-14.20070615.el5
  libvmime.i386 0:0.9.2-0.1.20110626svn.el5        libxslt.i386 0:1.1.17-2.el5_2.2
  lm_sensors.i386 0:2.10.7-9.el5                   m4.i386 0:1.4.5-3.el5.1
  mod_ssl.i386 1:2.2.3-63.el5.centos.1             net-snmp.i386 1:5.3.2.2-17.el5
  net-snmp-libs.i386 1:5.3.2.2-17.el5              recode.i386 0:3.6-24.el5
  unixODBC-libs.i386 0:2.2.11-10.el5               zarafa-client.i386 0:7.0.6-1.el5
  zarafa-common.i386 0:7.0.6-1.el5

Complete!

How to Fix “php53-common conflicts with php-common” on Linux

Question :
When i try to install php on Linux CentOS 5.8, i get the following error and cannot proceed with the php installation.

[root@centos58 ~]# yum install php* -y
..

--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php-pecl-gmagick-1.1.0-0.2.RC2.el5.i386 from epel has depsolving problems
  --> php-pecl-gmagick conflicts with php-magickwand
php53-common-5.3.3-7.el5_8.i386 from updates has depsolving problems
  --> php53-common conflicts with php-common
php-pecl-gmagick-1.1.0-0.2.RC2.el5.i386 from epel has depsolving problems
  --> php-pecl-gmagick conflicts with php-pecl-imagick
php-pecl-apc-3.0.19-2.el5.i386 from epel has depsolving problems
  --> php-pecl-apc conflicts with php-eaccelerator
Error: php-pecl-apc conflicts with php-eaccelerator
Error: php-pecl-gmagick conflicts with php-pecl-imagick
Error: php-pecl-gmagick conflicts with php-magickwand
Error: php53-common conflicts with php-common
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

Solution :
To overcome the issue, you need to execute “yun install php53-* -y” that will install PHP 5.3 version :

[root@centos58 ~]# yum install php53-* -y
Transaction Summary
====================================================================================================
Install      58 Package(s)
Upgrade       0 Package(s)

Total download size: 24 M
Downloading Packages:
(1/58): php53-recode-5.3.3-1.el5.i386.rpm                                    | 5.9 kB     00:00
(2/58): firebird-filesystem-2.1.4.18393.0-1.el5.i386.rpm                     | 6.6 kB     00:00
(3/58): php53-enchant-5.3.3-1.el5.i386.rpm                                   | 9.7 kB     00:00
(4/58): php53-mcrypt-5.3.3-1.el5.i386.rpm                                    |  16 kB     00:00
(5/58): php53-tidy-5.3.3-1.el5.i386.rpm                                      |  18 kB     00:00
(6/58): php53-php-gettext-1.0.11-3.el5.noarch.rpm                            |  20 kB     00:00
(7/58): zarafa-common-7.0.6-1.el5.i386.rpm                                   |  21 kB     00:00
(8/58): boost141-system-1.41.0-2.el5.i386.rpm                                |  24 kB     00:00
(9/58): php53-pspell-5.3.3-7.el5_8.i386.rpm                                  |  26 kB     00:00
(10/58): php53-mssql-5.3.3-1.el5.i386.rpm                                    |  26 kB     00:00
(11/58): php53-snmp-5.3.3-7.el5_8.i386.rpm                                   |  29 kB     00:00
(12/58): php53-ldap-5.3.3-7.el5_8.i386.rpm                                   |  36 kB     00:00
(13/58): php53-process-5.3.3-7.el5_8.i386.rpm                                |  38 kB     00:00
(14/58): php53-dba-5.3.3-7.el5_8.i386.rpm                                    |  39 kB     00:00
(15/58): php53-bcmath-5.3.3-7.el5_8.i386.rpm                                 |  42 kB     00:00
(16/58): libntlm-1.0-1.el5.i386.rpm                                          |  43 kB     00:00
(17/58): libXpm-3.5.5-3.i386.rpm                                             |  45 kB     00:00
(18/58): php53-imap-5.3.3-7.el5_8.i386.rpm                                   |  50 kB     00:00
(19/58): php53-interbase-5.3.3-1.el5.i386.rpm                                |  50 kB     00:00
(20/58): php53-odbc-5.3.3-7.el5_8.i386.rpm                                   |  51 kB     00:00
(21/58): php53-xmlrpc-5.3.3-7.el5_8.i386.rpm                                 |  52 kB     00:00
(22/58): php53-pdo-5.3.3-7.el5_8.i386.rpm                                    |  66 kB     00:00
(23/58): boost141-filesystem-1.41.0-2.el5.i386.rpm                           |  72 kB     00:00
(24/58): php53-pgsql-5.3.3-7.el5_8.i386.rpm                                  |  73 kB     00:00
(25/58): php53-intl-5.3.3-7.el5_8.i386.rpm                                   |  74 kB     00:00
(26/58): php53-mysql-5.3.3-7.el5_8.i386.rpm                                  |  87 kB     00:00
(27/58): mod_ssl-2.2.3-63.el5.centos.1.i386.rpm                              |  94 kB     00:00
(28/58): libgsasl-0.2.29-1.el5.i386.rpm                                      | 100 kB     00:01
(29/58): php53-gd-5.3.3-7.el5_8.i386.rpm                                     | 109 kB     00:00
(30/58): php53-xml-5.3.3-7.el5_8.i386.rpm                                    | 112 kB     00:00
(31/58): distcache-1.4.5-14.1.i386.rpm                                       | 119 kB     00:00
(32/58): m4-1.4.5-3.el5.1.i386.rpm                                           | 133 kB     00:01
(33/58): libtidy-0.99.0-14.20070615.el5.i386.rpm                             | 140 kB     00:01
(34/58): php53-soap-5.3.3-7.el5_8.i386.rpm                                   | 146 kB     00:01
(35/58): enchant-1.4.2-4.el5.1.i386.rpm                                      | 151 kB     00:01
(36/58): libical-0.48-1.el5.i386.rpm                                         | 202 kB     00:01
(37/58): php53-mapi-7.0.6-1.el5.i386.rpm                                     | 217 kB     00:02
(38/58): firebird-libfbclient-2.1.4.18393.0-1.el5.i386.rpm                   | 295 kB     00:02
(39/58): imake-1.0.2-3.i386.rpm                                              | 319 kB     00:02
(40/58): automake-1.9.6-2.3.el5.noarch.rpm                                   | 476 kB     00:03
(41/58): libxslt-1.1.17-2.el5_2.2.i386.rpm                                   | 485 kB     00:04
(42/58): lm_sensors-2.10.7-9.el5.i386.rpm                                    | 511 kB     00:04
(43/58): libc-client-2004g-2.2.1.i386.rpm                                    | 516 kB     00:04
(44/58): unixODBC-libs-2.2.11-10.el5.i386.rpm                                | 551 kB     00:04
(45/58): php53-devel-5.3.3-7.el5_8.i386.rpm                                  | 591 kB     00:05
(46/58): php53-common-5.3.3-7.el5_8.i386.rpm                                 | 604 kB     00:04
(47/58): autoconf-2.59-12.noarch.rpm                                         | 647 kB     00:05
(48/58): net-snmp-5.3.2.2-17.el5.i386.rpm                                    | 703 kB     00:06
(49/58): recode-3.6-24.el5.i386.rpm                                          | 838 kB     00:07
(50/58): libmapi-7.0.6-1.el5.i386.rpm                                        | 886 kB     00:07
(51/58): libvmime-0.9.2-0.1.20110626svn.el5.i386.rpm                         | 887 kB     00:07
(52/58): freetds-0.91-2.el5.i386.rpm                                         | 992 kB     00:08
(53/58): php53-mbstring-5.3.3-7.el5_8.i386.rpm                               | 1.2 MB     00:09
(54/58): zarafa-client-7.0.6-1.el5.i386.rpm                                  | 1.2 MB     00:11
(55/58): php53-5.3.3-7.el5_8.i386.rpm                                        | 1.3 MB     00:10
(56/58): net-snmp-libs-5.3.2.2-17.el5.i386.rpm                               | 1.3 MB     00:11
(57/58): php53-cli-5.3.3-7.el5_8.i386.rpm                                    | 2.5 MB     00:22
(58/58): libicu-3.6-5.16.1.i386.rpm                                          | 5.3 MB     00:47
----------------------------------------------------------------------------------------------------
Total                                                               114 kB/s |  24 MB     03:37
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php53-common                                                                1/58
  Installing     : php53-pdo                                                                   2/58
  Installing     : libicu                                                                      3/58
  Installing     : boost141-system                                                             4/58
  Installing     : unixODBC-libs                                                               5/58
  Installing     : net-snmp-libs                                                               6/58
  Installing     : freetds                                                                     7/58
  Installing     : boost141-filesystem                                                         8/58
  Installing     : php53-cli                                                                   9/58
  Installing     : php53                                                                      10/58
  Installing     : php53-mbstring                                                             11/58
  Installing     : enchant                                                                    12/58
  Installing     : libc-client                                                                13/58
  Installing     : libxslt                                                                    14/58
  Installing     : libntlm                                                                    15/58
  Installing     : libgsasl                                                                   16/58
  Installing     : libvmime                                                                   17/58
  Installing     : libical                                                                    18/58
  Installing     : m4                                                                         19/58
  Installing     : lm_sensors                                                                 20/58
  Installing     : net-snmp                                                                   21/58
  Installing     : libtidy                                                                    22/58
  Installing     : libXpm                                                                     23/58
  Installing     : imake                                                                      24/58
  Installing     : distcache                                                                  25/58
  Installing     : mod_ssl                                                                    26/58
  Installing     : recode                                                                     27/58
  Installing     : autoconf                                                                   28/58
  Installing     : automake                                                                   29/58
  Installing     : firebird-filesystem                                                        30/58
  Installing     : zarafa-common                                                              31/58
  Installing     : firebird-libfbclient                                                       32/58
  Installing     : php53-interbase                                                            33/58
  Installing     : php53-recode                                                               34/58
  Installing     : php53-gd                                                                   35/58
  Installing     : php53-tidy                                                                 36/58
  Installing     : php53-snmp                                                                 37/58
  Installing     : php53-xml                                                                  38/58
  Installing     : php53-imap                                                                 39/58
  Installing     : php53-enchant                                                              40/58
  Installing     : php53-mssql                                                                41/58
  Installing     : php53-odbc                                                                 42/58
  Installing     : php53-intl                                                                 43/58
  Installing     : php53-pgsql                                                                44/58
  Installing     : php53-mysql                                                                45/58
  Installing     : php53-pspell                                                               46/58
  Installing     : php53-bcmath                                                               47/58
  Installing     : php53-mcrypt                                                               48/58
  Installing     : php53-ldap                                                                 49/58
  Installing     : php53-soap                                                                 50/58
  Installing     : php53-process                                                              51/58
  Installing     : php53-xmlrpc                                                               52/58
  Installing     : php53-dba                                                                  53/58
  Installing     : php53-devel                                                                54/58
  Installing     : php53-php-gettext                                                          55/58
  Installing     : libmapi                                                                    56/58
  Installing     : php53-mapi                                                                 57/58
  Installing     : zarafa-client                                                              58/58

Installed:
  php53.i386 0:5.3.3-7.el5_8                         php53-bcmath.i386 0:5.3.3-7.el5_8
  php53-cli.i386 0:5.3.3-7.el5_8                     php53-common.i386 0:5.3.3-7.el5_8
  php53-dba.i386 0:5.3.3-7.el5_8                     php53-devel.i386 0:5.3.3-7.el5_8
  php53-enchant.i386 0:5.3.3-1.el5                   php53-gd.i386 0:5.3.3-7.el5_8
  php53-imap.i386 0:5.3.3-7.el5_8                    php53-interbase.i386 0:5.3.3-1.el5
  php53-intl.i386 0:5.3.3-7.el5_8                    php53-ldap.i386 0:5.3.3-7.el5_8
  php53-mapi.i386 0:7.0.6-1.el5                      php53-mbstring.i386 0:5.3.3-7.el5_8
  php53-mcrypt.i386 0:5.3.3-1.el5                    php53-mssql.i386 0:5.3.3-1.el5
  php53-mysql.i386 0:5.3.3-7.el5_8                   php53-odbc.i386 0:5.3.3-7.el5_8
  php53-pdo.i386 0:5.3.3-7.el5_8                     php53-pgsql.i386 0:5.3.3-7.el5_8
  php53-php-gettext.noarch 0:1.0.11-3.el5            php53-process.i386 0:5.3.3-7.el5_8
  php53-pspell.i386 0:5.3.3-7.el5_8                  php53-recode.i386 0:5.3.3-1.el5
  php53-snmp.i386 0:5.3.3-7.el5_8                    php53-soap.i386 0:5.3.3-7.el5_8
  php53-tidy.i386 0:5.3.3-1.el5                      php53-xml.i386 0:5.3.3-7.el5_8
  php53-xmlrpc.i386 0:5.3.3-7.el5_8

Dependency Installed:
  autoconf.noarch 0:2.59-12                        automake.noarch 0:1.9.6-2.3.el5
  boost141-filesystem.i386 0:1.41.0-2.el5          boost141-system.i386 0:1.41.0-2.el5
  distcache.i386 0:1.4.5-14.1                      enchant.i386 1:1.4.2-4.el5.1
  firebird-filesystem.i386 0:2.1.4.18393.0-1.el5   firebird-libfbclient.i386 0:2.1.4.18393.0-1.el5
  freetds.i386 0:0.91-2.el5                        imake.i386 0:1.0.2-3
  libXpm.i386 0:3.5.5-3                            libc-client.i386 0:2004g-2.2.1
  libgsasl.i386 0:0.2.29-1.el5                     libical.i386 0:0.48-1.el5
  libicu.i386 0:3.6-5.16.1                         libmapi.i386 0:7.0.6-1.el5
  libntlm.i386 0:1.0-1.el5                         libtidy.i386 0:0.99.0-14.20070615.el5
  libvmime.i386 0:0.9.2-0.1.20110626svn.el5        libxslt.i386 0:1.1.17-2.el5_2.2
  lm_sensors.i386 0:2.10.7-9.el5                   m4.i386 0:1.4.5-3.el5.1
  mod_ssl.i386 1:2.2.3-63.el5.centos.1             net-snmp.i386 1:5.3.2.2-17.el5
  net-snmp-libs.i386 1:5.3.2.2-17.el5              recode.i386 0:3.6-24.el5
  unixODBC-libs.i386 0:2.2.11-10.el5               zarafa-client.i386 0:7.0.6-1.el5
  zarafa-common.i386 0:7.0.6-1.el5

Complete!
[root@centos5

How to Setup Local Yum Repository from CD-ROM/DVD-ROM image on CentOS 5.8

In this post, i will share on how to setup local yum repository from CD-ROM/DVD-ROM image on CentOS 5.8. This quick setup will very useful for those who do not have internet connection and does not have yum repository server on their organization. Using local yum repository, you will able to perform yum installation using the available packages on your CD-ROM/DVD-ROM. This steps may be also working on other version of CentOS server.

1. Insert DVD/ISO into DVD-Drive.
2. Mount the ISO from the DVD-ROM into /mnt directory :

[root@centos58 ~]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only

3. Create centos58.repo text file in /etc/yum.repos.d/ with the following content. Please create something as follow:

[root@centos58 ~]# vi /etc/yum.repos.d/centos58.repo
[CentOS5.8-Repository]
name=DVD-CentOS5.8 repository
baseurl=file:///mnt
enabled=1
gpgcheck=0

4. Finish. You can start install, remove and update using yum command :
Example :

[root@centos58 ~]# yum install httpd -y

How to Install phpMyAdmin on CentOS 5.8 using EPEL Repository

In this post, i will show on how to install phpMyAdmin on CentOS 5.8 using EPEL repository. phpMyAdmin is a opensource tool written in PHP intended to handle the MySQL administration using web interface over the internet. It can manage a whole MySQL server as well as a single database. This post assumed that MySQL and Apache Httpd server has been installed and configured properly.

1. How to Install and Configure EPEL Repository :
Follow this steps to install and configure the Extra Packages for Enterprise Linux (EPEL) repository on CentOS 5.8. EPEL repository is another extra repository that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL) and CentOS server.

2. Simply run the following command to install phpmyadmin :

[root@centos58 ~]# yum install phpmyadmin -y

Example :

[root@centos58 ~]# yum install phpmyadmin -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * epel: mirror.nus.edu.sg
 * extras: centos.ipserverone.com
 * updates: mirrors.hostemo.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:2.11.11.3-2.el5 set to be updated
--> Processing Dependency: php-mcrypt >= 4.1.0 for package: phpMyAdmin
--> Processing Dependency: php-gd >= 4.1.0 for package: phpMyAdmin
--> Processing Dependency: php-mysql >= 4.1.0 for package: phpMyAdmin
--> Processing Dependency: php >= 4.1.0 for package: phpMyAdmin
--> Processing Dependency: php-mbstring >= 4.1.0 for package: phpMyAdmin
--> Running transaction check
---> Package php.i386 0:5.1.6-34.el5_8 set to be updated
--> Processing Dependency: php-common = 5.1.6-34.el5_8 for package: php
--> Processing Dependency: php-cli = 5.1.6-34.el5_8 for package: php
--> Processing Dependency: libcurl.so.3 for package: php
--> Processing Dependency: libgmp.so.3 for package: php
--> Processing Dependency: libidn.so.11 for package: php
--> Processing Dependency: libaspell.so.15 for package: php
--> Processing Dependency: libpspell.so.15 for package: php
---> Package php-gd.i386 0:5.1.6-34.el5_8 set to be updated
---> Package php-mbstring.i386 0:5.1.6-34.el5_8 set to be updated
---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt
---> Package php-mysql.i386 0:5.1.6-34.el5_8 set to be updated
--> Processing Dependency: php-pdo for package: php-mysql
--> Running transaction check
---> Package aspell.i386 12:0.60.3-12 set to be updated
--> Processing Dependency: aspell-en for package: aspell
---> Package curl.i386 0:7.15.5-15.el5 set to be updated
---> Package gmp.i386 0:4.1.4-10.el5 set to be updated
---> Package libidn.i386 0:0.6.5-1.1 set to be updated
---> Package libmcrypt.i386 0:2.5.8-4.el5.centos set to be updated
---> Package php-cli.i386 0:5.1.6-34.el5_8 set to be updated
---> Package php-common.i386 0:5.1.6-34.el5_8 set to be updated
---> Package php-pdo.i386 0:5.1.6-34.el5_8 set to be updated
--> Running transaction check
---> Package aspell-en.i386 50:6.0-2.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch             Version                            Repository         Size
====================================================================================================
Installing:
 phpMyAdmin             noarch           2.11.11.3-2.el5                    epel              4.2 M
Installing for dependencies:
 aspell                 i386             12:0.60.3-12                       base              946 k
 aspell-en              i386             50:6.0-2.1                         base              1.6 M
 curl                   i386             7.15.5-15.el5                      base              235 k
 gmp                    i386             4.1.4-10.el5                       base              664 k
 libidn                 i386             0.6.5-1.1                          base              194 k
 libmcrypt              i386             2.5.8-4.el5.centos                 extras            116 k
 php                    i386             5.1.6-34.el5_8                     updates           2.3 M
 php-cli                i386             5.1.6-34.el5_8                     updates           2.1 M
 php-common             i386             5.1.6-34.el5_8                     updates           154 k
 php-gd                 i386             5.1.6-34.el5_8                     updates           118 k
 php-mbstring           i386             5.1.6-34.el5_8                     updates           996 k
 php-mcrypt             i386             5.1.6-15.el5.centos.1              extras             16 k
 php-mysql              i386             5.1.6-34.el5_8                     updates            87 k
 php-pdo                i386             5.1.6-34.el5_8                     updates            66 k

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

Total download size: 14 M
Downloading Packages:
(1/15): php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm                            |  16 kB     00:00
(2/15): php-pdo-5.1.6-34.el5_8.i386.rpm                                      |  66 kB     00:00
(3/15): php-mysql-5.1.6-34.el5_8.i386.rpm                                    |  87 kB     00:00
(4/15): libmcrypt-2.5.8-4.el5.centos.i386.rpm                                | 116 kB     00:00
(5/15): php-gd-5.1.6-34.el5_8.i386.rpm                                       | 118 kB     00:00
(6/15): php-common-5.1.6-34.el5_8.i386.rpm                                   | 154 kB     00:01
(7/15): libidn-0.6.5-1.1.i386.rpm                                            | 194 kB     00:01
(8/15): curl-7.15.5-15.el5.i386.rpm                                          | 235 kB     00:01
(9/15): gmp-4.1.4-10.el5.i386.rpm                                            | 664 kB     00:05
(10/15): aspell-0.60.3-12.i386.rpm                                           | 946 kB     00:08
(11/15): php-mbstring-5.1.6-34.el5_8.i386.rpm                                | 996 kB     00:08
(12/15): aspell-en-6.0-2.1.i386.rpm                                          | 1.6 MB     00:13
(13/15): php-cli-5.1.6-34.el5_8.i386.rpm                                     | 2.1 MB     00:18
(14/15): php-5.1.6-34.el5_8.i386.rpm                                         | 2.3 MB     00:26
(15/15): phpMyAdmin-2.11.11.3-2.el5.noarch.rpm                               | 4.2 MB     00:37
----------------------------------------------------------------------------------------------------
Total                                                               108 kB/s |  14 MB     02:09
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php-common                                                                  1/15
  Installing     : libidn                                                                      2/15
  Installing     : curl                                                                        3/15
  Installing     : gmp                                                                         4/15
  Installing     : php-gd                                                                      5/15
  Installing     : php-mbstring                                                                6/15
  Installing     : php-pdo                                                                     7/15
  Installing     : php-mysql                                                                   8/15
  Installing     : libmcrypt                                                                   9/15
  Installing     : aspell-en                                                                  10/15
  Installing     : aspell                                                                     11/15
  Installing     : php-cli                                                                    12/15
  Installing     : php                                                                        13/15
  Installing     : php-mcrypt                                                                 14/15
  Installing     : phpMyAdmin                                                                 15/15

Installed:
  phpMyAdmin.noarch 0:2.11.11.3-2.el5

Dependency Installed:
  aspell.i386 12:0.60.3-12                       aspell-en.i386 50:6.0-2.1
  curl.i386 0:7.15.5-15.el5                      gmp.i386 0:4.1.4-10.el5
  libidn.i386 0:0.6.5-1.1                        libmcrypt.i386 0:2.5.8-4.el5.centos
  php.i386 0:5.1.6-34.el5_8                      php-cli.i386 0:5.1.6-34.el5_8
  php-common.i386 0:5.1.6-34.el5_8               php-gd.i386 0:5.1.6-34.el5_8
  php-mbstring.i386 0:5.1.6-34.el5_8             php-mcrypt.i386 0:5.1.6-15.el5.centos.1
  php-mysql.i386 0:5.1.6-34.el5_8                php-pdo.i386 0:5.1.6-34.el5_8

Complete!

3. Open the phpMyAdmin.conf configuration file as below :

[root@centos58 ~]# vi /etc/httpd/conf.d/phpMyAdmin.conf

Original phpMyAdmin.conf configuration file :

<Directory /usr/share/phpMyAdmin/>
   Order Deny,Allow
   Deny from All
   Allow from 127.0.0.1
   Allow from ::1
</Directory>

Change as below. Default setting only allows only localhost. Changes below will allow access to any ip address but very dangerous unless properly secured by SSL :

<Directory /usr/share/phpMyAdmin/>
   Order Deny,Allow
   Deny from All
   Allow from All
   Allow from ::1
</Directory>

4. Restart apache httpd service :

[root@centos58 ~]# /etc/init.d/httpd restart

5. Open PhpMyAdmin from myour browser using the following URL :

http://CentOS5.8_Ipaddress/phpmyadmin/

This will install phpMyAdmin – 2.11.11.3 on your CentOS 5.8

How to Install and Configure EPEL Repository on CentOS 5.8

EPEL repository is another extra repository that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL) and CentOS server. In this post, i will show you on how to install and configure the Extra Packages for Enterprise Linux (EPEL) repository on CentOS 5.8. To install the repository, you can follow this steps :

1. First we import the GPG keys for EPEL software packages:

[root@centos58 ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-5

Example :

[root@centos58 ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-5
--2012-05-12 05:01:11--  http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-5
Resolving ftp.riken.jp... 134.160.38.1
Connecting to ftp.riken.jp|134.160.38.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1698 (1.7K) [text/plain]
Saving to: `RPM-GPG-KEY-EPEL-5'

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

2012-05-12 05:01:12 (42.2 MB/s) - `RPM-GPG-KEY-EPEL-5' saved [1698/1698]

2. Then we enable the EPEL repositories using the following command :

[root@centos58 ~]# rpm --import RPM-GPG-KEY-EPEL-5

3. Download EPEL repository for 32-bit CentOS :

[root@centos58 ~]# wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Example :

[root@centos58 ~]# wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
--2012-05-12 05:04:03--  http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Resolving dl.fedoraproject.org... 209.132.181.25, 209.132.181.26, 209.132.181.27, ...
Connecting to dl.fedoraproject.org|209.132.181.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12232 (12K) [application/x-rpm]
Saving to: `epel-release-5-4.noarch.rpm'

100%[==========================================================>] 12,232      43.7K/s   in 0.3s

2012-05-12 05:04:04 (43.7 KB/s) - `epel-release-5-4.noarch.rpm' saved [12232/12232]

4. Install EPEL repository on 32-bit CentOS :

[root@centos58 ~]# rpm -ivh epel-release-5-4.noarch.rpm
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]

5. You can start using EPEL repository :

# yum install package name -y
Example :

[root@centos58 ~]# yum install phpmyadmin -y