Mediawiki installer script URL

I'm able to successfully run the Mediawiki installer script but not to access the site itself. It installs the files, builds the mysql tables etc. but the link it provides redirects me to HTTP404 page:

Found http://download.wikimedia.org:80/mediawiki/1.18/mediawiki-1.18.1.tar.gz in cache ..

Configuring webserver PHP settings ..
.. already done.
Applying web server configuration ..
.. done

Now installing MediaWiki version 1.18.1 ..
MediaWiki installation complete. It can be accessed at http://domain.tld/mediawiki/.
More information on using this script can be found at http://www.mediawiki.org/.

The initial administration login is domain.tld with the password KZI7bsb7w2qu3.

.. done
Applying web server configuration ..
.. done

But when I click on the link http://domain.tld/mediawiki/ it immediately redirects me to http://domain.tld/mediawiki/mediawiki/index.php?title=Main_Page which doesn't exist. The Wordpress site at http://domain.tld/wordpress/ works fine so i don't think it's DNS etc.

Status: 
Closed (fixed)

Comments

I can confirm this issue -- a default Mediawiki installation does seem to produce a 404 error when accessing /mediawiki/.

I'm looking into the cause of this.

What PHP version are you using on your server there?

With CentOS 5, you could either be using the default 5.1.6, the latest in the Virtualmin repo, 5.2.17, or you could be using the new PHP version available in CentOS 5.6, 5.3.3.

You can determine that by running "php -v".

It looks like it's only an issue if I use the default settings "Install sub-directory under public-html". It defaults to "mediawiki". If I choose "At top level" then the install works and the url goes to a working installation at http://comain/tld. It looks like it may be a problem with the wgScriptPath option in LocalSettings.php.

[root@titan domain.tld]# diff -a LocalSettings.php.works LocalSettings.php.broken
28c28
< $wgScriptPath       = "";
---
> $wgScriptPath       = "/mediawiki";
32c32
< $wgServer = "http://domain.tld";
---
> $wgServer = "http://domain.tld/mediawiki";

I notice that if i use the default sub-directory, then edit the wgScriptPath value to "", it works, kinda (no style sheets etc.).
also, there is no default value for "wiki name", which could be nice...

[root@boxen domain.tld]# php -v
PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
PHP 5.2.14 (cli) (built: Oct 18 2010 02:36:02)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[root@boxen domain.tld]# cat /etc/issue
CentOS release 5.7 (Final)
Kernel \r on an \m

Sounds like this could be a bug in the Virtualmin mediawiki installer .. I will look into it shortly.

Ok, it's a bug .. however, I have released an update to the installer to fix it.

To get the update, go to System Settings -> Script Installers -> Installer Updates, change "Download script updates?" to "Yes" and click "Save".

I download the latest script updates, i think... there was no feedback to indicate success or failure. Then I deleted the MediaWiki instance and resinstalled using the same ol' procedure and the result is the same. How can I ensure that I have the latest installer?

[root@titan init.d]# ls -la /etc/webmin/virtual-server/latest-scripts/mediawiki.pl
-rw-r--r-- 1 root root 9257 Jan 14 15:59 /etc/webmin/virtual-server/latest-scripts/mediawiki.pl
[root@titan init.d]# md5sum /etc/webmin/virtual-server/latest-scripts/mediawiki.pl
615ecf26c587dd8684f097250bc830c0  /etc/webmin/virtual-server/latest-scripts/mediawiki.pl

[root@titan init.d]# ls -ls /usr/libexec/webmin/virtual-server/scripts/mediawiki.pl
12 -rwxr-xr-x 1 root root 8910 Dec  8 12:48 /usr/libexec/webmin/virtual-server/scripts/mediawiki.pl
[root@titan init.d]# md5sum /usr/libexec/webmin/virtual-server/scripts/mediawiki.pl
0b0cb90b6451fb0bad4547362a0da767  /usr/libexec/webmin/virtual-server/scripts/mediawiki.pl

That doesn't look like the latest version of the script ... it should have an MD5 checksum of 26f4d7c138ab0d4eaa6875ce451b0488 , and be at /etc/webmin/virtual-server/latest-scripts .

Are you running Virtualmin 3.89 there? Does re-saving that "Installer Updates" page help?

System hostname titan.reachone.com Operating system CentOS Linux 5.7
Webmin version 1.570 Virtualmin version 3.89 Pro

I guess it works...it submits a request, waits, then refreshes the page, but there's no feedback to indicate whether it works or not.

[root@titan ~]# md5sum /etc/webmin/virtual-server/latest-scripts/mediawiki.pl       
615ecf26c587dd8684f097250bc830c0  /etc/webmin/virtual-server/latest-scripts/mediawiki.pl

Ok, I see the issue now ... Virtualmin doesn't yet know to download a new version of a script installer if the underlying version of MediaWiki hasn't changed.

The fix is to delete the file /etc/webmin/virtual-server/latest-scripts/mediawiki.pl , and then run /etc/webmin/virtual-server/scriptlatest.pl --debug

[root@titan ~]# /etc/webmin/virtual-server/scriptlatest.pl --debug
Found 99 available scripts
twiki has latest 5.1.1 installed 5.1.0
mediawiki has latest 1.18.1 installed 1.17.0
Updating twiki ..
Updated twiki to latest version
Updating mediawiki ..
Updated mediawiki to latest version

That fixed it. In removed and reinstalled and now it works fine. Thanks. I'm learning something every day!