Topic on Project:Support desk

trying to install mediawiki 1.31 on Centos 7 - missing component mbstring

5
Windy54 (talkcontribs)

I am trying to install mediawiki 1.31 on a centos 7 machine.

I get the following error when I access the wiki:

MediaWiki 1.31 internal error

Installing some PHP extensions is required.

Required components

You are missing a required extension to PHP that MediaWiki requires to run. Please install:

When I try and install the extension using

sudo  yum install php72-php-xml

I get a message saying

Package php72-php-xml-7.2.8-1.el7.remi.x86_64 already installed and latest version

and similar for mbstring.

Has anyone got a suggestion as to what to try, I have had a look on the internet and found similar questions with earlier mediawiki versions but nothing makes sense to me.

I am totally new to PHP, HTML etc.

thanks

Steve

星耀晨曦 (talkcontribs)

Use php -m to check loaded extensions.

Windy54 (talkcontribs)

Ok, so that is telling me it is not loaded which agrees with the mediawiki error message.

But it is installed according to the yum output so I guess I need to find out how to load it.

I can see a google search coming on!

Thanks

Steve

Bawolff (talkcontribs)

Check your php.ini file. Usually you need a line like extension=extensionName

Sometimes package managers might have their own ways to disable/enable extensions (e.g. if a certain file is in an extensions-enabled subfolder of /etc/php, or other triggering mechanisms)

213.141.34.100 (talkcontribs)

php.ini

[mbstring]

mbstring.language = all

mbstring.internal_encoding = UTF-8

mbstring.http_input = auto

mbstring.http_output = UTF-8

mbstring.encoding_translation = On

mbstring.detect_order = UTF-8

mbstring.substitute_character = none;

mbstring.func_overload = 0

mbstring.strict_encoding = Off

Reply to "trying to install mediawiki 1.31 on Centos 7 - missing component mbstring"