Code:
sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 restart
Code:
sherly@HOME:~$ sudo apt-get install php5-mcrypt
[sudo] password for sherly:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic
linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libmcrypt4
Suggested packages:
libmcrypt-dev mcrypt
The following NEW packages will be installed:
libmcrypt4 php5-mcrypt
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 74.7 kB of archives.
After this operation, 300 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libmcrypt4 i386 2.5.8-3.1ubuntu1 [61.1 kB]
Get:2 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-mcrypt i386 5.5.19+dfsg-1+deb.sury.org~trusty+1 [13.7 kB]
Fetched 74.7 kB in 1s (57.1 kB/s)
Selecting previously unselected package libmcrypt4.
(Reading database ... 451236 files and directories currently installed.)
Preparing to unpack .../libmcrypt4_2.5.8-3.1ubuntu1_i386.deb ...
Unpacking libmcrypt4 (2.5.8-3.1ubuntu1) ...
Selecting previously unselected package php5-mcrypt.
Preparing to unpack .../php5-mcrypt_5.5.19+dfsg-1+deb.sury.org~trusty+1_i386.deb ...
Unpacking php5-mcrypt (5.5.19+dfsg-1+deb.sury.org~trusty+1) ...
Processing triggers for libapache2-mod-php5 (5.5.19+dfsg-1+deb.sury.org~trusty+1) ...
Setting up libmcrypt4 (2.5.8-3.1ubuntu1) ...
Setting up php5-mcrypt (5.5.19+dfsg-1+deb.sury.org~trusty+1) ...
Creating config file /etc/php5/mods-available/mcrypt.ini with new version
php5_invoke: Enable module mcrypt for cli SAPI
php5_invoke: Enable module mcrypt for apache2 SAPI
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
Processing triggers for libapache2-mod-php5 (5.5.19+dfsg-1+deb.sury.org~trusty+1) ...
sherly@HOME:~$ sudo php5enmod mcrypt
sherly@HOME:~$ sudo service apache2 restart
* Restarting web server apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[ OK ]
Bookmarks