User:Yurik/Query API/User Manual
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!