Easy Install PHP Mcrypt Extension on Ubuntu Linux

Most of web-based application development todays were developed using database. The most popular one is using PHP and MySQL. When developing using MySQL most of beginners were using phpMyAdmin as their power tools in database CRUD (Create-Read-Update-Delete) as well as databases/tables creation and manipulation.

PhpMyAdmin supports encryption feature which enables database developers to raise their application security bar in database. In order to use encryption feature in PHP, phpMyAdmin need a PHP library called mcrypt to be enabled. If it is not already installed during php installation, then you have to enabled it on php.ini either manually or automagically (by script).

Mcrypt is an interface to the mcrypt library, which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, it supports RC6 and IDEA which are considered “non-free”. CFB/OFB are 8bit by default.

First what you need to do is checking whether mcrypt is already enabled on your php configuration or not. Create a phpinfo.php which contains only the following one line:

<?php phpinfo(); ?>

Save it on your web server document root. If your web server location is on the same computer as your web browser, access those file from web browser using the following URL:

http://localhost/phpinfo.php

or

http://127.0.0.1/phpinfo.php

localhost is the alias name of loopback ip address 127.0.0.1. Sometimes your computer couldn’t recognize localhost as 127.0.0.1 (as on my Mac computer), if so you have to use the latter URL.

If you see something like the above picture, then you’re set to go, PHP Mcrypt library is ready to be used on your application project.

If not, then you have to install it using the Ubuntu apt-get command:

apt-get install php5-mcrypt

and then Ubuntu’s aptitude will do the download and configuring the rest for you (automagically). Make sure your computer has internet access to download the required files and dependency.

After successfully installed, restart your (Apache) web server using the following command:

/etc/init.d/apache2 restart

or

service apache2 restart

Then refresh your browser using the same URL, you should see the mcrypt library loaded and you’re good to go. Hope this helps.

Notes:

Before executing any apt-get command, you have to execute those command as super user (root). Or append the apt-get command with sudo.

Sometimes you might get the message “php5-mcrypt is already the newest version“. If so, install with:

apt-get --reinstall install php5-mcrypt

Update:

In case someone still had an error of Mcrypt is not being installed, even after installing php5-mcrypt module using apt-get, find where your php.ini is located and put or enable (by removing the semicolon) the following line:

extension=mcrypt.so

and restart Apache.
In some systems, you have to find where php5 configuration folder is located (in my case it is on /etc/php5/conf.d/ directory) and put an mcrypt.ini file which contains

extension=mcrypt.so

save the file and restart Apache.
Hope this helps.

170 Replies to “Easy Install PHP Mcrypt Extension on Ubuntu Linux”

  1. Tutorial download lagu ini dibuat untuk kamu yang bingung dengan caranya mengunduh lagu, mp3, atau musik secara gratis dan mudah, yang bisa disimpan offline ke dalam file manager smarthpone Android / iPhone, maupun komputer kamu.

  2. #downloadmp3, #downloadlagu, #laguidonesia, #musikmp3, #downloadmusikmp3, #downloadlagugratis, #lgudanglagu
    download lagu gratis
    download lagu dangdut gratis
    Temukan musik yang hebat, unduh musik panas gratis untuk ponsel Anda
    Temukan musik yang hebat, unduh musik panas gratis untuk ponsel Anda
    Di bawah ini adalah daftar lagu-lagu terbaik, Unduh musik terpanas atau musik pada tahun 2019

  3. tainhacvn Trang tải nhạc online miễn phí – Tai Nhac VN với kho nhạc chất lượng cao khổng lồ được cập nhập 24/7 được tối ưu hỗ trợ người dùng tải nhạc về máy phù hợp với mọi cấu hình

  4. Thanks for sharing this info. I truly appreciate your efforts
    Yet more, the Brandeis Pluralism Alliance sponsored an impactful display celebrating unity in plurality, which, in case you’d like to look this up like I did,

  5. Hallo ! Selamat datlang di halaman profil aku, aku amat menyukai permainan togel dan aku teramat gemar sekali menghasilkan formula pertogelan dgn memanfaatkan data sgp, data hk, dan data sidney apabila kamu berminat join di website aku silakan mengklik togelsakti4d

  6. First of all I would like to say superb blog!
    I had a quick question which I’d like to ask if you don’t mind.
    I was curious to know how you center yourself
    and clear your thoughts before writing.

  7. indotogelsgp04 merupakan satu satunya yang menyediakan fitur terlengkap dalam permainan togel online serta banyak memberikan kemudahan kepada para better atau konsumen yang gemar memainkan permainan togel online fitur yang ditawarkan antara lain ialah data sidney, data sgp, data hk, tak lupa indotogelsgp04 juga menyediakan fitur siaran perputaran angka togel secara langsung seperti live sidney, live sgp dan juga live hk serta fitur pelengkap lainnya seperti live chat yang siap melayani anda 24 jam nonstop yang siap melayani dengan pelayanan kelas VIP karena kepuasan member adalah hal yang utama bagi bandar indotogelsgp04.

  8. memberikan kemudahan kepada para better atau konsumen yang gemar memainkan permainan togel online fitur yang ditawarkan antara lain ialah data sidney, data sgp, data hk, tak lupa indotogelsgp04 juga menyediakan fitur siaran perputaran angka togel secara langsung seperti live sidney,

  9. 1- اسعار شركة تنظيف خزانات بحائل تتلائم مع اسعار متواجدة فى الاسواق وتهتم بالتخلص من اى مشكلة تقليدية نتعرض الية بالاضافة الى سرعة الاداء والمهام للتنظيف لاى نوع من الخزانات .
    2- القيام باعمال الكشف الدورى كل 4 شهور للتاكد ان الخزان نظيف لا يحتاج الى التنظيف الا بعد المدة المحددة وهى كل 6 شهور .
    امر التنظيف من الامور التى تحمل فى طياتها الحفاظ على صحتك وصحة افراد اسرتك فلم يكن هناك اى منزل او اى مكان لا يحتاج الى الخزان من اجل الحياة اليومية ، فالماء من اهم ضروريات الحياة التى لا نستطيع ان نستغنى عنها ، فاذا اراد ان تتخلص من اى مشكلة فى الخزان لة علاقة بالتنظيف فتاكد ان شركة الشرق الاوسط هى الحل المثالى لذلك .

Leave a Reply to Watch MLB Live Cancel reply

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

*

CAPTCHA Image

*