You are not logged in.

#1 2014-06-08 05:14:56

musasabi
Member
From: Chicago, IL
Registered: 2011-06-23
Posts: 63

dokuwiki inital setup [SOLVED]

I'm trying to run a local copy of dokuwiki to mess around with it and figure out if I want to use it. That said, what I've got installed is:

Packages (4): apache-2.4.9-1  dokuwiki-20140505-2  php-5.5.13-1  php-apache-5.5.13-1

A call to phpinfo() works just fine within /srv/http/index.php when localhost is typed into the browser, so it seems that the requisite software is working. However, after following the installation instructions for Apache, I get a 403 when I point my browser to localhost/dokuwiki/install.php or localhost/dokuwiki/ or anything along those lines.

[patrick@blackbox ~]$ cat /etc/httpd/conf/extra/dokuwiki.conf 
#Alias /dokuwiki /usr/share/webapps/dokuwiki
#<Directory /usr/share/webapps/dokuwiki/>
#    Options +FollowSymLinks
#    AllowOverride All
#    order allow,deny
#    allow from all
#    php_admin_value open_basedir "/tmp/:/usr/share/webapps/dokuwiki/:/etc/webapps/dokuwiki/:/var/lib/dokuwiki/"
#</Directory>

Alias /dokuwiki /usr/share/webapps/dokuwiki
<Directory /usr/share/webapps/dokuwiki/>
    Options +FollowSymLinks
    AllowOverride All
    order allow,deny
    allow from all
    php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/dokuwiki/:/var/lib/dokuwiki/"
</Directory>

The commented out block is the content that came from the pacman install. The uncommented block is from the wiki. Both produce the same results. Then, in /etc/httpd/conf/httpd.conf:

...
Include conf/extra/dokuwiki.conf
...

And finally, from the tip on permissions from the wiki:

[patrick@blackbox ~]$ ls -alh /etc/webapps/dokuwiki/
total 92K
drwxrwxr-x 2 http http 4.0K May  6 07:09 .
drwxr-xr-x 3 root root 4.0K May  8 08:14 ..
-rw-r--r-- 1 http http  448 May  6 07:09 acl.auth.php.dist
-rw-r--r-- 1 http http 2.0K May  6 07:09 acronyms.conf
-rw-r--r-- 1 http http  12K May  6 07:09 dokuwiki.php
-rw-r--r-- 1 http http  354 May  6 07:09 entities.conf
-rw-r--r-- 1 http http 1.5K May  8 08:14 .htaccess
-rw-r--r-- 1 http http 1.6K May  6 07:09 interwiki.conf
-rw-r--r-- 1 http http 1.2K May  6 07:09 license.php
-rw-r--r-- 1 http http  462 May  6 07:09 local.php.dist
-rw-r--r-- 1 http http 2.6K May  6 07:09 mediameta.php
-rw-r--r-- 1 http http 2.2K May  6 07:09 mime.conf
-rw-r--r-- 1 http http  12K May  6 07:09 mysql.conf.php.example
-rw-r--r-- 1 http http  173 May  6 07:09 plugins.php
-rw-r--r-- 1 http http  552 May  6 07:09 plugins.required.php
-rw-r--r-- 1 http http  105 May  6 07:09 scheme.conf
-rw-r--r-- 1 http http  748 May  6 07:09 smileys.conf
-rw-r--r-- 1 http http  153 May  6 07:09 users.auth.php.dist
-rw-r--r-- 1 http http 1.7K May  6 07:09 wordblock.conf

...

[patrick@blackbox ~]$ ls -alh /var/lib/dokuwiki/
total 20K
drwxr-xr-x  5 http http 4.0K May  8 08:14 .
drwxr-xr-x 21 root root 4.0K Jun  8 00:00 ..
drwxr-xr-x 12 http http 4.0K May  8 08:14 data
drwxr-xr-x 15 http http 4.0K May  6 07:10 plugins
drwxr-xr-x  3 http http 4.0K May  6 07:09 tpl

...

[patrick@blackbox ~]$ ls -alh /usr/share/webapps/dokuwiki/
total 108K
drwxr-xr-x 5 http http 4.0K May  8 08:14 .
drwxr-xr-x 3 root root 4.0K May  8 08:13 ..
drwxr-xr-x 2 http http 4.0K May  6 07:09 bin
lrwxrwxrwx 1 http http   35 May  8 08:14 conf -> ../../../../../etc/webapps/dokuwiki
-rw-r--r-- 1 http http  18K May  6 07:09 COPYING
lrwxrwxrwx 1 http http   36 May  8 08:14 data -> ../../../../../var/lib/dokuwiki/data
-rw-r--r-- 1 http http 2.3K May  6 07:09 doku.php
-rw-r--r-- 1 http http  311 May  6 07:09 .editorconfig
-rw-r--r-- 1 http http  19K May  6 07:09 feed.php
lrwxrwxrwx 1 http http   31 May  8 08:14 .htaccess -> /etc/webapps/dokuwiki/.htaccess
-rw-r--r-- 1 http http 1.5K May  6 07:09 .htaccess.dist
drwxr-xr-x 6 http http 4.0K May  6 07:09 inc
-rw-r--r-- 1 http http  182 May  6 07:09 index.php
-rw-r--r-- 1 http http  20K May  6 07:09 install.php
drwxr-xr-x 6 http http 4.0K May  8 08:14 lib
-rw-r--r-- 1 http http  306 May  6 07:09 README
-rw-r--r-- 1 http http  217 May  6 07:09 .travis.yml
-rw-r--r-- 1 http http   29 May  6 07:10 VERSION

So what'd I miss?

Last edited by musasabi (2014-06-12 01:18:30)

Offline

#2 2014-06-11 08:00:33

-Syu
Member
Registered: 2012-01-24
Posts: 29

Re: dokuwiki inital setup [SOLVED]

musasabi wrote:

So what'd I miss?

If you are running Apache 2.4 or newer, you will have to change the following lines:

    order allow,deny
    allow from all

to read:

    Require all granted

https://wiki.archlinux.org/index.php/dokuwiki#Apache

Offline

#3 2014-06-11 15:50:56

musasabi
Member
From: Chicago, IL
Registered: 2011-06-23
Posts: 63

Re: dokuwiki inital setup [SOLVED]

You're very kind, sir. I will fix this straight away once I get home. smile

Offline

#4 2014-06-12 01:24:51

musasabi
Member
From: Chicago, IL
Registered: 2011-06-23
Posts: 63

Re: dokuwiki inital setup [SOLVED]

Bingo. Thank you, Syu.

Offline

#5 2014-06-12 07:54:00

-Syu
Member
Registered: 2012-01-24
Posts: 29

Re: dokuwiki inital setup [SOLVED]

You're very welcome! Thanks for checking back in to confirm the solution.

Offline

Board footer

Powered by FluxBB