Thank you Whiteg and Keith for your quick answers :)
I had tried before to change 'Allow from .inria.fr' to 'Allow from All'
and the same thing happened.
And here are the permissions of the directory database:
drwxrwxrwx 2 root root 4096 sep 10 10:29 database/
Is this normal...? The plugin/ directory has the same permissions...
What is stranger is that in database/ I have these different permissions:
-rw-r--r-- 1 root root 1286 aoû 1 15:18 BlaBla
-rw-rw-rw- 1 root root 654 oct 3 13:57 HomePage
-rw-r--r-- 1 root root 2313 sep 5 16:52 BlaBlo
-rw-r--r-- 1 root root 424 sep 10 10:44 BlaBli
(....)
So when I edit and save HomePage, I get a different error message. Here
it is:
------
Can't open file './plugin/page_metadata/HomePage' for output:
Permission denied at lib/Spoon/MetadataObject.pm line 20
at lib/Spoon/Base.pm line 89
Spoon::Base::__ANON__('Can\'t open file
\'./plugin/page_metadata/HomePage\' for outp...') called at
/usr/lib/perl5/5.8.8/Carp.pm line 269
Carp::croak('Can\'t open file \'./plugin/page_metadata/HomePage\' for
outp...') called at lib/IO/All.pm line 736
IO::All::throw('IO::All::File=GLOB(0x857fcfc)', 'Can\'t open file
\'./plugin/page_metadata/HomePage\' for outp...') called at lib/IO/All/File.pm
line 84
IO::All::File::open('IO::All::File=GLOB(0x857fcfc)') called at
lib/IO/All/File.pm line 52
IO::All::File::assert_open('IO::All::File=GLOB(0x857fcfc)', '>') called
at lib/IO/All/Base.pm line 141
IO::All::Base::__ANON__('IO::All::File=GLOB(0x857fcfc)', 'edit_by:
AnonymousGnome
edit_time: Wed Oct 3 13:17:13 2007
e...') called at lib/IO/All/Base.pm line 150
IO::All::Base::__ANON__('IO::All::File=GLOB(0x857fcfc)', 'edit_by:
AnonymousGnome
edit_time: Wed Oct 3 13:17:13 2007
e...') called at lib/Spoon/MetadataObject.pm line 20
Spoon::MetadataObject::print_yaml_file('Kwiki::PageMeta=HASH(0x830cf80)',
'./plugin/page_metadata/HomePage', 'HASH(0x857fc3c)') called at
lib/Kwiki/Pages.pm line 271
Kwiki::PageMeta::store('Kwiki::PageMeta=HASH(0x830cf80)') called at
lib/Spoon/ContentObject.pm line 99
Spoon::ContentObject::store_metadata('Kwiki::Page=HASH(0x855d240)')
called at lib/Spoon/ContentObject.pm line 76
Spoon::ContentObject::store('Kwiki::Page=HASH(0x855d240)') called at
lib/Kwiki/Edit.pm line 48
Kwiki::Edit::save('Kwiki::Edit=HASH(0x84e2ff8)') called at
lib/Kwiki/Edit.pm line 24
Kwiki::Edit::edit('Kwiki::Edit=HASH(0x84e2ff8)') called at
lib/Spoon/Hub.pm line 42
Spoon::Hub::process('Kwiki::Hub=HASH(0x8260cc0)') called at
lib/Kwiki.pm line 12
Kwiki::process('Kwiki=HASH(0x82377f4)') called at
/var/www/cgi-bin/atollkwiki/index.cgi line 4
----
Still, HomePage is successfuly saved. (While the other pages can't be
saved at all.)
Actually I didn't have any problem saving a page when launching the
standalone server with command 'kwiki -start 8080'. So I wonder wether
it's a problem with my server configuration or if it's a real bug.
Isabelle
Keith A. Carangelo wrote:
Hi Isabelle,
Check the owner and group permissions in your database directory. I think
kwiki reverts edited files to 644. I've had trouble with this in the
past and haven't
found a good way of fixing it.
Keith Carangelo
On 10/3/07, *Isabelle Cabrera* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
I have a problem with kwiki: when saving a page that I have
edited. I get this error message:
-------
Can't open file 'database/PersonalPage' for output:
Permission denied at lib/Spoon/ContentObject.pm line 92
at lib/Spoon/Base.pm line 89
Spoon::Base::__ANON__('Can\'t open file
\'database/PersonalPage\' for output:
Permis...') called at /usr/lib/perl5/5.8.8/Carp.pm line 269
Carp::croak('Can\'t open file \'database/PersonalPage\'
for output:
Permis...') called at lib/IO/All.pm line 736
IO::All::throw('IO::All::File=GLOB(0x85811fc)', 'Can\'t
open file \'database/PersonalPage\' for output:
Permis...') called at lib/IO/All/File.pm line 84
IO::All::File::open('IO::All::File=GLOB(0x85811fc)')
called at lib/IO/All/File.pm line 52
IO::All::File::assert_open('IO::All::File=GLOB(0x85811fc)',
'>') called at lib/IO/All/Base.pm line 141
IO::All::Base::__ANON__('IO::All::File=GLOB(0x85811fc)',
'== Créer sa page web
Placez votre page sous [=$HOMEDIR/publi...') called at
lib/IO/All/Base.pm line 150
IO::All::Base::__ANON__('IO::All::File=GLOB(0x85811fc)',
'== Créer sa page web
Placez votre page sous [=$HOMEDIR/publi...') called at
lib/Spoon/ContentObject.pm line 92
Spoon::ContentObject::store_content('Kwiki::Page=HASH(0x85653ec)')
called at lib/Spoon/ContentObject.pm line 75
Spoon::ContentObject::store('Kwiki::Page=HASH(0x85653ec)')
called at lib/Kwiki/Edit.pm line 48
Kwiki::Edit::save('Kwiki::Edit=HASH(0x84f82b8)') called at
lib/Kwiki/Edit.pm line 24
Kwiki::Edit::edit('Kwiki::Edit=HASH(0x84f82b8)') called at
lib/Spoon/Hub.pm line 42
Spoon::Hub::process('Kwiki::Hub=HASH(0x8260c18)') called
at lib/Kwiki.pm line 12
Kwiki::process('Kwiki=HASH(0x823776c)') called at
/var/www/cgi-bin/atollkwiki/index.cgi line 4
-------
I think this comes from a problem with my server configuration,
but I'm not sure.
In the file /etc/httpd/conf/httpd.conf of my machine, I have added
this:
Alias /kwiki/ "/var/www/cgi-bin/atollkwiki/"
<Directory /var/www/cgi-bin/atollkwiki/>
Order allow,deny
Allow from .inria.fr
AllowOverride All
Options ExecCGI
AddHandler cgi-script .cgi
</Directory>
Do you know what is wrong with my configuration ?
The thing is I can access the kwiki, the kwiki looks good with the
stylesheet and all and I can edit a page,
but when I click on the save button, I get this error. I suppose
there is a problem of path somewhere
and the directory database/ cannot be found.
Best regards,
IC
--
Isabelle Cabrera
--
http://www.kcaran.com
--
Isabelle Cabrera
Projet Alpage - INRIA Rocquencourt
Tel : 01 3963 5270