qsetup
(for "quick setup") sets up file permissions and directory paths.
This convenience script must be run either from the base installation directory or from the spw
directory, which is directly underneath.
Here is what qsetup
does ($base stands for the path to the base installation directory):
qsetup.pl -w www-data
, with www-data replaced by the name of the user that your CGI runs under. This executes chown -R www-data $base/spw
instead.$base/spw/diffs
, changes the line :$SPWPATH = '/var/www/wiki';
:to :$SPWPATH = '$base';
$base/var/www/spw.pl
, changes the line :$SPW_BASE_PATH = '';
:to :$SPW_BASE_PATH = '$base'
$base/spw/wikidb/config
, changes the line :$FullUrl = "http://bayle.stanford.edu/cgi-bin/cgiwrap/spw/spw.pl"; # ...
:to :$FullUrl = ""; # ...
:(when $FullUrl? is empty, the URL is autodetected; unless you have something weird like cgiwrap, this should suffice)