Moving our wiki to a new server
Hi,
We found our wiki to be the reason for some excessive querying on our main VPS, and therefore want to move it to it's own VPS. Our current VPS is at www.sitename.com/wiki, with the new one moving to a subdomain wiki.sitename.com.
The live version uses short URLs, and is installed in /w/, and we installed the new one also in /w/ of the root to ensure a third-party extension we use will continue working. I'm finding myself having a bit of trouble getting the short URL structure to work, though. I have tried several solutions, but so far have not managed to get things working properly on the new VPS, though I do believe things are close to getting solved.
On the new VPS (CentOS), I have the following in /conf/vhosts.conf:
Alias / /var/www/vhosts/wiki.entropiaplanets.com/httpdocs/w/ php_admin_value open_basedir "/"
Then, in /w/, my .htaccess contains the following (As per the instructions called AnotherVariant at http://www.mediawiki.org/wiki/Manual:Short_URL/wiki.example.com/Page_title--Subdomain_using_mod-rewrite):
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /$1 [L]
My LocalSettings has the following:
$wgScriptPath = "/w"; $wgScriptExtension = ".php"; $wgArticlePath = "/$1"; # Virtual path. This directory MUST be different from the one used in $wgScriptPath $wgUsePathInfo = true; # Enable use of pretty URLs
This almost has me where I want to be, as it takes me to wiki.sitename.com/W (note the capitalized W which seems to hint that the Wiki is thinking it's a wiki article with the name w). The layout seems odd, though, possibly because it cannot locate the css file.
Would anyone have any ideas?
Thanks!
Peter
The guide you linked to is for setting up MediaWiki in the root of a subdomain. In your case you can just follow the normal guide at Manual:Short URL/Apache.