Jump to content

User:Yurik/Query API/User Manual

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fortyfoxes (talk | contribs) at 00:49, 8 August 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Installation

These notes cover my expereince of installing query.ph on a shared virtual host (in my case http://wiki.dreamhost.com/index.php/MediaWiki), and may not apply to all set ups. I have the following configuration:

  • MediaWiki: 1.7.1
  • PHP: 5.1.2 (cgi-fcgi)
  • MySQL: 5.0.18-standard-log

Installation is fairly straight forward once you got the principles. Query.php is not like other documented "extensions" to MediaWiki - it does it's own thing, and does not need integrating into the overall environment so that it can be called within wiki pages - so no registering with LocalSettings.php (my first mistake).

Installation Don'ts

Explicitly - do *NOT* place a "# require_once( "extensions/query.php" ); line in LocalSettings.php!

Installation Do's

Query.php does require that you put it in the right folder! And this is not simply wi:

/home/myuserName/myDomainDir/w/extensions/query.php

Where the direcotry "w" is the standard MediaWiki directory named in such a way as not to clash - ie not MediaWiki or Wiki - this allows easier redirection with .htaccess for tidier urls.

Apache Rewrite Rules and URls

In progress - have to see how pointing a subdomain (wiki.mydomain.org) at the installation affects query.php!