The mcrypt extension is missing. Please check your PHP configuration

后端 未结 7 495
無奈伤痛
無奈伤痛 2021-01-30 06:43

I just followed the tutorial located at https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu while fixing multiple other er

相关标签:
7条回答
  • 2021-01-30 07:02

    I am on a Mac OS X Yosemite using Terminal, and I fix this error

    the requested PHP extension mcrypt is missing from your system

    by running the following commands :

    brew update
    brew upgrade
    brew tap homebrew/dupes
    brew tap josegonzalez/homebrew-php
    brew install php54-mcrypt
    
    0 讨论(0)
  • 2021-01-30 07:14

    Try this:

    sudo apt-get install php5-mcrypt
    sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
    sudo php5enmod mcrypt 
    sudo service apache2 restart
    
    0 讨论(0)
  • 2021-01-30 07:14

    For those using a LEMP stack (nginx & php5-fpm), this is the solution

    apt-get install php5-mcrypt
    php5enmod mcrypt
    service php5-fpm restart
    service nginx restart
    

    (run each with sudo, naturally)

    0 讨论(0)
  • 2021-01-30 07:15

    I've followed the exact tutorial with OP on digital ocean. The only steps that missing is to

    sudo php5enmod mcrypt
    sudo service apache2 restart 
    

    and the error gone after restarting the apache service

    0 讨论(0)
  • 2021-01-30 07:20

    Try this:

    sudo apt-get install mcrypt php5-mcrypt; php5enmod mcrypt; service apache2 restart
    
    0 讨论(0)
  • 2021-01-30 07:27

    I just stuffed a symbolic link into the Apache portion of php configuration. Platform: Xubuntu 14.04 LTS.

    Details:

    1. cd /etc/php5/apache2/conf.d
    2. sudo ln -s ../../mods-available/mcrypt.ini 20-mcrypt.ini
    3. ls -l to see if the new link is there
    4. sudo apache2ctl restart

    HTH.

    0 讨论(0)
提交回复
热议问题