Install failed on CentOS 5.3

Jump to: navigation, search

Hi, Just tried to install latest MediaWiki on my CenOS but failed in the first step after I chose language (English). The page I get after I choose language just shows some icons and emtpy disfunctional links, it's totaly messed up. What to do?

Here is a screenshot: http://www.2shared.com/photo/Z1mzj_gY/MediaWikiFail.html

78.0.236.8417:54, 12 July 2012

Wow that is a fail...

Do you have php warnings enabled? perhaps some warning was emitted that would help use debug the problem.

Posting the html source of that page might be useful in debugging (or might not, I'm not really sure).

Bawolff (talk)13:18, 13 July 2012

I have exactly this problem. I have tried the hack of Installer.php as suggested by an article in this discussion group but to no avail.

Is this something to do with it?

"If you are installing MediaWiki on CentOS 5.6, use the php53 package instead of php. The php package contains PHP 5.1.x, which is not compatible with the latest version of MediaWiki."

I do not know what the php53 package is.

82.20.220.21217:41, 13 July 2012

I have successfully got round this problem by using version 1.15.1 of MediaWiki.

82.20.220.21217:08, 14 July 2012

I have updated my php to 5.3.3 but it didn't help.

89.164.121.218:28, 16 July 2012
Edited by another user.
Last edit: 13:15, 17 July 2012

Here is error log:

[Mon Jul 16 20:20:59 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/
[Mon Jul 16 20:20:59 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/
[Mon Jul 16 20:20:59 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/
[Mon Jul 16 20:20:59 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/
[Mon Jul 16 20:21:00 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/
[Mon Jul 16 20:21:00 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/
[Mon Jul 16 20:21:07 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:07 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:08 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 192 in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1483, referer: https://www.xxx.com/wiki/mw-config/index.php
[Mon Jul 16 20:21:09 2012] [error] [client 89.164.121.2] PHP Warning:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in /var/www/vhosts/xxx.com/httpsdocs/wiki/includes/parser/Parser.php on line 1484, referer: https://www.xxx.com/wiki/mw-config/index.php

Does that help?

89.164.121.218:33, 16 July 2012

Might it be that it's some UTF problem with php? Does it have to do with this: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/MediaWiki_v1.19.1_installation:_Compilation_failed:_support_for_%5CP,_%5Cp,_and_%5CX_has_not_been_compiled ?

89.164.121.218:39, 16 July 2012

I believe it is the UTF problem. If possible try to recompile php so that PCRE has full unicode support (or use a package other than default centos package)

Bawolff (talk)13:15, 17 July 2012

I installed version 1.16 instead. It works. It's a shame that new version doesn't work.

89.164.177.11522:08, 17 July 2012

Anything new on this? Can I update to new version of mediawiki?

89.164.196.21212:40, 12 January 2013
 
 
 
 
 
 
 
 

Anything new on this? Can I update to 1.20 version of mediawiki maybe? I'm still on 1.16 because of this error.

89.164.196.21212:46, 12 January 2013

You could try updating, but I don't think that this would help you. This is no bug in MediaWiki, but a sub-optimal configuration on your machine. I don't think that this would have been "fixed" in newer versions of MediaWiki.

You could try recompiling PHP or to take another PHP package so that PCRE has full unicode support. Maybe your webhost also offers a newer PHP version, which has complete PCRE unicode support.

88.130.110.24313:49, 12 January 2013