I have ubuntu 14.04 EC2 instance. I have installed php 7 on it. when I execute any php command like php --version or any other. I get following error
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mysqli.dll' - /usr/lib/php/20151012/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0
I have tried following
- enable php_mysqli.dll in php.ini
- enable mysqli.so
- enable php_mysqli.so
- sudo apt-get install php-mysql
but nothing worked for me.
Any suggestion how I can solve this?
If you see mcrypt.so under /etc/php/7.2 or /etc/php/7.3 just delete it and restart the server it will resolve the issue. As when we updrage the php to latest version that file may get stored to latest versions which is not required.
I used following commands: