{"id":3774,"date":"2012-08-31T10:50:09","date_gmt":"2012-08-31T02:50:09","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3774"},"modified":"2023-04-28T09:49:00","modified_gmt":"2023-04-28T09:49:00","slug":"how-to-install-php-mcrypt-on-centos-6-3","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-php-mcrypt-on-centos-6-3\/","title":{"rendered":"How to Install php-mcrypt on CentOS 6.3"},"content":{"rendered":"<p><img decoding=\"async\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2011\/07\/php-150x150.png\" alt=\"\" title=\"php\" width=\"150\" height=\"150\" class=\"alignleft size-thumbnail wp-image-1262 lazyload\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2011\/07\/php-150x150.png 150w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2011\/07\/php-100x100.png 100w\" data-sizes=\"(max-width: 150px) 100vw, 150px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 150px; --smush-placeholder-aspect-ratio: 150\/150;\" \/>mcrypt exension for PHP is necessary if we want to use cookie based authentication with phpymyadmin. In default CentOS 6.3 yum repository or in CentOS 6.3 installation CD\/DVD, php-mcrypt exension are not included. To install php-mcrypt on CentOS 6.3, we have to use third party yum repository. Follow this steps :<\/p>\n<p>1. Download epel repository :<\/p>\n<pre>[root@centos62 ~]# wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-7.noarch.rpm\n[root@centos62 ~]# wget http:\/\/ftp.riken.jp\/Linux\/fedora\/epel\/RPM-GPG-KEY-EPEL-6<\/pre>\n<p>2. Install epel repository :<\/p>\n<pre>[root@centos62 ~]# rpm --import RPM-GPG-KEY-EPEL-6\n[root@centos62 ~]# rpm -i epel-release-6-7.noarch.rpm<\/pre>\n<p>3. Simply run the following command to install php-mcrypt :<\/p>\n<pre>\n[root@centos63 ~]# yum install php-mcrypt -y\nLoaded plugins: fastestmirror, presto\nLoading mirror speeds from cached hostfile\n * base: mirror1.ku.ac.th\n * epel: mirrors.ispros.com.bd\n * extras: mirror.issp.co.th\n * updates: mirror1.ku.ac.th\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package php-mcrypt.i686 0:5.3.3-1.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package                   Arch                Version                    Repository           Size\n====================================================================================================\nInstalling:\n php-mcrypt                i686                5.3.3-1.el6                epel                 18 k\n\nTransaction Summary\n====================================================================================================\nInstall       1 Package(s)\n\nTotal download size: 18 k\nInstalled size: 38 k\nDownloading Packages:\nSetting up and reading Presto delta metadata\nProcessing delta metadata\nPackage(s) data still to download: 18 k\nphp-mcrypt-5.3.3-1.el6.i686.rpm                                              |  18 kB     00:00\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing : php-mcrypt-5.3.3-1.el6.i686                                                      1\/1\n  Verifying  : php-mcrypt-5.3.3-1.el6.i686                                                      1\/1\n\nInstalled:\n  php-mcrypt.i686 0:5.3.3-1.el6\n\nComplete!\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>mcrypt exension for PHP is necessary if we want to use cookie based authentication with phpymyadmin. In default CentOS 6.3 yum repository or in CentOS 6.3 installation CD\/DVD, php-mcrypt exension&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1262,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055,1025],"tags":[1244,1254,1361,1536,1567,1646],"class_list":["post-3774","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-php","tag-centos","tag-centos-6-3","tag-epel","tag-linux","tag-mcrypt","tag-php"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3774"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3774\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1262"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}