WebFaction
Community site: login faq

I am trying to set up a MediaWiki site on WebFaction. I am new to WebFaction, new to LINUX, new to wiki setup and new to using an internet host, so I'm pretty lost. All the posts I can find presume a lot of prior knowledge I don't have - like where an install script should be run, etc...

I created an a Static / CGI / PHP app, but don't know what to do next. The only doc I can find is this, which doesn't really tell me what to do...: http://forum.webfaction.com/viewtopic.php?id=4755

When I try to click the MediaWiki Install link here (which I think is for an outdated version anyway) http://wiki.webfaction.com/wiki/InstallScripts it takes me to the WebFaction create an app screen again, and if I try to create a Static / CGI / PHP app from that screen in that situation, I get this error: Error: Extra info is invalid.

This link also shows me an install script for MediaWiki (albeit probably for an outdated version), but I don't understand where I'm supposed to go to run the script:
http://forum.webfaction.com/viewtopic.php?id=219

Any advice??

Thanks!

asked 19 Dec '10, 16:42

brushstorm
1111
accept rate: 0%


This is how you install mediawiki on your account,

1) Create or pick an "Static/PHP/CGI" type application. For this I am going to use the default installed 'htdocs' app.

2) Create a MySQL database, write down the database name and password.

http://docs.webfaction.com/user-guide/databases.html

3) Bind the application to a domain with a website record.

http://docs.webfaction.com/user-guide/websites.html#creating-a-website

4) SSH into the server and run these commands,

Change working directory to the media wiki directory,

$ cd ~/webapps/htdocs/

Download media wiki with 'wget'

$ wget http://download.wikimedia.org/mediawiki/1.16/mediawiki-1.16.0.tar.gz

Extract the tarball (mediawiki-1.16.0.tar.gz) to the current working directory (.)

$ tar -xvvf mediawiki-1.16.0.tar.gz .

5) Navigate to the URL defined in step 3, You should see the mediawiki installation.

6) Fill out the installation information, database name and database user are the same. Database character set, I suggest 'MySQL 4.1/5.0 UTF-8' and not the default as binary data can cause issues on shared mysql server when in large size.

7) Once the installation is done it will say you need to move the config file, you can do this by running this in SSH,

$ mv config/LocalSettings.php .

That should get media wiki installed for you.

permanent link

answered 19 Dec '10, 18:17

johns
5.4k312
accept rate: 23%

edited 19 Dec '10, 18:19

Note that at step 5 above, you will see a Hello World screen, but will NOT see the screen you need for filling out installation information, etc. That's because when you extract the mediawiki app to the directory on WebFaction's server, it puts it in a subdirectory.

So if you configured the website as http://<mysubdomain>/mediawiki, you will have to navigate to http://<mysubdomain>/mediawiki-1.16.0/index.php (which will have a link to the config file's URL) to see the screen for setup.

permanent link

answered 19 Dec '10, 19:26

brushstorm
1111
accept rate: 0%

You can move the files to the root of the directory with,

$ mv -fR ~/webapps/htdocs/mediawiki-1.16.0/* ~/webapps/htdocs/

(19 Dec '10, 19:33) johns

Note that in this SSH script

$ tar -xvvf mediawiki-1.16.0.tar.gz .

You have an extra dot it should be without the final dot

$ tar -xvvf mediawiki-1.16.0.tar.gz

permanent link

answered 06 Jul '11, 23:47

jupa
1114
accept rate: 0%

edited 06 Jul '11, 23:47

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×33
×8

question asked: 19 Dec '10, 16:42

question was seen: 59,739 times

last updated: 06 Jul '11, 23:47

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM