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.
I do consider all the concepts you’ve presented on your post. They are very convincing and can certainly work. Nonetheless, the posts are too quick for beginners. Could you please lengthen them a little from next time? Thank you for the post.
Hi – I’ve installed it but it still isn’t available to PHP – how do I manually set it in php.ini to find mcrypt? Ubuntu 13.10 🙂
Hi Gwilym,
Have a look at response #3 on launchpad: https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/1236035
This worked for me after an upgrade to 13.10.
PS: don’t forget to add ‘sudo’ in front of the first comment.
*In front of the first command.
(couldn’t find an edit button 🙂 )
Please see my reply to ERik below
Same here, on 13.10 64bits. Didn’t have the problem on 32 bits before. PHP myadmin keeps complaining that mcrypt extension is missing and following your instructions as from above doesn’t change that. Results in saying mcrypt has been installed and is ready for manual installation.
Any idea on what to do?
Had the same problem with mcrypt missing in Ubuntu 13.10 (though I was configuring roundcube rather than php myadmin). It seems that a change to the directory structure under /etc/php5/apache2 has caused a problem and mcrypt doesn’t get found. A quick workaround is to issue the command “sudo ln -s ../../conf.d/mcrypt.ini /etc/php5/apache2/conf.d/” and restart apache2.
Worked for me, on Kubuntu 13.10. Thanks! 🙂
@Gwilym, @ERik, please see my updates on the post
Thanks!
Thanks a lot! Really helped!
Great, thanks! Worked perfekt for me.
Aryo Pinandito, genius !!!!
Thank-you.
It’s amazing for me to have a web site, which is beneficial in support of my know-how.
thanks admin
Your instructions are great! It saved my day!
Thanks a lot!
Wow mas Aryo Jenius.
Terima kasih Mas Aryo.
Makasih kang
Sangat mmbntu. Nuhun
Makasih
ok, it is good, i like them.Thank you very much Mr. Aryo Pinandito, a very helpful article. The writing is very detailed and also using vocabulary that is easily understood by beginners like me, became more eager to learn hehe.
after installing mcrypt i got error 500. how to fix it?
Wow really amazing sir
Very interesting article. Thanks for sharing such useful information here and nice snaps.
THANKS!
yaps mantap!
lol 😀
asik linux mah..
makasih nih tutornya..
tutornya bagus..
Terima kasih banyak bapak dosen yang baik
Terima kasih informasinya pak dosenku
i like this article.. thanks for share
nice post guys. i like it
Alhamdulillah pak dosen, ilmu ini sangat bermanfaat. Semoga menjadi berkah
mantap kali bang
thank you ilmu nya!
gokil pak guru 😀
thanks pak! blog nya sangat bagus
makasih pak blog anda keren
thanks sir mantap
mantap kali bukan kaleng kaleng
jos nian jok
jos hu mantaul
Layarkaca21.io adalah situs web hiburan yang bertujuan untuk membantu orang download film dengan kualitas tinggi. Anda dapat nonton film seperti Action, LK21, Dunia21, Anime, Horror, Komedi, Mandarin, Drama, Adventure, Animation, Cinema 21, Fantasy, Science Fiction …
Download Lagu Gratis – Situs dengarkan dan download lagu mp3 secara gratis. Kami membantumu Download Lagu Mp3 terbaik 2019 tinggi.
Di DownloadLaguTerbaru.Net – kamu bisa dengarkan lagu mp3 online tercepat Kualitas tinggi, Unduh lagu gratis ke ponsel dan komputer. Download musik mp3 free situs web DownloadLagu-Gratis.Com akan membuatmu puas, terbaru top download lagu gratis Indonesia, download lagu mp3 terbaru gratis
kurau.me merupakan situs nonton film online terbaru yang bernaung di bawah layarkaca21 indoxxi gudangmovies dunia21 cinemaindo bioskopkere grandxxi. Kami selalu update dan terus menyediakan film-film dengan kualitas terbaik.
Kami telah mencoba membangun Xdownloadlagu.com dengan tujuan membantu orang unduh lagu dengan mudah mengalami mendengarkan dan menikmati musik dengan cara terbaik.
Download lagu gudang download lagu terbaru, download lagu mp3, dengarkan musik online, unduh lagu dengan kualitas terbaik 320Kb, lossless. Download musik terbaru dan terbaik tentang telepon, undon lagu musik online 2019 terbaik Indonesia terbaru. Unduh lagu terbaru, mendengarkan lagu terbaik.
Xdownloadlagu selalu memperbarui lagu dan tangga lagu terbaru di Indonesia, planet lagu dan di seluruh dunia.
Masukkan nama lagu di kotak pencarian untuk menemukan & mengunduh lagu apa pun yang ingin Anda unduh ke perangkat Anda secara gratis.
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
Thank you!
Ya sangat bermanfaat sekali
Thank you ma men!
Download Lagu Terbaru Gratis, Gudang Lagu Mp3 Terbaik 2019
Panduan: Masukkan nama lagu ke kotak pencarian untuk download musik yang Anda inginkan.
Download Lagu-lagu Terbaru – Situs dengarkan dan download lagu mp3 secara gratis. Kami membantumu Download Lagu Mp3 terbaik 2019 tinggi.
Makasih banyak yaa gan…
Situs Aplikasi download lagu ini dibuat untuk kamu yang bingung dengan aplikasi mengunduh lagu, mp3, atau musik secara gratis dan mudah, yang bisa disimpan offline ke dalam file manager smarthpone Android / iPhone, maupun komputer kamu.