Search

The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2005-01-11 23:55:56

mmower
New member
From: London
Registered: 2005-01-09
Posts: 13
Website  Expertise

MediaWiki

Hi folks,

I was able to install and get MediaWiki up and running in just a few minutes, including figuring out phpMyAdmin, which was very pleasing. It also runs much faster here than at home :-)

I'm a happy man!

Regards,

Matt

Offline

 

#2 2005-01-12 00:00:47

mmower
New member
From: London
Registered: 2005-01-09
Posts: 13
Website  Expertise

Re: MediaWiki

Actually I wonder if I spoke too soon. When I created the database for MediaWiki in MySQL I didn't specify anything for the "Collation" drop down because I really had no idea what to go in there, I just crossed my fingers.

Now when I look at the database tables it seems to have picked

utf8_swedish_ci

Have I set myself up for future problems?

Regards,

Matt

Offline

 

#3 2005-01-12 00:20:36

Nukenin
Member
From: USA
Registered: 2004-11-12
Posts: 460
Website  Expertise

Re: MediaWiki

Nope--that's the default collation for MySQL...


R. Cliff Young  /\/ Rogue Bard
          Chaos Never Died

Offline

 

#4 2005-01-17 18:08:13

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3421
Website  Expertise

Re: MediaWiki

Ah Hah!!!
Now I see another MediaWikii up. Congrats!!!
Where is your Wiki site?

Last edited by ngungo (2005-01-17 18:09:11)

Offline

 

#5 2005-01-17 19:18:20

mmower
New member
From: London
Registered: 2005-01-09
Posts: 13
Website  Expertise

Re: MediaWiki

Apologies Nukenin, I thought I'd responded already -- Many thanks for setting my mind at rest. I'm not used to seeing "Swedish" in a default setting ;-)

ngungo my wiki is not live yet. I'm studying for a postgrad diploma in psychology and have exams over the next week so I've not had a chance to do more than prove that it works.

Regards,

Matt

Last edited by mmower (2005-01-17 19:18:51)

Offline

 

#6 2005-03-10 22:45:06

gavinbell
New member
From: London, UK
Registered: 2005-01-24
Posts: 32
Website  Expertise

Re: MediaWiki

Ryan Schwartz shown just how great this place is once again, by working out clean urls for mediawiki in response to a support ticket. I really appreciate this level of support, Ryan encouraged me to post his reply on the forums, so that it can help everyone else.

RyanSwartz wrote:

I looked at Matt's .htaccess from http://codex.wordpress.org/ and worked it out from there.

Here's your public_html/wiki/.htaccess:

cat .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wiki/index.php?title=$1 [L,QSA]

And here's the one change I made in your LocalSettings.php:

  1. If using PHP as a CGI module, use the ugly URLs
    $wgArticlePath = "$wgScriptPath/$1";

    #$wgArticlePath = "$wgScript?title=$1";

    And now all of the non-hardcoded index.php URLs work fine


However you still need to edit the various templates to remove the hardcoded index.php urls in the shipping mediawiki. Note this is with a version of 1.4b6

Lastly in this wiki page, brion, who knows all in terms of mediawiki, recommends having a separate code directory w and wiki directory to make things clearer, see http://meta.wikimedia.org/wiki/Talk:Rewrite_rules

I hope that this helps people with mediawiki and clean urls.
I'll update this post with the details of what to delete to make mediawiki templates clean too, ping me if I haven't done this by end of March
cheers
Gavin

Last edited by gavinbell (2005-03-10 23:55:23)


takeoneonion.org | my flickr photos
Gavin Bell aka zzgavin on irc

Offline

 

#7 2005-03-10 23:36:04

cameron
AT Thru-hiker
From: cville, va
Registered: 2004-06-01
Posts: 734
Website  Expertise

Re: MediaWiki

Super. (ngungo - email me if you want helping with your mediawiki)

Off to test with two other sites...

Thanks Ryan!

Last edited by cameron (2005-03-10 23:36:40)


"If you build it, they will come."
-VC200, VCII, DMG- Plus, Premier

Offline

 

#8 2005-06-19 18:44:53

Lou Quillio
Member
From: Nuevo Yorko
Registered: 2004-09-15
Posts: 110
Website  Expertise

