Posts Tagged ‘mediawiki’

How to run the MediaWiki update script through a browser?

MediaWiki installs itself using an interactive, web-based installation script. Before you can run this script, you need to do a couple of things. First, ensure that you have installed prerequisites (Apache/IIS, MySQL4 or later and PHP5). Then you must acquire the MediaWiki software package and upload the MediaWiki software to your server. You may also have to create a new database for your wiki. If necessary, create an account on your web server by following the instructions at Manual:Installation/Creating system accounts.

MediaWiki can be difficult to install for the average computer user who does not have experience with Apache, PHP and MySQL. Most users who wish to use wiki software may benefit from using a free wiki host (see a list of wiki hosts on Wikibooks) or via a software appliance.

MediaWiki needs to be able to write to the MediaWiki-folder/config directory when it runs its installation script. If you haven’t done so already, you need to change the permission settings for the config subdirectory so that it is writable by the webserver. If you are using FileZilla, right-click on the config directory, select “attributes…”, and check “Write” under “Owner”. If it prompts you for a number instead or if you are using a command-line interface, use 755 (Use 777 on Linux except for RedHat Linux). Alternately, you may be able to change permissions using a “control panel” provided by your web host.

Depending on the server configuration, in some cases you have to check all boxes (777) in FileZilla, to be able to run the install-script of MediaWiki.

On Unix or Linux, if you have admin rights, you can run the command chmod 755 config in your wiki directory.

How to install MediaWiki?

To install MediaWiki in Host1Free.com free web hosting follow these steps:
1. Login to DirectAdmin server control panel.
2. Locate Softaculous application installer.
3. Select MediaWiki from application list.
4. Follow application installer steps to finalize the installation.

Alternatively you can follow this instruction:
1. Download MediaWiki and extract the archive to a web-accessible folder on your server.
2. Point your browser to the config directory (e.g., http://localhost/mediawiki/config/index.php).
3 Follow the on-screen instructions to complete the process.

How to change the font color for the headings in MediaWiki?

1. Go to the page or section you wish to edit (using the links in the navigation menu to the left of the window).
2. Click on either the edit tab at the top of the window to edit the whole page or the [edit] link that appears at the right side of the window next to the heading of the section you wish to edit.
3. To change the colour of text, you need to use HTML font colour tags. The following example shows how to add green text to your page.

An example of green text
Note: The spelling of color is in American Language.
4. Click the Save page button below the text area.

How to change the font color for the content in MediaWiki?

In order to change the font color for the content in MediaWiki, you should edit the skin’s main.css file.

For example, if you are using the default Monobook skin, the file you should edit is:

/home/user/domains/domain_name/public_html/skins/monobook/main.css

Look for the following code:
#content {
background: white;
color: black;
border: 1px solid #aaa;
border-right: none;
line-height: 1.5em;

You should edit the color:black; line. For example, if you wish to change the font color to red, the line should be changed to:

color: red;

How to change the favicon in MediaWiki?

* Simply upload your favicon.ico to the root of your domain/subdomain, make sure file name is in lower case and its name is favicon.ico
* Alternatively edit the $wgFavicon setting in LocalSettings.php and add $wgFavicon = “$wgScriptPath/path/to/your/favicon.ico”;

See Manual:$wgFavicon for more details.

Tip: The favicon image should be either 16 x 16 pixels or 32 x 32 pixels.
Rewrite Rule

If you are using a rewrite rule in .htaccess to remove “index.php” from the URL, you will also need to add an exception for .ico files. Simply add the following rule to your .htaccess:

RewriteRule .*\.ico$ – [L]

This rule must appear before the index.php rule.
Case sensitivity

When uploading the favicon file, be sure the filename is in lowercase. (That is, “favicon.ico”, not “Favicon.ico”.) A lot of servers (e.g., those on UNIX-like operating systems) will not be able to find the file unless its name is in lowercase.

How to enable HTML tags in MediaWiki?

How to enable HTML tags in MediaWiki visit: http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext

How to change the ‘Main Page’ title to something else?

The default name for the MediaWiki main page is Main Page.
You can change this by editing the MediaWiki:Mainpage page.
Go to: www.yourdomain.com/wiki/index.php?title=MediaWiki:Mainpage
and click the edit button to edit the page. Change Main Page to the new page name you wish to use and save the change.

How to change the default skin for guests in MediaWiki?

A default skin can be set for new users of a wiki by setting the variable $wgDefaultSkin in LocalSettings.php to the lowercase skin name specified in the skin file. Users can still change their skin later by going to their preferences page. To change all existing users’ skin settings, use the userOptions.php maintenance script. The syntax to use on the command line would be:

$ php userOptions.php skin –old –new

Example:

$ php userOptions.php skin –old “monobook” –new “modern”

How to disable cache in MediaWiki?

Add in your LocalSettings.php file the following lines:

$wgEnableParserCache = false;
$wgCachePages = false;

How to remove the additional footer links in MediaWiki?

By default, MediaWiki shows additional items in the footer such as the time of the last page modification, the privacy policy, etc.
You can remove these items by modifying the skins file of your MediaWiki. The default skin’s file is skins/MonoBook.php.
Open the file with a text editor and find this section:

// Generate additional footer links
?>

    $footerlinks = array(
    'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright',
    'privacy', 'about', 'disclaimer', 'tagline',
    );

    The items in the array represent the footer links in your MediaWiki. If you wish to remove a certain item from your footer, you should delete its entry from the array.
    For example, if you wish to remove the Privacy policy link, you should delete the ‘privacy’ item from the array. Then open your MediaWiki in a browser and clean the page cache to see the change.