This question about Configuration: Task filed
Unable to open /var/lib/foswiki/lib/LocalSite.cfg.1
Apologies as I am very novice with Linux.
After install, when trying to change the configuration page, I receive the following error page.
Software error:
Unable to open /var/lib/foswiki/lib/LocalSite.cfg.1 for write: Permission denied
For help, please send mail to the webmaster (
root@localhost), giving this error message and the time and date of the error.
If anyone could assist, that would be great.
Oh, and as I said, I am very, very new with
CentOS... I literally need a command by command fix =/
Thanks!
--
MarkAksel - 17 Jan 2013
Please edit the file
/var/lib/foswiki/lib/LocalSite.cfg
and find the line that reads
$Foswiki::cfg{MaxLSCBackups} = 10;
Change the number from 10 to 0, so that it reads:
$Foswiki::cfg{MaxLSCBackups} = 0;
Then save the file. This should then allow the configure tool to save the config without trying to create new backup files. The issue is caused because Foswiki configure now saves a backup of the
!LocalSite.cfg
file, but with the CentOS install, the directory location is write protected and the backup fails.
--
GeorgeClark - 17 Jan 2013
Editing the file, I am not seeing the line /var/lib/foswiki/lib/LocalSite.cfg
--
MarkAksel - 17 Jan 2013
Unable to edit my last comment... I meant that I cannot find the line: $Foswiki::cfg{MaxLSCBackups} = 10
--
MarkAksel - 17 Jan 2013
I did a search on the line (google)... found this:
http://foswiki.org/pub/Development/MongoDBPlugin/LocalSite.cfg
Found the line $Foswiki::cfg{MaxLSCBackups} = 0;
Then just inserted it in the same location.
Seems to have worked. Thanks!
--
MarkAksel - 17 Jan 2013
Ah... okay. Great. The location in the file didn't matter, as long as it was not at the very end, after the line
"1;"
It looks like the packaging for 1.1.6 didn't include that default I guess. Not sure why. The other place to fix it would have been in
lib/Foswiki.spec
where the default is established for missing configuration settings.
We'll address this for 1.1.7.
--
GeorgeClark - 17 Jan 2013