It seems as if you have multiple versions of PHP installed. It also is likely that all those versions of PHP refer to the very same configuration file (php.ini
). This configuration file then loads extensions which are available just for some of the PHP installations but not for all.
Furthermore, it seems as if you use a different version of PHP from command line than for your web server.
- If you run
php -i
from command line, you get information about default PHP CLI (command line interface) installation.
- If you add a file
phpinfo.php
with <?php phpinfo(); ?>
somewhere in your htdocs
(web server) directory, you see the default PHP version for the web.
Even more strange is that you are trying to load a Windows extension php_mbstring.dll
even though you seem to be on Linux.
You should check for each installed PHP which configuration file it uses. The information is part of the output of php -i
or phpinfo()
. Make sure different versions of PHP use different configuration files.
Check where the DLL file is loaded from via grep -iRn 'php_mbstring.dll' /etc
. Remove this line or change it to the Linux extension (likely extension=mbstring.so
).
/etc/
– M A SIDDIQUIphpnfo()
at that time it shows 5.6 and when runphp -v
then it shows 7.1.x – Ishan Shahsudo apt-get install php5-mbstring
and then try – M A SIDDIQUI