Manual talk:$wgServer

If you've just installed MediaWiki, and you are getting submit errors when you attempt to edit a page, and get "The page cannot be found" with the URL specified as

h ttp://localhost/mywikipedia/index.php?title=Page&action=submit

check the apache-error.log to see if you see an error such as:

[error] [client 10.32.223.71] File does not exist: C:/wamp/www/mywikipedia/ localhostlocalhost

Note how "localhost" is listed twice. Go into your www\mywikipedia\LocalSettings.php file and change $wgServer from:

$wgServer = 'localhost';

to

$wgServer = '';

Restart the servers.

This will clear the error and have edit/submits work properly.


 * That would produce incorrect URLs; instead simply format the value correctly! Include the protocol part of the URL, like so: 'http://localhost'. --Brion VIBBER 23:08, 17 November 2006 (UTC)

History
Is the history section of this page really neccessary, if I were coming to here for information about this setting (the primary purpose of this manual) a section on the history would be quite irrelevant. Any developer looking here would probably find it equally useless as the current version appears to work fine. Appoligies if I am overlooking something. Lcarsdata (Talk) 15:05, 17 March 2007 (UTC)


 * It matters if you are not using the latest version of MediaWiki. --HappyDog 13:55, 2 April 2007 (UTC)