Saturday, November 08, 2003

PhpWiki

(originally posted at bigbadgeek.com)

It took a short while, but I've finally gotten PhpWiki up and running on my laptop under Panther.

The pre-requisites were PHP and MySQL, which were easy enough via installable packages.

Once I got phpwiki installed - which was as simple as dragging the folder into my ~/Sites directory - things got a little trickier. Launching index.php in my browser yielded nothing at all.

This gave me a good opportunity to check out Apple's latest version of Console - a log viewer. They seem to have added a tree-view pane to quickly jump between logs. My httpd/error_log showed quite a few errors, luckily all but one were from the same bug.

As I found out searching through phpwiki's known bugs, newer versionf of PHP have deprecated call-time pass-by-references - so the code in a few of phpwiki's .php files needed to be slightly altered. Annoying, but no big deal.

The next error was a bad function call to dba_open, which I later found referenced in TFM. Turns out some installations get this by default if they don't pre-configure database support. I had wanted to test out phpwiki with flat-files first, but it wasn't really important so I created my database, installed the schema, and updated my index.php. Voila, it worked.

All that and a cat sleeping in my lap. Sometimes life is good. Hopefully tomorrow I'll get some time to mess raound and see what phpwiki can do.

No comments: