LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2009, 12:48 PM   #1
Matey
Member
 
Registered: Jan 2009
Posts: 114

Rep: Reputation: 17
Exclamation How To Install MediaWiki On Linux?


Does anyone know?
I have been trying all day with No success.(lot of suc tho)!
I have visited many web pages some started pretty good in their instructions but then soon ran out of steam!

I have installed apache2, PHP5, Mysql,zope, plone etc, etc, you name it, But there is Not really any useful instructions in that Wiki I downloaded.
None tell me the relationship between for instance, sql and wiki?
they all tell me I must have mysql or other dbase running? So does that mean I type mysql and then leave the rest to God to bring up the wiki?

The media wiki installed itself under /usr/www/ but many web sites tell me it should be under/var/www/
so I moved mine...


Any way I am more confused and tired than 7 hours ago!

Does anyone know a good link please?
in any case the closest I got was when I did http://localhost/wiki/config/
(as 1 of the instructions told me to) I got my browser's Save/Open pop-up deal wanting to know what I would like to do with the file which is already on my own hard drive?!
LOL
Any way, any idea would be greatly appreciated.
as you can see I am new and in a hurry to gain some knowledge (b4 they fire me) LOL
 
Old 02-12-2009, 01:23 PM   #2
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Have you looked at the Mediawiki Installation Guide?
 
Old 02-12-2009, 01:36 PM   #3
Matey
Member
 
Registered: Jan 2009
Posts: 114

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by AuroraCA View Post
Have you looked at the Mediawiki Installation Guide?
umm, I dont know how I didnt see this page?
I must have missed this one somehow?

looks pretty good , thanks!

(Aurora? I cant even spell it but it is a fantastic thing, there was a program on BBC a few weeks ago about that up near the north pole, the lady reporter was just speechless...)
 
Old 02-12-2009, 02:29 PM   #4
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
When I installed Wikimedia on Linux I was very confused at first. The Wikimedia site is so large and disorganized that it took me a while to figure out how to install it also.

If you are looking for a good wiki and are not settled on Wikimedia you may want to look at MindTouch Deki which is also an open source wiki which has much better support and far better capabilities than Wikimedia. Deki has WYSIWYG editing and very powerful Web 2.0 capabilities.

Mozilla (the developers of FireFox) converted their developer center from Mediawiki to to Deki.
 
Old 02-12-2009, 07:24 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
first of all you need apache php and mysql installed on your linux box
how to do that depends on you distro
that being said
download the latest mediawiki tarball and uncompress it into your document root for your webserver
this might either be /var/www or /var/www/html depending on your distribution
optionally create a database for your wiki using the mysql superuser (usually root) with

mysqladmim -hlocalhost -uroot -proot_password create wiki_db

rename the folder wiki (or whatever you want)
in the root of the new wiki directory there is a folder config, chmod a+w this (chmod a+w config)
then browse to http://localhost/wiki (or whatever folder you named your wiki directory) and follow the instructions
mediawiki can create the database on install if necessary as long as you provide it with a username and password capable of creating databases

once you fill out the form appropriately it should take you to a page that gives you more instructions, follow them

basically move LocalSettings.php out of the config directory into the wiki root and make sure it isnt writable
then click on the link to the wiki

that should be it

Last edited by frieza; 02-12-2009 at 07:26 PM.
 
Old 02-13-2009, 06:08 AM   #6
Matey
Member
 
Registered: Jan 2009
Posts: 114

Original Poster
Rep: Reputation: 17
Thank you guys, Yes I ran into that MindTouch and downloaded it. but have not used it yet.

And thanks for the info on sql stuff Frieza!

I have figured out that there are different versions of apaches which require a little different configurations.
Mainly the locations of files/folders ,also I thought httpd was a separate program but later I found out it runs within Apache2. (-k restart)
Also there are folders (depending which version of Apache etc,) Under /etc/apache2/
some have a file called httpd.conf (and that is where I screwed up) and some have a folder in the same directory called sites-available/ and then under this folder there is file called default which you should put the httpd configurations like <virtualHost *> ..whatever in this file.
any way I am almost there but since I am using localhost without a real IP address I am having a little hard time
But appreciate you all's inputs.
I hope this will help some one else?
Regards;
 
Old 02-13-2009, 11:30 AM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
using localhost it apache should work out of box if you have the php-mysql package installed (might be named php5-mysql) or something like that
the wiki like this forum for instance uses the database to store user created posts
good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mediawiki install on Debian Etch over ssh crispyleif Linux - Server 5 02-02-2009 03:14 PM
how to install mediawiki on fedora 9 poswer Linux - Software 3 10-22-2008 08:57 AM
mediawiki noir911 General 1 07-01-2005 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration