I have a very old mediawiki at a legacy company, I think version 1.9. I am trying to migrate this to a new server, including new hostname/domain. I just want to keep the legacy data in there around as its pretty useful. Read only is fine. I really don't want to print out a few hundred pages and stick them in a book ;-)
Old server(s) : web.olddomain.tld, mysql.olddomain.tld - CentOS 4.9 w/PHP 5.2.6
New Server: web.newdomain.tld - CentOS 6.3 w/PHP 5.3.3
I put a new NameVirtualHost in the new server and it works as expected. Time to move the old mediawiki over. DB dumped (mysqldump), old web files tarred and both are scp'd over to the new server. New DB is created and the old data imported. Username created and given access to DB, same as existed on the old server. The only change I make on the new server is in the LocalSettings.php file, I point at the new DB on localhost, username and the rest of the info stays the same. If I try to run this as is, without upgrading the mediawiki code, I get an error in Apache. "Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /var/www/html/documentation/includes/Namespace.php on line 44" According to the FAQ this is due to upgrades in PHP and old code. I figured at this point I needed to upgrade to a newer version of mediawiki code.
I download the new mediawiki code and follow the upgrade script/process here : http://www.mediawiki.org/wiki/Manual:Upgrading#How_do_I_upgrade_from_a_real…
New files are untarred over the old files.
I run the update.php script from maintenance directory.
I made one additional change, which is the file under the web root 'StartProfiler.php' contains the line 'require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );' and I change that to 'require_once( dirname(__FILE__).'/includes/profiler/ProfilerStub.php' );' as the new Profiler code seems to be running from includes/profile and not just includes.
The server now serves a "Not Found" error, "The requested URL /wiki/Main_Page was not found on this server." Nothing shows up in error_log.
Not sure if what I am doing is "too many steps at once" and if there is any way to upgrade to 1.19 on the existing server (with the older version of php) and THEN move it, or if I can get the older mediawiki running with the newer version of php, and THEN upgrade it. It seems like the move+upgrade makes things go a little wonky.
Any advice?
Thank you,
Nick
PS - If this is a dupe, sorry. I subscribed and then something happened and my post was rejected as I wasn't subscribed. I resubscribed a few days ago and made sure I was getting mail from the list before sending this time :)
On Sep 13, 2012 10:46 AM, "Stephan Gomes Higuti" <higuti.sam(a)gmail.com>
wrote:
> I notice that Lua extension needs LanguageGetMagic hook, but looking after
> it, just notice that LanguageGetMagic was deprecated in version 1.16 (
> http://www.mediawiki.org/wiki/Manual:Hooks/LanguageGetMagic ), and i cant
Which extension (name), what version number or revision/commit id, and
where did you get it?
It looks like maybe the "Lua" extension is unmaintained. Take a look at
Scribunto:
http://www.mediawiki.org/wiki/Extension:Scribuntohttp://www.mediawiki.org/wiki/Lua_scripting
I don't know offhand what MW Core versions are supported by Scribunto.
-Jeremy
I am out of the office until 09/19/2012.
For any issues regarding Classroom Connect, please call the Metrotech desk
at 718-935-5424.
Note: This is an automated response to your message "MediaWiki-l Digest,
Vol 108, Issue 10" sent on 09/12/2012 8:00:14.
This is the only notification you will receive while this person is away.
Hard to describe...
I like to have a slider on my main page. It should show a pictures from
other articles and an first X lines of the article followed with a read
more. A few seconds later the next slide fades in. It's supposed to be a
presentation. The user can autoplay, forward, backward, click on the
article link...
Similar Wordpress Demo:
http://www.web2feel.com/marina/
Just stay 10 seconds on that page for demonstration.
Is there an Featured Article Slider Extension?
--
http://www.fastmail.fm - Email service worth paying for. Try it for free
Hi,
A couple of quick questions, how do I stop anyone else from registering,
and how do I stop anyone who is not a registered user from editing ?
I seem to remember doing something in the LocalSettings.php file, but
cannot remember what :(
I am wondering what anti bot spam measures there are for MediaWIki.
Many thanks in advance,
Aron
Hello, i have installed MediaWiki 1.19 and extension geo
http://www.mediawiki.org/wiki/Extension:Gis
When i insert tag <geo> in the page i receive strange string like this
UNIQ708544003b87c1ef-geo-00000000-QINU
I have also found description of this bug here
http://www.mediawiki.org/wiki/QINU_fix
but i can not fix it myself.
The fact is that
$wgHooks['ParserFirstCallInit'][] = 'wfGeoSetHook';
...........
function wfGeoSetHook( $parser ) {
$parser->setHook( 'geo', 'parseGeo' );
return true;
}
does processed every time query received, but
/**
* Called whenever a <geo> needs to be parsed
*
* Return markup, but also a pointer to Map sources
*/
function parseGeo ( $text, $params, &$parser ) {
global $wgUser;
$geo = new GeoParam( $text );
if (($e = $geo->get_error()) != "") {
.........
does not processed at all.
Another entry point is
$wgHooks['ArticleSaveComplete'][] = 'articleSaveGeo';
........
/**
* Hook function called every time a page is saved
* Use the ArticleSaveComplete instead of ArticleSave since the ID is
* not available upon ArticleSave for new articles
*/
function articleSaveGeo ( $article, $user, $text )
{
$id = $article->getID();
$g = new GisDatabase();
$g->delete_position( $id );
$tag = 'geo';
$gis_content = array();
// !JF1
$parser = new Parser();
$text = $parser->extractTagsAndParams( array( $tag ), $text, $gis_content );
foreach( $gis_content as $marker => $tagresult ) {
$tagname = $tagresult[0];
$content = $tagresult[1];
$params = $tagresult[2];
$full = $tagresult[3];
if ( $tagname != 'geo' ) {
continue;
}
$p = new GeoParam( $content );
$attr = $p->get_attr();
$g->add_position( $id,
$p->latdeg_min, $p->londeg_min,
$p->latdeg_max, $p->londeg_max,
$attr['globe'],
$attr['type'], $attr['arg:type'] );
}
return true;
}
I suspect that i must do something with this function, but dont know what.
So i do not know where and how to find the cause of this behaviour.
Thanks.
I know
https://www.mediawiki.org/wiki/Manual:Installation_requirements...
Let's say I have 20 medium sized wiki pages. Medium sized defined by
wikipedia definitions, normal articles, not too much.
I expect having 10 to 100 viewers and maximum 5 editors at the same
time.
How much RAM am I going to need?
At the moment I have a VPS with debian and apache with 256 RAM. I am
still testing. When I open three different wiki pages in three different
browser tabs this takes ~128 MB RAM and the server RAM is full, thus no
other pages can be served.
So how much RAM am I going to use per wiki site? Doesn't have to be uber
correct or proven, just tell me your experiences. How many users you
have at a time and that the server still works. If you have some numbers
I can upgrade my server plan.
--
http://www.fastmail.fm - Accessible with your email software
or over the web
Dear Media Wiki:
I found your page associated with InterceptRadio.com.
InterceptRadio has posted the full name and address of my daughter--with a
map to our home--apparently after trawling the information at the FCC
website (Federal Communications Commission) for licensed amateur radio
operators.
I want to know how I can have this page permanently deleted:
http://www.interceptradio.com/ham.php?call=KI6IMW
Two years ago, I changed my daughter's address at the FCC website, but
InterceptRadio has not updated. FCC has initiated a huge privacy problem,
and with no regard for children, by posting personal information that used
to be archived on paper. However, InterceptRadio is compounding the problem
by capturing that information, archiving it on the Internet, failing to
update it, adding maps to people's homes, and failing to provide any control
for the individual.
I also want to ask that InterceptRadio post prominent contact information to
let people demand deletion of such records.
Thank you to everyone on the list for your help.
Hello,
I wiki owner is having an issue with the Ampersand.
They went into the sidebar removed the ampersand(&) from a menu item,
and it now displays the & in every item in the menu that has a & in it.
Any Ideas on what could be the cause.
They put the & back, however, the menu still displays the & wherever
there is one in menu.
Thank you.