You are not logged in.

#1 2012-08-09 13:53:04

brittanderson
Member
Registered: 2010-09-16
Posts: 34

dokuwiki permissions

Upgrading dokuwiki I ran into permission problems. I verified that all the files had http:http owner and group, but still I could not get the install.php file to stop displaying the permission problem screen. While the dokuwiki says the package unpacks in /srv/http, it actually appears to unpack in /usr/share/webapps/dokuwiki and has symlinks for the conf and data files elsewhere. Even when I changed the file permissions there, dokuwiki did not seem to like that /etc/webapps and /var/lib were parent directories not owned by http:http. My fix was to mv everything into /srv/http.
Question: Is the dokuwiki wiki entry out of date, or did I do something wrong at the install? And was there a better way to fix this problem that I should know about in the future? Thank you.

Offline

#2 2012-09-05 20:11:46

bascule
Member
Registered: 2012-09-05
Posts: 2

Re: dokuwiki permissions

Could you tell me how you got this to work?

I did

mv /usr/share/webapps/dokuwiki/ /srv/http/

, followed by

chown -R http:http dokuwiki/

As far as I can tell, all the relevant files have the correct permisions:

[root@arch-laptop dokuwiki]# ls -al
total 100
drwxr-xr-x 5 http http  4096 Jul 16 06:20 .
drwxr-xr-x 3 root root  4096 Sep  5 19:27 ..
drwxr-xr-x 2 http http  4096 Jul 13 12:13 bin
lrwxrwxrwx 1 http http    21 Jul 16 06:20 conf -> /etc/webapps/dokuwiki
-rw-r--r-- 1 http http 18092 Jul 13 12:13 COPYING
lrwxrwxrwx 1 http http    17 Jul 16 06:20 data -> /var/lib/dokuwiki
-rw-r--r-- 1 http http  2290 Jul 13 12:13 doku.php
-rw-r--r-- 1 http http 17037 Jul 13 12:13 feed.php
lrwxrwxrwx 1 http http    31 Jul 16 06:20 .htaccess -> /etc/webapps/dokuwiki/.htaccess
-rw-r--r-- 1 http http  1526 Jul 13 12:13 .htaccess.dist
drwxr-xr-x 6 http http  4096 Jul 13 12:13 inc
-rw-r--r-- 1 http http   182 Jul 13 12:13 index.php
-rw-r--r-- 1 http http 17781 Jul 13 12:13 install.php
drwxr-xr-x 8 http http  4096 Jul 13 12:13 lib
-rw-r--r-- 1 http http   306 Jul 13 12:13 README
-rw-r--r-- 1 http http    20 Jul 13 12:13 VERSION

The problem seems to be the linked files for conf and data, as they are the ones that the DokuWiki install.php is throwing up an error about:

DokuWiki Installer
The installer found some problems, indicated below. You can not continue until you have fixed them.

    {DOCUMENT_ROOT}dokuwiki/conf/ is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/pages is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/attic is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/media is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/media_attic is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/media_meta is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/meta is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/cache is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/locks is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/index is not writable by DokuWiki. You need to fix the permission settings of this directory!
    {DOCUMENT_ROOT}dokuwiki/data/tmp is not writable by DokuWiki. You need to fix the permission settings of this directory!

Any ideas to help out an Arch newbie?

Offline

#3 2012-09-05 20:21:57

bascule
Member
Registered: 2012-09-05
Posts: 2

Re: dokuwiki permissions

Having re-read your post, I now see that you *also* mv'd the symlinked files into the /srv/http/dokuwiki directory.

I tried this and it worked OK.

I suppose I should go ahead and update the DokuWiki Wiki page smile

Last edited by bascule (2012-09-05 20:30:24)

Offline

#4 2012-09-29 16:11:47

dront78
Member
From: Moscow
Registered: 2010-11-24
Posts: 47

Re: dokuwiki permissions

dokuwiki addon to

/etc/php/php.ini
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/:/var/lib/dokuwiki/

Offline

Board footer

Powered by FluxBB