Installing PHP7 mcrypt on Debian

I’ve run into this problem a few times when setting up development stacks for Laravel, OpenCart and some other frameworks – they require the mCrypt PHP extension, but it is not included in Debian 8.

After a few failed attempts and some Googling, this seems to work for me:

apt-get update
apt-get install mcrypt php7.0-mcrypt
apt-get upgrade
service apache2 restart

Of course, you need to be the root user to do this.

htaccess Tips

Editing htaccess files on an Apache webserver is one of those tasks which I don’t do often enough for anything more than the most basic commands to stick in my brain.

Of course you can go to the Apache manual, but it is not the easiest read.

So, more often than not, I end up at Perishablepress’s ‘Stupid htaccess tricks’ which has loads of solid examples which are really easy to understand.