so if i install this darwin thing, i'll have all the necessary things? or i'll then have to individually install the necessary things?
you use it to install the programs — you type port install <nameofpackage> and i think you find package names by typing port search <word>. so, if the package for the python imaging library was called python-imaging, you'd type port install python-imaging. i don't have a mac right now otherwise i'd check for sure, but i think it is on their website. it's just a quick and easy way to get open-source software.
so i install xcode tools? i thought i already had that. i'm so confused. i'm at the darwinports link.....
Philip's how to install for Apache with CGI
Method 1 — Ugly, fast
Please integrate into the main instructions:
Go into my apache document root:
cd /var/www
Get Sycamore:
svn co http://svn.devjavu.com/sycamore/trunk sycamore_base
Open the httpd.conf file. Add the line
AddHandler cgi-script .cgi
and then
<Directory "/var/www/sycamore_base/share/web"> Options +ExecCGI </Directory>
Restart apache:
/etc/init.d/apache2 restart
cd /var/www/sycamore/base
Open sycamore_config.py. Change:
-
wiki_name to the name of your wiki — one word, lower case
-
sitename to the full name of your wiki
-
web_dir to /sycamore_base/share/web
-
relative_dir to sycamore_base/share/web/index.cgi
Do DB creation stuff.
Method 2 — Pretty URLs with CGI
Please integrate into the main instructions:
Follow Method 1. Then set your apache Document Root to be /var/www/sycamore_base/share/web.
Open sycamore_config.py. Change:
-
web_dir to '' (empty)
-
relative_dir to '' (empty)
Add the following to your apache config:
RewriteEngine On RewriteRule ^wiki/(.*)$ /var/www/sycamore_base/share/web/wiki/$1 [L] RewriteCond %{REQUEST_URI} !(index.cgi) RewriteRule ^(.*)$ /index.cgi/$1 [L]
Now 'index.cgi' will be gone from all URLs. The next step on your quest to perfection is using something "faster" than CGI.