<code>qsetup</code> (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 <code>spw</code> directory, which is directly underneath. Here is what <code>qsetup</code> does ($base stands for the path to the base installation directory): * chmod -R a+rwx $base/spw :If this is too insecure for you, you can run <code>qsetup.pl -w www-data</code>, with ''www-data'' replaced by the name of the user that your CGI runs under. This executes <code>chown -R www-data $base/spw</code> instead. * in <code>$base/spw/diffs</code>, changes the line :<code>$SPWPATH = '/var/www/wiki';</code> :to :<code>$SPWPATH = '$base';</code> * in <code>$base/var/www/spw.pl</code>, changes the line :<code>$SPW_BASE_PATH = '';</code> :to :<code>$SPW_BASE_PATH = '$base'</code> * in <code>$base/spw/wikidb/config</code>, changes the line :<code>$FullUrl = "http://bayle.stanford.edu/cgi-bin/cgiwrap/spw/spw.pl"; # ...</code> :to :<code>$FullUrl = ""; # ...</code> :(when $FullUrl is empty, the URL is autodetected; unless you have something weird like cgiwrap, this should suffice) ---- CategoryScript
Summary:
This change is a minor edit.
To save this page you must answer this question:
How many letters are in the word SIX?
Username: