PHP Mcrypt on CentOS 6
CentOS 6 still doesn’t by default include php mcrypt in it’s distribution on repositories. EPEL repo is the answer for this
Step 1: Install EPEL Repository
#rpm -ivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
after installing epel rpm, we need to update the yum
#yum clean all
#yum list all
Step 2: Install php-mcrypt
#yum install php-mcrypt
Step 3: Add mcrypt entry to php.ini file
#vim /etc/php.ini
add "extension=mcrypt.so"
Step 4: Restart Apache(httpd) Service
we need to restart apache service to make the changes reflect in php.
#service httpd restart
Step 5: Test it
if you need to check the details about installed mcrypt packages, run
#repoquery -i php-mcrypt
which will give you Name, verison, archi, size, repos, summary, etc.
CentOS 6 still doesn’t by default include php mcrypt in it’s distribution on repositories. EPEL repo is the answer for this
Step 1: Install EPEL Repository
#rpm -ivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
after installing epel rpm, we need to update the yum
#yum clean all
#yum list all
Step 2: Install php-mcrypt
#yum install php-mcrypt
Step 3: Add mcrypt entry to php.ini file
#vim /etc/php.ini
add "extension=mcrypt.so"
Step 4: Restart Apache(httpd) Service
we need to restart apache service to make the changes reflect in php.
#service httpd restart
Step 5: Test it
if you need to check the details about installed mcrypt packages, run
#repoquery -i php-mcrypt
which will give you Name, verison, archi, size, repos, summary, etc.