Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Installing a Wiki on Your iBook
Subject:   The Simplest Wiki You Can Set Up...
Date:   2003-08-13 14:19:26
From:   anonymous2
...is the QuickiWiki from Leuf and Cunningham's book. You can make it work by dumping all the files (yes, including the template.html and logo.gif) into /Library/WebServer/CGI-Executables. But that solution is *inelegant*. Better to set it up in your own account, in your Sites folder (or that of a dedicated alternate identity).


1. Copy the necessary files into the folder of your choice. I opted to drag the whole BaseQuicki folder into ~/Sites (after treating the .cgi files with PerlConvertEolScript to change the line termination).


2. Get into folder /private/etc/httpd/users and sudo-edit <username>.conf. Where you see a line beginning AllowOverride, replace the stuff after it with "All" (or whatever you feel comfortable allowing if you know Apache configuration settings). Save that one line change.


That enables:


3. Create a file in your wiki folder named .htaccess which contains the following:


Options ExecCGI
<Files "*.cgi">
SetHandler cgi-script
</Files>


This will tell Apache to (a) enable CGI access in that particular folder, and (b) treat files with the .cgi extension as executables, the *output* of which should be sent to the browser.


If there are any problems with that setup, I'd like to hear them. I'm just trying to use Apache and the Unix underpinnings of Mac OS X to fullest effect. Oh yes, and experimenting with my wiki.