Re: MediaWiki

I'm gonna log my steps right here in doing a clean install of MediaWiki 1.4.5 on TxD with clean URL support, to mydomain.tld/wiki/. The TxD forums posts on this subject and MediaWiki pages related to clean URLs are a bit jumbled, and haven't worked out for me.

1. Database created through phpMyAdmin
2. Files uploaded to mydomain.tld/wiki/
3. Browsing to mydomain.tld/wiki/
4. Following the link to mydomain.tld/wiki/config/index.php
5. All enviromental conditions pass, except Turck MMCache
6. Entering configuration parameters, accepting defaults where available
7. Success; following link to mydomain.tld/wiki/index.php
8. Moving mydomain.tld/config/LocalSettings.php to parent directory; deleting /config directory
9. Reloading main page; MediaWiki now running with querystring URLs
10. Creating user account, user page created, redirected to Main Page
11. Applying Ryan's suggested .htaccess and LocalSettings.php changes, as related above by Gavin:

.htaccess

Code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wiki/index.php?title=$1 [L,QSA]


LocalSettings.php

Code:

$wgArticlePath = "$wgScriptPath/$1";

#$wgArticlePath = "$wgScript?title=$1";


12. Reloading Main Page with querystring URL: success
13. Browsing to mydomain.tld/wiki/: success, clean URL in address bar
14. Editing user page and About page: success
15. Setting Preferences (a "Special" page): success

Well, I suppose the act of tracing my steps aloud squared everything away, 'cuz I've not had the problems I did on my first install. Now it's on to templating, where things will surely get funky. Gavin, what's meant by this?

However you still need to edit the various templates to remove the hardcoded index.php urls in the shipping mediawiki. Note this is with a version of 1.4b6


There's no instance of `index.php` in the default MonoBook.php skin, for instance.

LQ

Last edited by Lou Quillio (2005-06-19 18:47:28)

Offline

 

#9 2005-06-20 00:28:41

Lou Quillio
Member
From: Nuevo Yorko
Registered: 2004-09-15
Posts: 110
Website  Expertise

Re: MediaWiki

Now this don't make no sense. Having had no trouble installing MediaWiki in one of my vhosted domains (above), I followed the same exact steps to install it in a subdirectory of my main TxD domain. The environment check (Step 4) throws this error:

Code:

Warning: dl() [function.dl]: Dynamically loaded extensions aren't enabled in /home/louquillio/public_html/mediawiki/install-utils.inc on line 17
Could not load MySQL driver! Please compile php --with-mysql or install the mysql.so module.


WTF? Why should there be any difference?

LQ

Offline

 

#10 2005-06-20 01:09:58

Lou Quillio
Member
From: Nuevo Yorko
Registered: 2004-09-15
Posts: 110
Website  Expertise

Re: MediaWiki

The difference was that I had an .htaccess upstream in the vhosted domain containing this:

Code:

DirectoryIndex index.php index.html
AddType application/x-httpd-fastphp4 .php
Action application/x-httpd-fastphp4 /php-fastcgi/php4-fcgi


The second installation didn't know about php-fastcgi. This is evidently a prerequisite of successful MediaWiki installation on TxD. I doubt I had to force php4, but it's working now so I'll leave it alone.

LQ

Offline

 

#11 2006-01-31 02:52:06

Christopher
--
From: Toronto, Canada
Registered: 2004-06-02
Posts: 795
Website  Expertise

Re: MediaWiki


Horrell.ca | chorrell on Twitter

Offline

 

#12 2006-01-31 03:11:51

stewartj
Member
From: -32.06016,115.892136
Registered: 2004-10-16
Posts: 1754
Website  Expertise

Re: MediaWiki

Watch out for spammers with mediawiki. I got hammered, and I've had to put my wiki into full lockdown. :-(


★ Stewart Johnson ★ VCII MGX ★ cloudview ★

Offline

 

#13 2006-01-31 04:00:44

UnLogikal
Habitual Malcontent
From: Flint, Michigan
Registered: 2005-06-08
Posts: 5676
Expertise

Re: MediaWiki

I run a mediawiki for a class project... i have it very password protected. have to have an account to edit, but then i have one of those nice htaccess password things to even view it :-P forced the account creation so i know who edits what.


Kyle

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson