Installing mcrypt to your 123-reg Cloud Server

This article applies to 123-reg Cloud Servers and Dedicated Cloud Servers.

This article will explain how you can install mcrypt 123-reg Linux Cloud Server.

To access your Cloud Server or Dedicated Cloud Server using the Putty SSH Client please see the following guide:

How do I login to my Cloud Server via SSH?

Ubuntu OS

1

Once logged into your 123-reg Cloud Server using SSH execute the following command:

apt-get install php-mcrypt

Or Alternatively, you can use:

apt-get install php5-mcrypt


CentOS

1

First, you need to enable EPEL repository on your system. You don’t need to configure this repository manually in your yum. Instead, download the following package and install it, which will enable the EPEL repository on your system.

http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html

2

Perform a -test to test the installation, this will give a NOKEY found warning message.

# rpm -ivh epel-release-6-5.noarch.rpm --test

warning: epel-release-6-5.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]

3

Download the GPG key for EPEL repository from fedoraproject and install it on your system. Go to https://fedoraproject.org/keys and scroll down to RPM-GPG-KEY-EPEL-6 and download it.

Alternatively you can use the following wget command:

# cd
wget https://fedoraproject.org/static/0608B895.txt

mv 0608B895.txt /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

4

Then Verify that the key got installed successfully.

# rpm -qa gpg*

gpg-pubkey-0608b895-4bd22942

5

Now install the epel-release-6-6.noarch package, which will enable EPEL repository on your system.

# rpm -ivh epel-release-6-5.noarch.rpm

Preparing... ########################################### [100%]
1:epel-release-6-5.noarch########################################### [100%]

Please Note: GPG Key ID:

In Step 2 the rpm command returned key ID 0608b895: NOKEY as part of the response, this indicates that the install process is looking for the GPG key with the ID 0608b895.

When you download the key from fedoraproject you notice that the GPG key is stored in a filename that is just the keyid. This is the 0608B895.txt file used in Step 3.

6

Once you’ve installed the key, run the following command and, you’ll see that the gpg key with the keyid 0608b895 is installed.

# rpm -qa gpg*

gpg-pubkey-0608b895-4bd22942
Verify EPEL

7

Run the following command to verify that the EPEL repository is enabled as shown below.

# yum repolist

repo id       repo name                                                                   status
base          CentOS-6 - Base                                                          6,294
epel           Extra Packages for Enterprise Linux 6 - x86_64        7,345
extras        CentOS-6 - Extras                                                       4
updates     CentOS-6 - Updates                                                     928
repolist: 14,571

8

Finally run the following command to install mcrypt to your 123-reg Cloud Server running CentOS.

# yum install php-mcrypt

Offer

Answer options

Your feedback was successfully added.

Answer tracking

Track

Watch the content of this article for changes.