Tags:
create new tag
view all tags

SID-00036: Running twiki as standalone from localhost

Status: Answered Answered TWiki version: 4.1.2 Perl version: perl 5.10.0-11.1ubuntu2
Category: CategoryInstallation Server OS: Ubuntu 8.10 Last update: 16 years ago

Hi there. I was hoping to run twiki as a standalone on my laptop simply to organize my writing/work and perhaps move it to the web at some point. As most things are in Ubuntu, install was very easy. I am able to get to twiki at:

http://localhost/cgi-bin/twiki/view

However, I found I had to register to edit (naturally). This went well and the page concluded by advising me that my activation number was sent to my email address. It wasn't. (Yes, I was online, etc. )

I'm perplexed. I installed the wiki but I can't access it. I think I've read everything, but please steer me to the answer. Thanks.

PS - besides the info about OS/server/Perl I also know: PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server

-- MikeBourassa - 15 Jan 2009

Discussion and Answer

One quick fix might be to disable the authorization altogether. if you check your configure script (twiki/bin/configure) under security setup. You can disable the login and password managers. But i think all you want is to uncheck "{Register}{NeedVerification}"

-- TWikiGuest - 15 Jan 2009

Run configure and check your SMTP settings.

-- PeterThoeny - 15 Jan 2009

I looked at the script but nothing jumped out at me. Running the configure script( /var/lib/twiki/bin/configure) was unsuccessful. I ran it from a terminal (./configure). Was that correct? I expected maybe a GUI to pop up or a file to get written that I could edit as suggested. I got neither and so am still twiki-less. Any suggestions or pointers to what I should be reading would be appreciated. Cheers.

-- MikeBourassa - 16 Jan 2009

Forgot to change status.

-- MikeBourassa - 16 Jan 2009

Run configure in your browser, such as http://localhost/twiki/bin/configure, or edit /var/lib/twiki/lib/LocalSite.cfg.

-- PeterThoeny - 16 Jan 2009

I am running Firefox as my browser. To the best of my knowledge it doesn't execute Perl scripts. In this case I get a "404 - Not found" error though the file is clearly there. I can open the file as a file in the browser. As for 'LocalSite.cfg', it is not there. There is a 'LocalSite.cfg' under etc/twiki. There also is one in var/lib/twiki/bin. It looks like this:

# TWiki Enterprise Collaboration Platform, http://TWiki.org/ # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. For # more details read LICENSE in the root of this distribution. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # LocalLib.cfg: local path settings for TWiki

use vars qw( $twikiLibPath $CPANBASE );

# -------------- Path to lib directory containing TWiki.pm. # # REQUIRED # The absolute path to the 'lib' directory in your installation..

$twikiLibPath = "/etc/twiki";

# -------------- Extra path components to include in @INC # OPTIONAL # If you need to use perl modules that are not installed in the standard # directories (e.g. you have downloaded extra modules for use with plugins) # then you can add the absolute paths to those modules below. You can list # as many directories as you want, separated by commas.

# @localPerlLibPath = ( '/path/to/dir' );

# http://www.perl.com/pub/a/2002/04/10/mod_perl.html?page=3 has good advice # on installing CPAN modules without superuser privileges.

1; # Required for successful module loading

And that's only seems to be telling me about paths. I guess I would ask:

a) is running configure from the browser different from running it from the command line; b) if configure is running successfully what should I see; and c) after configure is run, has it created files or something editable.

Thank you again for any assitance. It is much appreciated. cheers.

-- MikeBourassa - 17 Jan 2009

Interesting. If I go to my page the address is: http://localhost//cgi-bin/twiki. If from there I enter: "http://localhost//cgi-bin/twiki/configure" something runs but I am prompted for my name and password ... which of course don't work because I don't have the activation number. sigh.

-- MikeBourassa - 17 Jan 2009

Ah. This url: http://books.google.ca/books?id=5VXgXlU7g-YC&pg=PA221&lpg=PA221&dq=what+should+happen+when+I+run+configure+in+twiki&source=web&ots=OSG3dl3jnC&sig=rKrt7YsRpWdGTx02I8mqBWgyZd4&hl=en&sa=X&oi=book_result&resnum=3&ct=result#PPA222,M1 answered my question. In short, I'm supposed to see a page with configuration settings, etc. I don't get that at all as described above. I suppose my question might then be why don't I get an email but I guess that isn't a question for this forum. Looked like neat software though. Cheers.

-- MikeBourassa - 17 Jan 2009

Please follow the TWikiInstallationGuide step by step.

On username and password issue, locate twiki/bin/.htaccess or /etc/httpd/conf.d/twiki.conf and temporarily comment out all access control of the configure script:

# <FilesMatch "^(configure)$">
#     SetHandler cgi-script
#     Order Deny,Allow
#     Deny from all
#     Require user MikeBourassa
# </FilesMatch>

-- PeterThoeny - 18 Jan 2009

Thank you for the help! Things are up and running for my needs. Much appreciated.

-- MikeBourassa - 18 Jan 2009

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Running twiki as standalone from localhost
SupportCategory CategoryInstallation
TWiki version 4.1.2
Server OS Ubuntu 8.10
Web server Apache/2.2.9 (Ubuntu)
Perl version perl 5.10.0-11.1ubuntu2
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2009-01-18 - MikeBourassa
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.