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 install mcrypt php7.0-mcrypt
service apache2 restart
Of course, you need to be the root user to do this.
I keep having to Google this so thought I’d record it here.
To get a simple list of all local users:
cut -d: -f1 /etc/passwd
To get more information, such as home directory paths:
Prism Shortcode Error: Custom field not set or empty
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.