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 .../LoginManage.pm 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/LoginManager.pm line 588.
For help, please send mail to the webmaster (
you@example.com), giving this error message and the time and date of the error.
Software error:
[Wed Jul 15 19:29:05 2009] view.pl: 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/LoginManager.pm line 588. at /usr/share/perl/5.8/CGI/Carp.pm line 314 CGI::Carp::realdie('[Wed Jul 15 19:29:05 2009] view.pl: flush(): couldn\'t store ...') called at /usr/share/perl/5.8/CGI/Carp.pm line 400 CGI::Carp::die('flush(): couldn\'t store datastr: store(): couldn\'t open \'/...') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/LoginManager.pm line 588 Foswiki::LoginManager::userLoggedIn('Foswiki::LoginManager::TemplateLogin=HASH(0x875382c)', 'undef') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/LoginManager.pm line 412 Foswiki::LoginManager::loadSession('Foswiki::LoginManager::TemplateLogin=HASH(0x875382c)', 'undef') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/Users.pm line 100 Foswiki::Users::new('Foswiki::Users', 'Foswiki=HASH(0x8535f1c)') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki.pm line 1413 Foswiki::new('Foswiki', 'undef', 'Foswiki::Request=HASH(0x85362a0)', 'HASH(0x851b6e8)') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/UI.pm line 288 Foswiki::UI::_execute('Foswiki::Request=HASH(0x85362a0)', 'CODE(0x853600c)', 'view', 1) called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/UI.pm line 270 Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x85362a0)') called at /opt/lampp/htdocs/homepage/twiki/lib/Foswiki/Engine/CGI.pm line 26 Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x83fa6a0)') called at /opt/lampp/htdocs/homepage/twiki/bin/view.pl 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