Content

You can access your MediaWiki via the server URL (http://servername/~user) instead with your domain, by modifying the LocalSettings.php file located in the installation directory of the application.

You can edit the file using File Manager in cPanel, or via FTP.

For example, if you’ve installed MediaWiki under public_html/wiki directory, when you open the LocalSettings.php file, make sure that you modify the following line:

from:

$wgScriptPath= “/wiki”

to:

$wgScriptPath= “/~username/wiki”

and

$wgServer = “http://yourdomain.com”;

to

$wgServer = “http://servername”;

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

http://servername/~username/wiki/

where username is your cPanel user and servername is the server where your account is hosted. They are listed in your User Area -> My Accounts -> Information & Settings.

Was this article helpful to you?

Hasan Ali

Leave a Reply