Skip to content

Instantly share code, notes, and snippets.

@da-n
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save da-n/7f929f85316345eff7ff to your computer and use it in GitHub Desktop.
Save da-n/7f929f85316345eff7ff to your computer and use it in GitHub Desktop.
Enable mcrypt apache
# enable the mcrypt
$ sudo vim /etc/php5/apache2/php.ini
# Add this command in any line
extension=mcrypt.so
# Create conf.d folder in /etc/php5
$ sudo mkdir conf.d
# And inside that folder create mcrypt.ini file
$ sudo gedit mcrypt.ini
# Then add this command to that file
extension=mcrypt.so
# Then create a link to file
$ sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
# Enable mcrypt module
$ sudo php5enmod mcrypt
# Restart apache
$ sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment