IRC log of #dokuwiki @ irc.freenode.net

For Monday, 14 October 2019

  1. quit
    MenschZwoNull (~MenschZwo@2a03:2260:200c:400:413:2954:dcae:7cb3) has quit (Ping timeout: 252 seconds)
  2. message at
    #dokuwiki
    Unfortunately I have to leave you now. So don't do anything silly while I'm not here.
  3. message at
    #dokuwiki
    Unfortunately I have to leave you now. So don't do anything silly while I'm not here.
  4. join
    dokubot (~irclog@piggy.dokuwiki.org) has entered the channel
  5. join
    theoceaniscool (~theoceani@139.47.72.19) has entered the channel
  6. quit
    theoceaniscool (~theoceani@139.47.72.19) has quit (Ping timeout: 268 seconds)
  7. join
    matt74 (d95c7ea5@pd95c7ea5.dip0.t-ipconnect.de) has entered the channel
  8. quit
    matt74 (d95c7ea5@pd95c7ea5.dip0.t-ipconnect.de) has quit (Remote host closed the connection)
  9. quit
    ircarcs (~quassel@169.9.159.77.rev.sfr.net) has quit (Quit: ircarcs)
  10. join
    alwyn (~alwyn@unaffiliated/alwyn) has entered the channel
  11. message at
    alwyn
    How can I best debug (filesystem)permission issues? I'm getting "The datadir ('pages') at /pages is not found, isn't accessible or writable."
  12. message at
    alwyn
    The same error occurs when I go to /install.php
  13. message at
    Harmen
    apache log
  14. message at
    Harmen
    and see if the dir's are owned by the same user as your httpd is running under
  15. message at
    Harmen
    usually www-data
  16. message at
    Harmen
    check the permissions on the OS level
  17. message at
    Harmen
    drwxr-xr-x 9 www-data www-data 4.0K Aug 13 19:32 www
  18. message at
    alwyn
    Well, as the user that is running the webserver I can touch/mkdir files in the data directory just fine
  19. message at
    Harmen
    That's how it's here. Running stock Apache on Debian.
  20. message at
    Harmen
    The webserver won't run under your personal account. :)
  21. message at
    alwyn
    I'm trying the php.ini debug config now, maybe it'll give a bit more insight
  22. message at
    Harmen
    Normally the dir and files, have to be owned by www-data:www-data
  23. message at
    alwyn
    Sorry Harmen, I know :)
  24. message at
    Harmen
    Usually you'd download the files, unzip then, then do a chmod -R www-data:www-data on all files and dirs
  25. message at
    Harmen
    and you should be fine, if it simply complains about pages, see what the rights on the pages subdir are
  26. message at
    alwyn
    Following https://www.dokuwiki.org/install:permissions, the www dir doesn't need to be writable, just data, lib/plugins, lib/tpl, and conf
  27. message at
    Harmen
    drwxr-xr-x 12 www-data www-data 4.0K Jan 6 2019 data
  28. message at
    Harmen
    drwxr-xr-x 7 www-data www-data 4096 Aug 12 20:24 pages
  29. message at
    Harmen
    (pages is a subdir of data)
  30. message at
    alwyn
    As the user that is running the webserver, I can touch/mkdir files and directories in data/conf without issues
  31. message at
    Harmen
    you did a sudo su - www-data ?
  32. message at
    alwyn
    yes
  33. message at
    alwyn
    (not precisely that command but same concept)
  34. message at
    alwyn
    Oh hang on I might have forgotten something
  35. message at
    Harmen
    :)
  36. message at
    alwyn
    Nope, that did not fix it.
  37. message at
    Harmen
    Hmm. You sure all the rights are OK and the directories are +x all the way?
  38. message at
    Harmen
    (And ... apache points to the right dir.)
  39. message at
    alwyn
    A bit more context: I'm trying to make a docker image for dokuwiki that allows arbitrary UID's. Now the docker image works fine with a static UID, but not with an arbitrary one.
  40. message at
    alwyn
    To accomplish that (following the appropriate guides), I have set all necessary directories to be group-writeable and -executable
  41. message at
    alwyn
    I'll try to give group-writeable permission to all folders instead of just data, conf and lib/x
  42. message at
    alwyn
    actually, that is already the case ._.
  43. join
    MenschZwoNull (~MenschZwo@2a03:2260:200c:400:413:2954:dcae:7cb3) has entered the channel
  44. message at
    alwyn
    urgh even with error_reporting = E_ALL I don't get any errors in the php log
  45. message at
    alwyn
    A test.php works fine as well
  46. message at
    Harmen
    Hmm.
  47. message at
    Harmen
    I don't have any experience with docker, sorry. :(
  48. message at
    Harmen
    Just plain vm's.
  49. message at
    Harmen
    The only container thing I run, is an LXC container.
  50. join
    MenschZwoNull_ (~MenschZwo@p200300C85717120048D17D9814004552.dip0.t-ipconnect.de) has entered the channel
  51. quit
    MenschZwoNull (~MenschZwo@2a03:2260:200c:400:413:2954:dcae:7cb3) has quit (Ping timeout: 246 seconds)
  52. join
    pv2b (sid178205@gateway/web/irccloud.com/x-hqgeynxbwaljpcvq) has entered the channel
  53. message at
    alwyn
    Hmm odd, the apache process does not have write permission, but the same user does :/
  54. quit
    Emmanuel_Chanel (~Emmanuel_@ZN025243.ppp.dion.ne.jp) has quit (Ping timeout: 265 seconds)
  55. quit
    MenschZwoNull_ (~MenschZwo@p200300C85717120048D17D9814004552.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds)
  56. join
    Emmanuel_Chanel (~Emmanuel_@ZN025243.ppp.dion.ne.jp) has entered the channel
  57. join
    saint_ (~saint_@unaffiliated/saint-/x-0540772) has entered the channel
  58. join
    MenschZwoNull (~MenschZwo@p200300C85717120048D17D9814004552.dip0.t-ipconnect.de) has entered the channel
  59. quit
    alwyn (~alwyn@unaffiliated/alwyn) has quit (Quit: WeeChat 2.6)
  60. quit
    MenschZwoNull (~MenschZwo@p200300C85717120048D17D9814004552.dip0.t-ipconnect.de) has quit (Ping timeout: 245 seconds)
  61. join
    theoceaniscool (~theoceani@139.47.72.19) has entered the channel
  62. quit
    theoceaniscool (~theoceani@139.47.72.19) has quit (Ping timeout: 268 seconds)
  63. join
    theoceaniscool (~theoceani@222.red-83-55-19.dynamicip.rima-tde.net) has entered the channel
  64. join
    MenschZwoNull (~MenschZwo@2a03:2260:200c:400:9c7:a617:404:c521) has entered the channel
  65. quit
    theoceaniscool (~theoceani@222.red-83-55-19.dynamicip.rima-tde.net) has quit (Ping timeout: 246 seconds)