Dokuwiki permission error

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
notaduck
New here
Posts: 8
Joined: Sun Jan 10, 2016 2:57 am

Dokuwiki permission error

Post by notaduck » Sun Jan 10, 2016 3:01 am

Hello. I have installed Dokuwiki through the appcenter and saw there was a bunch of updates!!
Then i thought the easiest way to update dokuwiki was to download the Upgrade plugon for automatic upgrade, but i keep getting this error?

Code: Select all

There was a file copy error while attempting to install files for plugin upgrade: the disk could be full or file access permissions may be incorrect. This may have resulted in a partially installed plugin and leave your wiki installation unstable.


My permissions is :

Code: Select all

[/share/Web] # ls -al
drwxrwxrwx    3 admin    administ      4096 Jan  9 16:44 ./
drwxrwxrwx   24 admin    administ      4096 Jan  9 07:56 ../
drwxrwxrwx    2 admin    administ      4096 Jan  8 19:58 @Recycle/
lrwxrwxrwx    1 admin    administ        40 Jan  9 16:44 dokuwiki -> /share/CACHEDEV1_DATA/.qpkg/DokuWiki/web/
-rw-r--r--    1 admin    administ      1601 Jan  8 19:58 index.php


But i have to admit I an not sure what the right permissions should be? first day with Qnap here

pczekalski
Starting out
Posts: 16
Joined: Sun May 31, 2015 2:18 am

Re: Dokuwiki permission error

Post by pczekalski » Sat Sep 09, 2017 10:20 pm

Same here on TVS-473.
Install goes well, I can log in through admin/admin, change the admin password and there is no way you can install plugins via the web interface.
There must be some security/permission problem during install.

Regards,

P.
-------------------
TVS-473 (3x6TB Seagate IronWolf) (24GB RAM)

dabo7
New here
Posts: 6
Joined: Fri May 27, 2016 7:54 pm

Re: Dokuwiki permission error

Post by dabo7 » Fri Oct 20, 2017 9:49 pm

I know this is a REALLY old thread, but I found the solution to this. I had to manually change my permission settings for the .qpkg/DokuWiki/web/ and allow the update. Here's the steps I used on my TS-251+:

I logged in to the NAS using PuTTY and performed the following commands

Code: Select all

[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # ls -la
total 164
drwxr-xr-x    3 admin    administ      4096 Oct 20 09:22 ./
drwxrwxrwx   34 admin    administ      4096 Oct 20 09:22 ../
-rw-r--r--    1 admin    administ    145380 Oct 20 09:22 .list
-rwxr-xr-x    1 admin    administ       800 Oct 20 09:22 .uninstall.sh*
-rwxr-xr-x    1 admin    administ      1672 Jul 20  2014 DokuWiki.sh*
drwxr-xr-x    7 admin    administ      4096 Jul 20  2014 web/

web/ needs to be changed to 777

Code: Select all

[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # chmod -R 777 web

[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # ls -la
total 164
drwxr-xr-x    3 admin    administ      4096 Oct 20 09:22 ./
drwxrwxrwx   34 admin    administ      4096 Oct 20 09:22 ../
-rw-r--r--    1 admin    administ    145380 Oct 20 09:22 .list
-rwxr-xr-x    1 admin    administ       800 Oct 20 09:22 .uninstall.sh*
-rwxr-xr-x    1 admin    administ      1672 Jul 20  2014 DokuWiki.sh*
drwxrwxrwx    7 admin    administ      4096 Jul 20  2014 web/

Install the DokiWiki upgrade plugin from within the DokuWiki page using the url from the plugin's main page "https://github.com/splitbrain/dokuwiki-plugin-upgrade/zipball/master" and perform the DokuWiki upgrade. I then had to stop and re-start my QNAP DokuWiki instance. The page formatting was very messed up on the wiki but restarting it seemed to fix it. (Note: I did NOT use the default admin account. I made a new admin login account and deleted that old one. So not sure if that made a difference or not)

When you're done don't forget to set the web folder permissions back to the default:

Code: Select all

[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # chmod -R 755 web
[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # ls -la
total 164
drwxr-xr-x    3 admin    administ      4096 Oct 20 09:22 ./
drwxrwxrwx   34 admin    administ      4096 Oct 20 09:22 ../
-rw-r--r--    1 admin    administ    145380 Oct 20 09:22 .list
-rwxr-xr-x    1 admin    administ       800 Oct 20 09:22 .uninstall.sh*
-rwxr-xr-x    1 admin    administ      1672 Jul 20  2014 DokuWiki.sh*
drwxr-xr-x    8 admin    administ      4096 Oct 20 09:39 web/


I'm assuming you'll have to continue these steps every time you attempt to install a plugin. So it's probably better to install most of the plugins you'll need all at once.

Hope this helps someone else out.

HighPG
New here
Posts: 6
Joined: Sat Sep 08, 2018 6:24 pm

Re: Dokuwiki permission error

Post by HighPG » Sat Apr 27, 2019 1:31 am

Thank you dabo7! :geek: saved my day! :D

deljones
Know my way around
Posts: 144
Joined: Wed Nov 16, 2011 7:26 am

Re: Dokuwiki permission error

Post by deljones » Sat Aug 31, 2019 4:29 am

Fantastic.. This worked for me very well.. Thank you so much for sharing...

Derek
QNAP 269L with 2 x 1TB drives, 3gig RAM
Firmware 4.3.4
Running: WordPress, Piwigo, ZenPhoto & Subsonic & Much much more!

Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”