From: Jeff D. <da...@da...> - 2001-11-12 03:37:56
|
On Sun, 11 Nov 2001 22:18:25 +0100 "Tara Star" <te...@cl...> wrote: > I see you (who?) did it for http://phpwiki.sourceforge.net/wiki/ - page > urls look like: http://phpwiki.sourceforge.net/wiki/PageName Here's how it's done on the sourceforge site: Phpwiki is installed in htdocs/phpwiki-1.3/. So the wiki is available the "normal" way through http://phpwiki.sf.net/phpwiki-1.3/index.php. Then: 1. htdocs/phpwiki-1.3/index.php is copied to htdocs/wiki 2. Tell apache that htdocs/wiki is really a php script. As long as apache is configured to allow you to do this, (and you have a fairly recent apache) this is done by putting the following into htdocs/.htaccess: <Files wiki> SetHandler application/x-httpd-php </Files> 3. htdocs/wiki is edited as follows: a. Set include path so that the rest of the phpwiki code can be found. Something like: ini_set('include_path', 'phpwiki-1.3'); b. Set DATA_PATH so that URLs to images and css get generated correctly. define('DATA_PATH', '/phpwiki-1.3'); That's it! There are many ways to get this to work. Study the comments in index.php for some more hints. Also if you do this kind of funnyness you're much more likely to uncover arcane bugs, snakes and spiders. |