Perl Error When Reading Localsite.cfg Please Inform The Site Admin
Hi, I'm installing Twiki on MS 2003 server. And I have some problems: 1- When I try to run http://127.0.0.1:3000/bin/view.pl I get: Perl error when reading LocalSite.cfg: Please inform the site admin. BEGIN failed--compilation aborted at /cygdrive/f/twiki/lib/TWiki.pm line 467. Compilation failed in require at /cygdrive/f/twiki/lib/TWiki/UI.pm line 34. Compilation failed in require at F:\twiki\bin\view.pl line 30. BEGIN failed--compilation aborted at F:\twiki\bin\view.pl line 30. I know I should do some changes to that file from some cookbooks but I cannot find the file to do it. I think I should first run configure.pl but when running that I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." I tried to find something from the available questions here but didn't get a clear picture of how to solve this. I would appreciate any help. Regards -- LucGarcia - 19 Mar 2009 Discussion and Answer - Update 1: I got the LocalSite.cfg from the net and edited it. Now I'm having the "The specified CGI application misbehaved by not returning a complete set of HTTP headers." problem with both the view.pl or configure.pl Any hints appreciated. Regards -- LucGarcia - 19 Mar 2009 You should run /bin/configure first. It will create that file and help you set it up for your own environment. -- SeanCMorgan - 19 Mar 2009 Thanks Sean, Yeah I've tried that but configure.pl also gives the "The specified CGI application misbehaved by not returning a complete set of HTTP headers." I can run it from command line with perl /twiki/bin/configure.pl and that prints the html but with the browser I get the headers error. Considering to try on Ubuntu already.... But I'll try if there's any suggestions. Thanks. -- LucGarcia - 19 Mar 2009 Change status to: Asked question Answered question Closed unanswered 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 Where is LocalSite.cfg ? SupportCategory CategoryInstallation TWiki version 4.2.4 Server OS MS Windows Server 2003 Web server IIS 6 Perl version 5.10.0 Edit|Attach|Watch|Print version|History: r3 update: 3 years ago I just completed going through the process and requirements for 5.0.0.1 install on Solaris 10. The only thing I had error with was HTML::Tree module, but for now thats ok. My question is when I launch the ...bin/configure from apache I get the entire script. I can't get my configuration script to run. I used Mozilla and IE to launch Blog Extensions Documentation Community Development Tasks Download Support You are here: Foswiki>Tasks Web>Item1829 (08 Sep 2010, KennethLavrsen)Edit Attach Item1829: Configure shouldn't crash https://foswiki.org/Tasks/Item1829 if there is no LocalSite.cfg Priority: Urgent Current State: https://foswiki.org/Tasks/Item8596 Closed Released In: 1.0.10, 1.1.0 Target Release: patch Applies To: Engine Component: Branches: Reported By: RaulFRodriguez Waiting For: Last Change By: KennethLavrsen Using Foswiki 1.0.6, on a Linux Debian, with Apache 2.2.3, with all the lib/DEPENDENCIES perl error installed except Win32::Console 1. Follow the installation instructions at http://foswiki.org/System/InstallationGuide up to the point you have to configure Apache Use the Apache Config Generator at http://foswiki.org/Support/ApacheConfigGenerator Configure it to require that an authorised user has to authenticate to access the configure script Use it with perl error when the following settings: http://foswiki.org/Support/ApacheConfigGenerator?vhost=&port=&dir=%2Fvar%2Fwww%2Ffoswiki&pathurl=%2Ffoswiki&shorterurls=enabled&engine=CGI&fastcgimodule=fastcgi&apver=2&allowconf=&requireconf=raul&loginmanager=Template&htpath=%2Fvar%2Fwww%2Ffoswiki%2Fdata&errordocument=UserRegistration&errorcustom=&phpinstalled=PHP4&blockpubhtml=on&blocktrashpub=on&controlattach=on&blockspiders=on#HighLight (replace "raul" with any other user to suit your installation) create the .htpasswd file for that user as directed by the documentation install the Apache .conf file, restart Apache, and point browser to http://host/foswiki/bin/configure you get the following error message : Software error: Content-type: text/plain Perl error when reading LocalSite.cfg: Please inform the site admin. at /usr/share/perl/5.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/share/perl/5.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 Blog Extensions Documentation Community Development Tasks Download Support You are here: Foswiki>Tasks Web>Item8596 (15 Mar 2011, GeorgeClark)Edit Attach Item8596: Short URLs can cause configure to break Priority: Normal Current State: Closed Released In: 1.1.0 Target Release: minor Applies To: Engine Component: ServerConfiguration, ApacheConfigGenerator, Configure Branches: Reported By: SvenDowideit Waiting For: Last Change By: GeorgeClark from irc [09:17] * alfredo (alfredo_@190.199.160.102) has joined #foswiki [09:17]