X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d343748126ba933cb565cd218d83d98c7b9ccaff..8a801dc02d0d259d546c7ee392493bc97bbb1638:/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn diff --git a/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn b/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn index 3b630c537..3d59c7fb8 100644 --- a/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn +++ b/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn @@ -80,3 +80,69 @@ Where is my mistake? >>> a different copy of the source? You should be able to figure out what's >>> going on my looking at how the index file changes (or not) when you >>> create the new page. --[[Joey]] + +>>>> I've checked that my ikiwiki really doesn't touch `.ikiwiki/index` file +>>>> when I create and save a new page. In `error.log` file of my Apache2 +>>>> server I can't see any "Permission denied" messages, but I suspect +>>>> that a reason of my problem can be the bad access permissions: + +>>>> root@my.host:/my/ikiwiki/src/dir# ls -ld .ikiwiki/ +>>>> drwxrwsr-x 2 www-data src 4096 2007-01-11 10:00 .ikiwiki/ +>>>> root@my.host:/my/ikiwiki/src/dir# cd .ikiwiki/ +>>>> root@my.host:/my/ikiwiki/src/dir/.ikiwiki# ls -l +>>>> razem 48 +>>>> -rw-rw-r-- 1 www-data src 17353 2007-01-11 10:00 index +>>>> -rw-rw-r-- 1 www-data src 0 2007-01-11 10:17 lockfile +>>>> -rw------- 1 www-data src 24576 2007-01-11 10:17 sessions.db +>>>> -rw------- 1 www-data src 0 2006-11-15 14:45 sessions.db.lck +>>>> -rw------- 1 www-data src 404 2007-01-08 10:24 userdb + +>>>> What do you think about it? Does it look good? My ikiwiki runs +>>>> under control of Apache2 server and it's configured to run +>>>> as `www-data` user and `www-data` group. --Pawel + +>>>>> It's a bit weird to run ikiwiki as www-data. This means that www-data +>>>>> can write to your subversion repository? And the svn post-commit hook +>>>>> _also_ runs as www-data? It certianly could be some permissions issue +>>>>> that is not being reported properly. --[[Joey]] + +>>>>>> No, my SVN `post-commit` hook runs as `root` (uid) and `www-data` (gid). +>>>>>> Only `root` user and `src` group have write permissions to my SVN repo. + +>>>>>> Could you please show me your permissions for `repodir`, `srcdir` +>>>>>> and `destdir` and how runs your Apache server? --Pawel + +>>>>>>> Ugh, root? My permissions setup is simple, ikiwiki runs as a single +>>>>>>> user, and that same user can commit to the svn repo and write to +>>>>>>> all files. --[[Joey]] + +>>>>>>>> What's your user? Please show me result of `ls -ld dir` for +>>>>>>>> directories above :) --Pawel + +>>>>>>>>> All my directories are 755 joey:joey. --[[Joey]] + +>>>>>>>>>> Thanks! But I have another situation: a multiuser system and a few +>>>>>>>>>> ikiwiki commiters. --Pawel + +>>>>>>>>>>> Joey, I think I've just fixed the permission, but my ikiwiki still +>>>>>>>>>>> doesn't update my `.ikiwiki/index` file. Could you please explain me +>>>>>>>>>>> when ikiwiki calls `saveindex()` subroutine? My ikiwiki doesn't do it +>>>>>>>>>>> when I create a new page and save it or when I update and save +>>>>>>>>>>> a existing page. It does it only when I run +>>>>>>>>>>> `ikiwiki --setup ikiwiki.setup` and I'm desperated... + +>>>>>>>>>>> BTW, where should I store my `ikiwiki.setup` file? It must be placed +>>>>>>>>>>> under `$srcdir/.ikiwiki/` directory or it doesn't matter? +>>>>>>>>>>> Does `ikiwiki.cgi` wrapper know where the `ikiwiki.setup` file +>>>>>>>>>>> is stored? --Pawel + +Sorry I am not indenting for my reply (in my browser the responses are very narrow.) + +I also had problem with no webpages getting generated via the CGI unless I ran ikiwiki to regen manually. +I can't find the discussion here about in the ikiwiki website though. I think it was removed and now I can't find it in the history. +My problem was caused by not having a revision system defined, so it defaulted to subversion (but I didn't have that installed). + +As for your .setup file you can put it anywhere. I don't think the CGI knows where it is at because its settings are set in the "wrapper". +In my case, my setup file is in a different home and owned by a different user than the CGI or my generated website. By the way, I also don't keep my .ikiwiki private directory in my source directory by setting wikistatedir (which doesn't seem to be documented). + +--[[JeremyReed]] \ No newline at end of file