Welcome, Guest
Please Login or Register.
Lost Password?
[solved] mediawiki 1.12.0 required php4? (1 viewing)
Post Reply

TOPIC: [solved] mediawiki 1.12.0 required php4?

#15392
kato (User)
Posts: 120
graphgraph
[solved] mediawiki 1.12.0 required php4? 2008/08/05 11:37  
Boy aren't I just a popular topic today :(

Hi, when trying to install MediaWiki version 1.12.0, I get this error:
Code:

This script cannot be installed, as it requires PHP version 4.



Naturally, PHP4 isn't installed. We're running everything on PHP5 on this server.

However, I installed multiple instances of Mediawiki a week ago without any errors. There was an update to the MediaWiki installer since then, so that could be the culprit.

This isn't a domain specific problem. It happens for all my virtualhosts.

Post edited by: kato, at: 2008/08/06 05:01
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15403
Joe (Admin)
Posts: 4124
graph
Re:mediawiki 1.12.0 required php4? 2008/08/05 14:59  
That seems buglike. Yep, I see the problem...File a ticket, and Jamie will correct it.

In the meantime, you can fake it by editing mediawiki.pl and changing the script_mediawiki_php_vers to this:

sub script_mediawiki_php_vers
{
local ($d, $ver) = @_;
return 5;
}
  The administrator has disabled public write access.
#15404
Joe (Admin)
Posts: 4124
graph
Re:mediawiki 1.12.0 required php4? 2008/08/05 15:01  
BTW-Just for giggles, I'll point out the bug:

return $ver >= 1.7 ? ( 5 ) : ( 4 );

The test evaluates to false, because 1.12 is "smaller" than 1.7, because it looks like we're doing a decimal number comparison, rather than a "version"."point release" comparison. Tricky one.
  The administrator has disabled public write access.
#15408
JamieCameron (Admin)
Posts: 366
graphgraph
Re:mediawiki 1.12.0 required php4? 2008/08/05 20:43  
Definately a bug, which will be fixed in the next release.

I just wish all software used strict numerical version numbers like Webmin does :-)
  The administrator has disabled public write access.
#15422
kato (User)
Posts: 120
graphgraph
Re:mediawiki 1.12.0 required php4? 2008/08/06 05:01  
Awesome, and thanks.

Ironically, I wrote a bug just like that a couple years back :)
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.