PHP warning : Module 'mcrypt' already loaded

后端 未结 4 1364
失恋的感觉
失恋的感觉 2021-02-12 18:03

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条回答
  •  -上瘾入骨i
    2021-02-12 18:48

    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
    

提交回复
热议问题