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:
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