Nearing the End
Twiki sucksThe archive file is weird. Gzipped twice apparently. And unloads all the files in the current directory. This is so unusual. I'm only trying to install twiki because of a friend's recommendation. $ tar tvfz TWiki-4.0.4.tgz | head tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Error exit delayed from previous errors $ gzip -d < TWiki-4.0.4.tgz > junk $ file junk junk: gzip compressed data, from Unix $ mv junk TWiki-4.0.4.tgz $ tar tvfz TWiki-4.0.4.tgz | head -r--r----- apache/apache 6110 2006-06-25 12:19:09 AUTHORS drwxr-xr-x apache/apache 0 2006-06-25 12:19:20 bin/ -r--r----- apache/apache 4162 2006-06-25 12:19:11 bin/.htaccess.txt -r-xr-x--- apache/apache 1055 2006-06-25 12:19:09 bin/upload -r-xr-x--- apache/apache 1051 2006-06-25 12:19:09 bin/rdiff -r-xr-x--- apache/apache 1042 2006-06-25 12:19:09 bin/rest -r-xr-x--- apache/apache 1059 2006-06-25 12:19:09 bin/changes -r-xr-x--- apache/apache 1051 2006-06-25 12:19:20 bin/rdiffauth -r-xr-x--- apache/apache 1077 2006-06-25 12:19:20 bin/viewauth -r-xr-x--- apache/apache 124304 2006-06-25 12:19:09 bin/configure $ Install is a nightmare. Best to hire a consultant. The following notes won't help.
$ mkdir twiki
$ cd twiki
$ tar xfz ../TWiki-4.0.4.tgz
$ cd ..
# Don't follow instructions and change file ownership yet.
# There's still stuff to edit.
$ ls twiki/bin/LocalLib.cfg
ls: twiki/bin/LocalLib.cfg: No such file or directory
$ cp twiki/bin/LocalLib.cfg.txt twiki/bin/LocalLib.cfg
$
$ vi twiki/bin/LocalLib.cfg
# Edit twikiLibPath, set to /home/mudd/pkgs/twiki/lib/
# The file is read-only by default?!?!
Tried: http://localhost/twiki/bin/configure
Forbidden
You don't have permission to access /twiki/bin/configure on this server.
$ ls -l /var/www/twiki/bin/configure
-r-xr-x--- 1 www-data mudd 124304 2006-06-25 12:19 /var/www/twiki/bin/configure
$
$ chmod u+w twiki/twiki_httpd_conf.txt
$ vi twiki/twiki_httpd_conf.txt
$ sudo /etc/init.d/apache2 restart
Password:
* Forcing reload of apache 2.0 web server... Syntax error on line 68 of /home/mudd/pkgs/twiki/twiki_httpd_conf.txt:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration
[fail]
$
$ sudo cpan
> install CGI::Session
Notes on Security
* If you don't set a password, or the password is cracked, then configure could be used to do very nasty things to your server.
* If you are running TWiki on a public website, you are strongly advised to disable saving from configure by making lib/LocalSite.cfg readonly once you are happy with your configuration.
last updated 2 years ago # |
HomeBlog |