Manual talk:Running MediaWiki on Debian or Ubuntu

Jump to navigation Jump to search

About this board

Thanks for your comment!

Was using a new installed Debian 9.2 with "10.1.26-MariaDB-0+deb9u1 Debian 9.1" and got the same problem.

Defining the database first did the trick...

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"
189.146.78.196 (talkcontribs)

Not being an expert runnig configuration script has not worked until i have change pi_wiki by my_wiki

Reply to "pi_wiki should not be my_wiki"
Tactica (talkcontribs)

The mysqladmin statement suggested wasn't enough for me to pass the first database configuration stage - I kept getting a misleading bad server/user/password error. Only when I defined a database myself from within MySQL with

GRANT ALL PRIVILEGES ON wikidb.* TO 'wikidbadmin'@'localhost' IDENTIFIED BY 'strong-password';

as suggested in https://www.mediawiki.org/wiki/Manual:Maintenance_scripts MW could finally talk to MySQL. This tested with MariaDB 10.0.29 and localhost on Linux Mint.

I'm not experienced enough with Linux to tell for sure if adding this to the page would make the document much better so I won't, but maybe someone else finds this useful.

Reply to "Bad MySQL advice?"
There are no older topics