Skip to Content

Yes! Enjoy having MediaWiki running on top of Neo. You can create now your own Wikipedia-like project.

/wp-content/uploads/2012/12/mw4neo1_166931.jpg

A crucial pre-requisite although is that PHP is installed and made usable from within Neo. See my blog on how to get PHP running in Neo to see how it can be done (you’ll also need to have Jenkins running).

Use Jenkins to bring MediaWiki files to Neo

After making the MediaWiki binaries available in my PHP project in Neo, everything is set to install and configure Media Wiki. The files are unzipped to:

/usr/sap/ljs/webapps/<myPHPproject/mediawiki.


Install MediaWiki

Calling this directory in the browser:

https://<app><account>trial.nwtrial.ondemand.com/<myPHPproject>/mediawiki/

The screen that opens shows that PHP is working and MediaWiki is not installed nor configured. To start, it’s just clicking the “complete the installation” link!

/wp-content/uploads/2012/12/mw4neo2_166932.jpg

/wp-content/uploads/2012/12/mw4neo3_166933.jpg

This triggers a pre-configuration check of your system. The message: “The environment has been checked. You can install MediaWiki” is a good motivation to continue.

Attention: Many additional / optional programs are not installed and MediaWiki will use the internal HTTP ports of Neo (8041)


Database configuration


My version of PHP available on Neo is compiled with SQLite support. Yes, this does mean it really won`t make sense using Neo for large scale wiki sites. HANA is also not on the list of supported databases for media wiki (hint SAP, hint: Wikipedia powered by HANA! Imagine the marketing opportunity).

/wp-content/uploads/2012/12/mw4neo4_166934.jpg

Installation

After some additional configuration, MediaWiki is ready to be installed. It’s important that the installer finishes with no reported errors.

/wp-content/uploads/2012/12/mw4neo5_166935.jpg

Result

Congratulations! MediaWiki is installed on Neo:

/wp-content/uploads/2012/12/mw4neo6_166936.jpg

Activate installation

To complete the installation, the file LocalSettings.php needs to be downloaded. Before the file can be copied to the MediaWiki root directory (using Jenkins), it needs to be adjusted to how the program will be executed. As can be seen in the initial configuration screen, MediaWiki is using the internal port number. The line containing the internal port 8041 needs to be adjust to use the external port 80.

From:

$wgServer = "http://wiki<account>trial.nwtrial.ondemand.com:8041";

To:

$wgServer = "http://wiki<account>trial.nwtrial.ondemand.com:80";

If you want, you can make it correct for all URLs and also change:

$wgEmergencyContact = apache@<server>.nwtrial.ondemand.com:80";
$wgPasswordSender = "apache@<server>.nwtrial.ondemand.com:80";

Result

That’s all. Now MediaWiki can be accessed by calling the URL: 

http://wiki<account>trial.nwtrial.ondemand.com:80/<PHPapp>/mediawiki
To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply