PHP warning : Module 'mcrypt' already loaded

后端 未结 4 1014
后悔当初
后悔当初 2021-02-12 17:57

When I run a command with PHP, it shows me an error. E.g when I run php -v to see my PHP-version it shows me an error then the informations about PHP:

4条回答
  •  后悔当初
    2021-02-12 18:25

    Your php.ini contains two or more of these lines:

    extension=mcrypt.so
    

    Remove all except one.

    php.ini usually lives in /etc/php.ini or /etc/php5/php.ini. Sometimes additional .ini files are included, you can see all of them with:

    $ php -i | grep .ini\$
    Loaded Configuration File => /usr/local/etc/php.ini
    Additional .ini files parsed => /usr/local/etc/php/extensions.ini
    user_ini.filename => .user.ini => .user.ini
    

提交回复
热议问题