This question about Configuration: Answered

Configuration => First User Registration causes Software Error

After Installation of Foswiki 1.0.6 we startet the configuration as described in the Installation Guide.

We tried to register the first user (to make him an Admin) but when we were clicking "register" (on the Configuration-Mainpage in the blue box) we only get an error Message. The line .../ line 588 looks like this: die $this->{_cgisession}->errstr() if $this->{_cgisession}->errstr()

Why do we get this message? Somebody knows why?

Software error:

flush(): couldn't store datastr: store(): couldn't open '/opt/lampp/htdocs/homepage/twiki/working/tmp/cgisess_602e877c7475683faba2bdd8e061a2b3': Permission denied at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/ line 588.

For help, please send mail to the webmaster (, giving this error message and the time and date of the error.

Software error:

[Wed Jul 15 19:29:05 2009] flush(): couldn't store datastr: store(): couldn't open '/opt/lampp/htdocs/homepage/twiki/working/tmp/cgisess_602e877c7475683faba2bdd8e061a2b3': Permission denied at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/ line 588.  at /usr/share/perl/5.8/CGI/ line 314    CGI::Carp::realdie('[Wed Jul 15 19:29:05 2009] flush(): couldn\'t store ...') called at /usr/share/perl/5.8/CGI/ line 400    CGI::Carp::die('flush(): couldn\'t store datastr: store(): couldn\'t open \'/...') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/ line 588    Foswiki::LoginManager::userLoggedIn('Foswiki::LoginManager::TemplateLogin=HASH(0x875382c)', 'undef') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/ line 412    Foswiki::LoginManager::loadSession('Foswiki::LoginManager::TemplateLogin=HASH(0x875382c)', 'undef') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/ line 100    Foswiki::Users::new('Foswiki::Users', 'Foswiki=HASH(0x8535f1c)') called at /opt/lampp/htdocs/homepage/twiki/lib/ line 1413    Foswiki::new('Foswiki', 'undef', 'Foswiki::Request=HASH(0x85362a0)', 'HASH(0x851b6e8)') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/ line 288    Foswiki::UI::_execute('Foswiki::Request=HASH(0x85362a0)', 'CODE(0x853600c)', 'view', 1) called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/ line 270    Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x85362a0)') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/Engine/ line 26    Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x83fa6a0)') called at /opt/lampp/htdocs/homepage/twiki/bin/ line 45  

This is most probably due to the fact that the working directory isn't writable by the webserver. Configure should normally tell you so.

One easy way to fix this is to create this directory, and give it to the webserver user (which I'll assume is called www, please change accordingly):
mkdir -p /opt/lampp/htdocs/homepage/twiki/working/tmp
chown www /opt/lampp/htdocs/homepage/twiki/working/tmp

-- OlivierRaginel - 15 Jul 2009

QuestionForm edit

Subject Configuration
Version Foswiki 1.0.6
Status Answered
Topic revision: r2 - 15 Jul 2009, OlivierRaginel - This page was cached on 14 Jan 2020 - 10:46.

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