« May 2008
SunMonTueWedThuFriSat
    
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today
XML

Tom Haynes

loghyr.com
excfb.com

Blogs to Gander At

Navigation

Editing

AllMarks

Referers

Today's Page Hits: 423

Powered by Roller Weblogger.

statcounter.com

clustrmaps.com

Locations of visitors to this page

technorati.com

www.alesti.org

Add to Alesti RSS Reader

South Park as I was 10 years ago

South Park Fantasy

South Park today

South Park Reality

I have more hair and it isn't so grey. :->

10 years ago, really

Toon Tom

Today, literally

Tom Today

Site notes

This page validates as XHTML 1.0, and will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device. It was created using techniques detailed at glish.com/css/.

« Installing a wiki on... | Main | A stand alone policy... »
20071219 Wednesday December 19, 2007
Added MacPorts and MediaWiki

So not all wiki markup languages are the same. The Wikka markup does not match that of MediaWiki. So Robert suggested The MacPorts Project. And port and I are old friends from FreeBSD. Anyway, the php install did not like that Leopard is now using apache2. I got past that with help from php-5.2.5 on Leopard. Note I did the following:

sudo port install php5 +apache2 +mysql5 +pear +sqlite

Now to configure MediaWiki. Umm, where is that config directory? Why here at file:///opt/local/www/data/mediawiki/config. You are supposed to be able to just load file:///opt/local/www/data/mediawiki and it detects that you need to configure it. Okay, manaually loading either results in gibberish.

Manual:Installing MediaWiki tells you how to configure MySQL for MediaWiki. And that actually results in a good initial screen. But the path is all wrong. According to the manual, this http://localhost/wiki should just work. Okay, do the following:

stealth:www tdh$ cd /opt/local/apache2/
stealth:htdocs tdh$ sudo ln -s /opt/local/www/data/mediawiki wiki

My guess is that the change from apache to apache2 has changed where things are installed. Note you can move the directory, but if you do an upgrade, then you are hosed.

Make sure you realize when you setup the MySQL part you are creating a password of 'password' for wikiuser. You can fix that mistake, if you somehow did it, not saying I did:

stealth:htdocs tdh$ mysql -u wikiuser -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.0.45 MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> set password = password("change_me");
Query OK, 0 rows affected (0.00 sec)

mysql> \q
Bye

And you still need to fix up the socket for MySQL and PHP to talk:

stealth:etc tdh$ pwd
/opt/local/etc
stealth:etc tdh$ diff php.ini php.ini-recommended 
810,811c810
< ; mysql.default_socket =
< mysql.default_socket = /tmp/mysql.sock
---
> mysql.default_socket =

Originally posted on Kool Aid Served Daily
Copyright (C) 2007, Kool Aid Served Daily

Trackback URL: http://blogs.sun.com/tdh/entry/added_macports_and_mediawiki
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed
Copyright (C) 2007, Kool Aid Served Daily