Topic on Manual talk:Running MediaWiki on Debian or Ubuntu

76.30.246.206 (talkcontribs)

How to proceed with the section "Configure MediaWiki" in command line only Unix systems where there is no browser access?

76.30.246.206 (talkcontribs)

I could not locate LocalSettings.php in my Mediawiki folder. Is there a way to install Mediawiki from command line instead of we based installation?

Legoktm (talkcontribs)

You should use the maintenance/install.php script.

76.30.246.206 (talkcontribs)

Thanks for your reply. I have used port forwarding to use web installer from my laptop and installed it.

Now I am getting 301 moved permanently error and 500 internal server error.

From my laptop I logged in with the node in which I want to install Mediawiki as below:

ssh -C -L 9999:localhost:80 s7

Then I opened the browser from my laptop as http://s7:9999/mediawiki and installed the mediawiki.

After I tried to ssh with s7 as usual and if I try to access with wget I got the following error:

HTTP request sent, awaiting response... 301 Moved Permanently

Location: http://s7:9999/mediawiki/index.php/Main_Page [following]

--2018-06-14 16:57:31--  http://s7:9999/mediawiki/index.php/Main_Page

Resolving s7 (s7)... 10.10.2.8

Connecting to s7 (s7)|10.10.2.8|:9999... failed: Connection refused.

Then I changed

$wgServer = "http://s7:9999"; to

$wgServer = "http://localhost";

in LocalSettings.php. But still I am getting the same error.

wget http://localhost/mediawiki

--2018-06-14 17:01:33--  http://localhost/mediawiki

Resolving localhost (localhost)... 127.0.0.1

Connecting to localhost (localhost)|127.0.0.1|:80... connected.

HTTP request sent, awaiting response... 301 Moved Permanently

Location: http://localhost/mediawiki/ [following]

--2018-06-14 17:01:33--  http://localhost/mediawiki/

Reusing existing connection to localhost:80.

HTTP request sent, awaiting response... 301 Moved Permanently

Location: http://localhost/mediawiki/index.php/Main_Page [following]

--2018-06-14 17:01:33--  http://localhost/mediawiki/index.php/Main_Page

Reusing existing connection to localhost:80.

HTTP request sent, awaiting response... 500 Internal Server Error

I would like to know how to solve this error. I would like to appreciate any help.

76.30.246.206 (talkcontribs)

I am messed up with apache2 configuration I guess. Can any one please tell me how to configure apache2.conf and 000-deafult.conf and what should be given to $wgScriptPath in LocalSettings.php?

Reply to "Configure MediaWiki"