On Wed, Dec 25, 2002 at 07:47:30PM -0600, Derek Moore wrote:
Check this out:
I typo'd that earlier. Check it out. I'm sure the above is a fairly common typo, so somebody might wanna fix the mod_rewrite rules to allow for it.
I'll tweak the rewrite rules later; in the meantime I've replaced the classic Apache welcome page with a nice simple redirect-to-main-wiki- page.
On mer, 2002-12-25 at 18:55, Jonathan Walther wrote:
Speaking of which, I got my Wikipedia configuration ironed out; here it is for anyone who is interested. Brion, could something like this be incoroporated into the INSTALL file? In mod_wiki I would like to alter the design such that direct access to php or other scripts can be abolished. That may require using POST for everything, and Javascript. The handling of the "&" character throws gum in the works.
Should be straightforward -- just use %26 wherever it represents content and & where it's a magic query string component separator:
http://foobar/wiki/Beeswax_%26_Honey http://foobar/wiki/Beeswax_%26_Honey?action=edit http://foobar/wiki/Special:Whatlinkshere?target=Beeswax_%26_Honey&limit=...
The URL-building functions may need tweaking to know to use the question mark to start building a query string. (And remember Apache's mod-rewrite de-URL-encodes the path components before you get to them; that's why we use a patched ampescape function to re-encode the ampersands in titles being moved from the path to the query string.)
I had to "touch" the logfile before the Wikipedia software would run.
Check the ownerhsip/permissions on your upload directory. If it can't create the log file, you may not be able to upload files either. The dir should be writable by the webserver's process.
-- brion vibber (brion @ pobox.com)