This page describes a little bit about how to install the downloadable source tarball (http://www.wikilens.org/wikilens-src.tgz).
Pre-requisites
You should probably use UNIX (or Linux), Apache, PHP 4.4.x, and MySQL 4.X.
Our source derives from an older version of PhpWiki (currently version 1.3.9). We keep hoping to be able to merge back with them, so keep some still-broken code paths around to make the (hypothetical) merge easier.
Use the MySQL back-end for sure, none of the others work with our extensions. Also, most of the themes don't work-- just wikilens and csgsa are functional with our extensions.
You need http_build_query from PHP_Compat. The easiest way to get that on Ubuntu Linux is
% sudo apt-get install php4-pear % sudo pear install PHP_Compat
and then make the following edits to php.ini:
include_path = ".:/usr/share/php/" memory_limit = 32M
The include_path should be wherever pear installed PHP_Compat. The memory_limit is a per-request limit, and its default is 8M, which is too low for our purposes.
Editing WikiLens configuration
Here are things we edited in index.php to make wikilens.org run (as of WikiLens version R20050626):
- ADMIN_USER
- ADMIN_PASSWD
- PRESET_AVAILABLE_THEMES (to only 'wikilens')
- MINOR_EDIT_TIMEOUT to 7*24*3600 (I don't like page versions going away)
- WIKIDB_NOCACHE_MARKUP to false (some caching is broken)
- Filled in an AMAZON_WS_TOKEN for Book/Album import
- Filled in a 'dsn'
- Changed SCRIPT_NAME
If you have trouble with spammers, set ALLOW_NONRATERS_TO_EDIT to 'false', and everyone will have to rate at least one page before being able to edit anything.
You'd probably also want to edit EMAIL_SERVER_NAME and some of .htaccess. Not sure what else. Read the index.php carefully and give it a shot.
