Free Web Hosting is Powered by HOST1PLUS

Posts Tagged ‘application’

How to customize the MediaWiki sidebar?

As an administrator, edit the wiki page “MediaWiki:Sidebar”. (The editinterface permission needs to be enabled and is enabled for administrators by default; for information on assigning it to other groups, see Manual:User rights.) You may need to use the syntax //yourdomain/yourwiki/index.php?title=MediaWiki:Sidebar&action=edit if you use long URLs.

If you are sure you are logged in with the relevant rights but do not see the edit link, click on the create tab at the top of the page – this will take you to the edit page.

Example sidebar code:
Sidebar example

* navigation
** mainpage|mainpage
** Special:Recentchanges|Recent changes
* new heading
** portal-url|portal
** http://www.mediawiki.org|MediaWiki home

How to create an user in MediaWiki?

Click Special Pages at the bottom left of the screen. Now click Log in / create an account. When creating an account, please use the person’s directory id as an easy-to-remember convention. The access rights for users can be modified by going to Special Pages, and clicking User rights management under Restricted special pages.

How to change the user privileges in MediaWiki?

The privileges for existing users can be modified by logging in to your MediaWiki as administrator and going to Special Pages.
Then, under Restricted special pages, click User rights management.
Enter the username which you wish to modify and click the Edit User Groups button. Next, select the desired rights listed under Available groups and click the Save User Groups button.

How to change the language in MediaWiki?

To change the language in MediaWiki just locate localsettings.php using FTP client.
Find the line in this file: $wgLanguageCode = “en”;
Then change the “en” to the appropriate language code for your language.

How to upgrade my MediaWiki site?

In order to backup your MediaWiki you need to:

1. Backup the gra_wiki database in PhpMyAdmin.
2. Backup the wiki directory on the server (by FTP).
3. Go to [the Meadiwiki download page] and download the latest version of MediaWiki to your hard drive.
4. Extract it on your hard drive to a clean folder named wiki_new.
5. Upload this folder on the server (by FTP).
6. Copy the file skins/common/images/logo.gif from the wiki folder to the wiki_new folder,
7. Copy the folders extensions and images from the wiki folder to the wiki_new folder.
8. Copy the file LocalSettings.php from the wiki folder to the wiki_new folder.

Also if you have installed MediaWiki using Softaculous application installer in DirectAdmin server control panel, just go again to it and click on update, so that MediaWiki could be updated. Remember to backup your files and databases before proceed with update.

How to reset my MediaWiki admin password?

Modify the database directly. Assuming that $wgPasswordSalt is set to true (the default), you can use the following SQL query for MySQL:

UPDATE user SET user_password = MD5(CONCAT(user_id, ‘-’,
MD5(‘somepass’))) WHERE user_name = ‘someuser’;

Where obviously “somepass” is changed to the password you want to set and “someuser” is changed to the user name as it is listed in the table “user”.

How to protect MediaWiki so only registered members can post?

By default anyone can post and edit articles in MediaWiki. If you want to set up MediaWiki in a way so that only registered members can post, you will have to make the necessary changes in the LocalSettings.php file. The following line:

$wgGroupPermissions['*']['edit'] = true;

should be changed to:

$wgGroupPermissions['*']['edit'] = false;

How to configure my MediaWiki to be accessible via the server URL?

In order to access your MediaWiki via the server URL (http://servername/~user) instead your domain, you should edit your LocalSettings.php file. It is located in the root directory of your MediaWiki. You can edit the file from:

DirectAdmin -> File Manager

Replacethe following line:

$wgScriptPath= “/wiki”

with this one:

$wgScriptPath= “/~username/wiki”

Then you can use the following link to access your MediaWiki:

http://servername.com/~username/wiki/

How to enable file uploads for my MediaWiki site?

If you get the following message:

Uploading is disabled.

you have to open MediaWiki configuration file (LocalSettings.php) at your web hosting account and do the following changes:

MediaWiki 1.5 or above:

$wgEnableUploads = true; # Enable uploads

Older versions:

Invert the value to enable uploads:

$wgDisableUploads = false; # Enable uploads