This question about Installation of Foswiki: Answered

Can't run configure script

Hello.

I am installing foswiki 1.0.6 on CentOS 5.3. I have set up LocalLib.cfg to point to the lib directory of foswiki. Also, set up apache config file .

When I go to http://localhost/foswiki/bin/configure , I get "perl error reading LocalSite.cfg" (see below). I then manually created lib/LocalSite.cfg following the instructions for maual installation in the guide. I then get a "Topic 'Configure' does not exist" page. I get the same "Topic 'X' does not exist" when trying different links such as WelcomeGuest or UserRegistration.

What am I doing wrong?

Thanks in advance.

==

Software error:

Content-type: text/plain  Perl error when reading LocalSite.cfg:  Please inform the site admin.  at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 356    CGI::Carp::realdie('Content-type: text/plain\x{a}\x{a}Perl error when reading LocalSite.c...') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 437    CGI::Carp::die('Content-type: text/plain\x{a}\x{a}Perl error when reading LocalSite.c...') called at /var/www/foswiki/lib/Foswiki/Configure/Load.pm line 56    Foswiki::Configure::Load::readConfig() called at /var/www/foswiki/lib/Foswiki.pm line 269    Foswiki::BEGIN() called at LocalSite.cfg line 498    eval {...} called at LocalSite.cfg line 498    require Foswiki.pm called at /var/www/foswiki/bin/view line 43    main::BEGIN() called at LocalSite.cfg line 498    eval {...} called at LocalSite.cfg line 498 BEGIN failed--compilation aborted at /var/www/foswiki/lib/Foswiki.pm line 498.  at /var/www/foswiki/lib/Foswiki.pm line 498    require Foswiki.pm called at /var/www/foswiki/bin/view line 43    main::BEGIN() called at /var/www/foswiki/lib/Foswiki.pm line 498    eval {...} called at /var/www/foswiki/lib/Foswiki.pm line 498 Compilation failed in require at /var/www/foswiki/bin/view line 43.  at /var/www/foswiki/bin/view line 43    main::BEGIN() called at /var/www/foswiki/lib/Foswiki.pm line 43    eval {...} called at /var/www/foswiki/lib/Foswiki.pm line 43 BEGIN failed--compilation aborted at /var/www/foswiki/bin/view line 43.  at /var/www/foswiki/bin/view line 43 

-- JimChan - 09 Jul 2009

Its always good to create the initial version of your LocalSite.cfg with configure. Please make sure, your webserver has write permissions to the lib directory.

-- OliverKrueger - 09 Jul 2009

I would like to use configure, but get that software error when I did not have LocalSite.cfg in lib. Here are what my permissions look like:

drwxr-xr-x 5 apache apache 4096 Jul 8 18:09 lib in lib: -rw-r--r-- 1 apache apache 65143 Jul 8 15:42 LocalSite.cfg

-- JimChan - 09 Jul 2009

Hi all,

I experience the same probem as Jim (on a similar configuration I guess?!?)

My server:
  • CentOS 5
    uname -ra
    Linux xxxxxx 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
  • perl -v
    This is perl, v5.8.8 built for x86_64-linux-thread-multi
  • Permissions on lib directory:
    [root@xxxxxxxxx foswiki]# ll
    [...]
    drwxr-xr-x 3 apache apache 4096 Oct 28 16:51 bin
    drwxr-xr-x 5 apache apache 4096 Sep 20 23:28 lib
    [...]
  • foswiki version: latest available as of 2009/10/28
Does anybody encountered such a behaviour?

-- EvanghelosPapaioannu - 28 Oct 2009

A "perl error reading localsite" might be due to one of a number of things. One possibility is that there is a syntax error in the file (it can happen sometimes. Check by issuing the command "perl LocalSite.cfg" from the command-line.

If the file is zero-sized, just delete it and start again.

-- CrawfordCurrie - 28 Oct 2009

No followup, so closed as answered.

-- CrawfordCurrie - 11 Dec 2009

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 1.0.6
Status Answered
Topic revision: r7 - 11 Dec 2009, CrawfordCurrie - This page was cached on 13 Nov 2018 - 22:03.

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