You are not logged in.
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
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
Offline
You're very kind, sir. I will fix this straight away once I get home.
Offline
Bingo. Thank you, Syu.
Offline
You're very welcome! Thanks for checking back in to confirm the solution.
Offline