Digital Masters Magazine

Home of Digital Masters

  • Design
  • Photo
  • Video
  • Web
  • Code
  • UX
  • Mobile
Home Webmasters' Insights How to Install mcrypt on CentOS 6.x
How to Install mcrypt on CentOS 6.x

November 17, 2013 By Digital Masters Leave a Comment

How to Install mcrypt on CentOS 6.x

mcrypt is an amazingly useful php extension you may not be able to live without for long. Here is how to set it up on CentOS 6.x.

Step 1. Make yourself comfortable in a temp directory somewhere on your system:

cd /tmp/

For the following steps, you need to be root, so will either have to prefix commands with sudo, or switch to root; for example on AWS, this is done using:

sudo su

Step 2. Get yourself the rpms to set up repositories:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

and install:

rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Step 3. Run an update based on the newly set up repositories (just in case):

yum update

Step 4. Install the php-mcrypt module:

yum install php-mcrypt*

Step 5. The mcrypt module needs to be enabled in its own mcrypt.ini file (in the modules directory of your php installation):

extension=mcrypt.so 

as well as inside of your php.ini file (php must be compiled with support for this module):

extension=mcrypt.so

If, at this point, you are wondering where the .ini files are hiding, you can command your php server to disclose their location using:

php-fpm -i

Step 6. Once you ensured that the module will be loaded, restart your server:

service nginx restart; service php-fpm restart

Done.

Filed Under: Webmasters' Insights Tagged With: Linux, PHP

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Treat yourself to the best of our content

Sharing is caring

Tweets by 4digitalmasters
Speed is everything: shiny car engine rendering

$#! No ISO and no upgrade pathways? How to force your PC to upgrade Windows 10 to Windows 11

Photo by Warren Wong on Unsplash

The tech revolt. Say goodbye to your favorite search engine that’s been wasting your precious clicks on silly captchas

Change language settings in Adobe Photoshop 2020

How to change the language of Adobe Photoshop

Apple MacBook Pro (16-Inch, 16GB RAM, 1TB Storage) - Space Gray

The new 16-inch MacBook Pro: Faster, slightly heavier but still ultra-light and #WorthTheWait

iPhone XS

The iPhone XS +++ An Insider Report +++ new 5.8-inch and 6.5-inch OLED iPhones +++ Codename D32 & D33

Apple MacBook Pro (16-Inch, 16GB RAM, 1TB Storage) - Space Gray

Apple’s new 16-inch MacBook Pro sports even cooler looks than its predecessor. It is also truly different.

iPhone XS

If you are playing with the idea of buying a new iPhone, now is the time to wait. All signs are pointing to the launch of a new iPhone. On September 12th, Apple has scheduled a media event. If history is any indication, a new product launch is imminent. The iPhone maker has already released […]

What’s up

ActionScript Adobe Adobe CC All-in-One WP Migration Angular 2 Apache Apple assistive technology CNAME crawl DNG Dreamweaver Event Viewer Google Google Analytics GPU HTML HTTP INTC Intel iOS iPhone JavaScript Microsoft Windows 10 OpenSSH OS X PayPal performance Photoshop PHP product key Qualcomm RAW redirects RSS SEO speed SSD Tim Cook TypeScript Wall Street Windows Windows 10 Windows 10 free upgrade WordPress

Categories

  • Home
  • Subscribe
  • Advertise
  • Privacy Policy
  • Legal
  • Contact Us

Copyright © 2023 ·Streamline Pro Theme · Genesis Framework by StudioPress · WordPress · Log in