Last active
August 29, 2015 14:02
-
-
Save da-n/7f929f85316345eff7ff to your computer and use it in GitHub Desktop.
Enable mcrypt apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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