[CWB] SourceForge subversion change: updated CQPweb instructions!

Hardie, Andrew a.hardie at lancaster.ac.uk
Mon Dec 24 23:51:29 CET 2012


Hi all,

Here are updated instructions on switching CQPweb to the new SF.net system, with 
additional steps added to deal with the problem encountered by Andrés Chandía the
other week, and a couple of other problems that I spotted.

best

Andrew.


HOW TO GET YOUR CQPWEB BACK IN SYNC IF IT IS BASED ON A LIVE CHECKOUT
=====================================================================

NOTE: if you are not interested in keeping up to date with commits to the bleeding-edge
CQPweb, you don't need to do this.

Go to the folder containing your main CQPweb folder (which I will assume is called "cqpweb").
Run the following commands, adjusting the name of the folder as appropriate.

(this requires you to be logged on as a user with rights over the CQPweb folder - e.g. the
web-server user, usually either www or www-data. If you are a different user, you may need to
use su / sudo, and in that case, you may need to change ownership of the new CQPweb directory
[and, recursively, to all its contents] to the web-server user later on.)

mv cqpweb _cqpweb
svn checkout http://svn.code.sf.net/p/cwb/code/gui/cqpweb/trunk cqpweb
mv _cqpweb/lib/config.inc.php cqpweb/lib/config.inc.php

If you are using Apache's username system, you also need to do the following:

mv _cqpweb/adm/.htaccess cqpweb/adm/.htaccess

Then, move each of your established corpus directories from _cqpweb/ to cqpweb/ . E.g. If you
have a corpus "mycorpus1" and "mycorpus2", then do

mv -tcqpweb _cqpweb/mycorpus1 _cqpweb/mycorpus2

(and so on).

Open up the web interface, and go to the admin control panel. 

* Click on the "Skins and colours" menu item - press "Regenerate colour schemes"
* Click on the "System security" menu item - press "Restore default security"

If you have been using any custom CSS files, you will need to copy those over manually.

Finally (optional) do the following:

rm -rf _cqpweb

to remove the old code. DO NOT DO THIS until you are sure you have moved all old corpus files
across.


More information about the CWB mailing list