IRC log of #dokuwiki @ irc.freenode.net

For Wednesday, 18 March 2020

  1. quit
    theoceaniscool (~theoceani@139.47.75.19) has quit (Ping timeout: 250 seconds)
  2. quit
    ksaok (~quassel@ereb.ru) has quit (Ping timeout: 256 seconds)
  3. join
    ksaok (~quassel@ereb.ru) has entered the channel
  4. quit
    ced117 (~ced117@opensuse/member/ced117) has quit (Ping timeout: 256 seconds)
  5. join
    ced117 (~ced117@opensuse/member/ced117) has entered the channel
  6. join
    capn_ (~capn@141.98.255.145) has entered the channel
  7. quit
    capn (~capn@141.98.255.145) has quit (Ping timeout: 246 seconds)
  8. message at
    #dokuwiki
    Unfortunately I have to leave you now. So don't do anything silly while I'm not here.
  9. message at
    #dokuwiki
    Unfortunately I have to leave you now. So don't do anything silly while I'm not here.
  10. join
    dokubot (~irclog@piggy.dokuwiki.org) has entered the channel
  11. join
    micgro42 (~quassel@37.120.35.192) has entered the channel
  12. quit
    DalekSec (unit193@freenode/staff/ubuntu.member.unit193) has quit (Ping timeout: 268 seconds)
  13. join
    DalekSec (unit193@freenode/staff/ubuntu.member.unit193) has entered the channel
  14. quit
    SM0TVI (~sm0tvi@unaffiliated/sm0tvi) has quit (Read error: Connection reset by peer)
  15. join
    SM0TVI (~sm0tvi@unaffiliated/sm0tvi) has entered the channel
  16. join
    nurupo_ (~nurupo.ga@unaffiliated/nurupo) has entered the channel
  17. quit
    nurupo (~nurupo.ga@unaffiliated/nurupo) has quit (*.net *.split)
  18. nick
    nurupo_ is now known as nurupo
  19. quit
    StathisA (~StathisA@unaffiliated/stathisa) has quit (Ping timeout: 246 seconds)
  20. join
    StathisA (~StathisA@unaffiliated/stathisa) has entered the channel
  21. quit
    StathisA (~StathisA@unaffiliated/stathisa) has quit (Ping timeout: 250 seconds)
  22. join
    StathisA (~StathisA@unaffiliated/stathisa) has entered the channel
  23. quit
    tom314159 (~quassel@162-197-66-226.lightspeed.lnngmi.sbcglobal.net) has quit (Ping timeout: 246 seconds)
  24. join
    annapurna (~tara@035-132-151-237.res.spectrum.com) has entered the channel
  25. message at
    annapurna
    good morning.
  26. message at
    annapurna
    i'm doing a fresh install (my first) of dokuwiki. i'm getting the "./data/pages is not found." error. my permissions seem fine. i've chowned http:http recursively. i'm using nginx on archlinux but installed with a downloaded tarball instead of the arch linux package.
  27. message at
    annapurna
    dokuwiki package, specifically.
  28. message at
    annapurna
    could someone help me with this? (thanks)
  29. privmsg
    Thanks for talking to me but I'm just a humble ircbot of #dokuwiki.
  30. privmsg
    If you want to know more about me write in the channel 'dokubot help'.
  31. privmsg
    Thanks for talking to me but I'm just a humble ircbot of #dokuwiki.
  32. privmsg
    If you want to know more about me write in the channel 'dokubot help'.
  33. message at
    micgro42
    from where did you download that tarball?
  34. message at
    micgro42
    annapurna ^
  35. message at
    annapurna
    hi micgro42
  36. message at
    annapurna
    https://download.dokuwiki.org/
  37. message at
    micgro42
    cool 👍
  38. message at
    annapurna
    no extra language packs. a few plugins.
  39. message at
    annapurna
    :)
  40. message at
    micgro42
    did you open the install.php in your Browser?
  41. message at
    annapurna
    yep
  42. message at
    annapurna
    that's where the DokuWiki Setup Error is being displayed.
  43. message at
    micgro42
    ah, I see
  44. message at
    micgro42
    in your dokuwiki directory, is there a `data` directory?
  45. message at
    annapurna
    yes
  46. message at
    annapurna
    /usr/share/nginx/webapps/dokuwiki/data/pages
  47. message at
    annapurna
    drwxr-xr-x 12 http http 4.0K Mar 18 08:03 data/
  48. message at
    micgro42
    🤔
  49. message at
    annapurna
    permission command i ran on extracted dir: sudo chown -R http:http dokuwiki/
  50. message at
    micgro42
    seems reasonable
  51. message at
    annapurna
    yeah... i've been scratching my head on this for a while too.
  52. message at
    annapurna
    my current nginx.conf for dokuwiki: https://pastebin.com/Dt9PMZpB
  53. message at
    micgro42
    have you double checked that "http" is really the nginx user on your system and not maybe the apache user that you selected out of habit? (something that would totally happen to me)
  54. message at
    annapurna
    tee hee
  55. message at
    annapurna
    https://pastebin.com/SfSjH6sE
  56. message at
    annapurna
    but, just to say, on previous restarts, i did brute force chmod -R 777 and still had the same result.
  57. message at
    micgro42
    mh, ok.
  58. message at
    micgro42
    could you copy the exact error message you are getting?
  59. message at
    annapurna
    sure :)
  60. message at
    annapurna
    https://pastebin.com/FM0hEZZx
  61. message at
    micgro42
    mh, we really could do a better job with error reporting here. Anyway. How comfortable are you with PHP? 😅
  62. message at
    annapurna
    tee hee
  63. message at
    micgro42
    in inc/init.php there is a method called init_path
  64. message at
    annapurna
    it's been a while. but i can get around.
  65. message at
    micgro42
    could you replace it with the following: https://pastebin.com/ui0quted
  66. message at
    annapurna
    oh sure
  67. message at
    micgro42
    if you compare them, you will see that I'm merely throwing some extra errors that should show up in your log
  68. message at
    annapurna
    here's the diff to make sure i did it right: https://pastebin.com/hrYAefPL
  69. message at
    annapurna
    the page isn't working with the modified code.
  70. message at
    annapurna
    where can i find the log file?
  71. message at
    annapurna
    oops. i totally messed that up.
  72. message at
    annapurna
    one sec...
  73. message at
    annapurna
    re-did the replace. page is working. stilling looking for logs that contain the errors.
  74. message at
    annapurna
    journalctl has them. one sec...
  75. message at
    annapurna
    finally :)
  76. message at
    annapurna
    Mar 18 09:22:02 niyama nginx[56312]: 2020/03/18 09:22:02 [error] 56312#56312: *6 FastCGI sent in stderr: "PHP message: PHP Warning: Directory ./data/pages found at /usr/share/nginx/webapps/dokuwiki/data/pages, but it is not writable by webserver. in /usr/share/nginx/webapps/dokuwiki/inc/init.php on line 359" while reading response header from upstream, client: 127.0.0.1, server: wiki.niyama,
  77. message at
    annapurna
    request: "GET /install.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "wiki.niyama", referrer: "http://wiki.niyama/install.php";
  78. message at
    annapurna
    hmmm
  79. message at
    annapurna
    that's strange
  80. message at
    annapurna
    i get that even if i brute force the permissions: sudo chmod -R 777 dokuwiki/
  81. message at
    micgro42
    mh, we are seriously leaving the area of my expertise here. But I found this comment in the forum: https://forum.dokuwiki.org/post/63796
  82. message at
    annapurna
    clicky
  83. message at
    micgro42
    I've never dealt with selinux to understand what is going on. But if none of the things that I understand are the cause, maybe that is? 😅
  84. message at
    annapurna
    tee hee
  85. message at
    annapurna
    i don't think that's the problem here. i did find that posting early too. but i'm not using selinux.
  86. message at
    annapurna
    i'm running arch.
  87. message at
    annapurna
    thank you so much for trying though. i really appreciate the help. :)
  88. message at
    annapurna
    hmmm... i wonder if this is a php setup issue.
  89. message at
    annapurna
    i read earlier this morning that php has some controls on what directories it will allow scripts to write in.
  90. message at
    micgro42
    Sorry that I cannot help more
  91. message at
    micgro42
    there is that thing strict mode
  92. message at
    annapurna
    session.use_strict_mode = 0
  93. message at
    annapurna
    i'm not using open_basedir either.
  94. quit
    baker0052 (~baker0052@p5B34FC4C.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds)
  95. message at
    annapurna
    this looks promising: https://stackoverflow.com/questions/59753304/nginx-and-php-no-write-permissions
  96. message at
    annapurna
    my dokuwiki install is in a sub of /usr
  97. message at
    annapurna
    following links...
  98. join
    baker0052 (~baker0052@p5B34FC4C.dip0.t-ipconnect.de) has entered the channel
  99. message at
    annapurna
    it's a php 7.4 issue
  100. message at
    micgro42
    o.O
  101. message at
    micgro42
    good find
  102. message at
    annapurna
    trying the simple solution of installing outside /usr
  103. message at
    micgro42
    yay for breaking changes in minor versions
  104. message at
    micgro42
    🤞
  105. message at
    annapurna
    lol
  106. message at
    annapurna
    this is definitely one for the faq or install guide.
  107. message at
    annapurna
    moving dir now...
  108. message at
    annapurna
    success!!!
  109. message at
    annapurna
    i actually just did a fresh tarball extract, chmod http:http, updated my nginx conf to point to the new location, and restart nginx.
  110. message at
    annapurna
    working as expected.
  111. message at
    micgro42
    Yay :D
  112. message at
    annapurna
    :D
  113. message at
    annapurna
    hmmm... how should i notify the maintainers of this issue? i could file a bug. or will this thread in the irc logs be enough?
  114. message at
    micgro42
    Well, if you are up for it, then you could change the install guide yourself. It's a wiki :)
  115. message at
    micgro42
    otherwise, I'll do it once I get around to it
  116. message at
    micgro42
    I plan to open a ticket on GitHub about better error reporting in this method, maybe make a pull request as well
  117. message at
    micgro42
    (and then link here and the SO answer you found)
  118. message at
    annapurna
    ah. great.
  119. message at
    annapurna
    right now, i'm playing with the wiki and creating pages. learning the syntax.
  120. message at
    annapurna
    probably a note under installing from a tgz.
  121. join
    theoceaniscool (~theoceani@139.47.75.19) has entered the channel