This question about Configuration: Answered

configure fails - uninitialized variable

I installed foswiki on Windows7/ActivePerl/Apache in cgi-bin (with pub in htdocs).

When I try to run configure I get:
Software error:

Use of uninitialized value $Foswiki::foswikiLibPath in concatenation (.) or string at C:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin\wiki\lib/Foswiki/Configure/TemplateParser.pm line 67.

So, I did a manual configuration. The system comes up, but I cannot login as admin.

I left the configuration password empty.

$Foswiki::cfg{Password} = '';

There were no instructions that I could find about manually setting the password. (Does configure store an encrypted password?)

What should I do to configure configuration?

Thanks!


First, I would suggest you to try and fix configure so it's working. It's much easier to use it than do everything manually.

To maybe solve the error above, go to your bin directory, and you should find a file called LocalLib.cfg.txt. Rename that file (remove the .txt extension), and edit it to fit your needs (the $foswikiLibPath). This could be enough to solve the error you get. I'd love to know more about your configuration so we can test and make Foswiki more robust on Win7.

Then, to answer your question, it is stored using the crypt mechanism. You can easily generate one using:
perl -le'print crypt "password", "SA"'
Where password is your password, and SA is the salt.

-- OlivierRaginel - 15 Jun 2011

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.3
Status Answered
Topic revision: r2 - 15 Jun 2011, OlivierRaginel
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy