Missing required extensions to PHP for MediaWiki

In the directory where PHP is installed I have created a php.ini file and verified that configuration files are coming from the pip.ini. Extensions that are missing are enabled like so:

extension=mbstring
extension=fileinfo
extension=intl

php_mbstring.dll, php_fileinfo.dll and php_intl.dll files are present in the ext directory. How can I troubleshot this problem further?
I have looked for answers: here and here.

edit

I have also edited php.ini-development and php.ini-production uncommenting the relevant extensions from above. The mbstring.dll was downloaded from here. I unzipped the dll to php-directory/ext

  • 1

    “I have created a php.ini” You should edit the existing one.

    – 

  • Yes, you need to edit the php.ini that PHP is actually using. Beware there can be more than one in your install – for web and command-line, plus maybe an example one. And did you actually also install those extensions, not just enable them in config? The process for making PHP extensions work is not exactly a mystery

    – 




  • I have edited my question with your suggestions @ADyson. Is there any other configuration files I missed?

    – 




  • Don’t just haphazardly / randomly change all the ini files you happen to find. Find the one which is actually used for the environment you’re working in, and change that one. (If it’s for the web PHP, then if nothing else, running phpinfo(); in a php page will tell you which ini file it’s reading from.) Then make sure the extension files are actually installed in the correct location, and are the correct ones for your operating system. Then restart your webserver.

    – 




  • 1

    Please check that the .dll files you’ve downloaded are compatible with your version of PHP.

    – 

Leave a Comment