I've made a fresh install of DokuWiki on an Ubuntu 16.04 server machine with Apache2
The installation went fine but in the admin dashboard a big red balloon alerts me that the Data directory is not properly secured however:
* Data and its subdirectories\files are on a 0700 permission
* The file data/pages/wiki/dokuwiki.tx yields a "Forbidden"
* My .conf for the wiki has:
<VirtualHost *:80>
ServerName myserver.name
DocumentRoot /var/www/dokuwiki
<Directory /var/www/dokuwiki/>
order deny,allow
allow from all
</Directory>
#<LocationMatch "/var/www/dokuwiki/(data|conf|bin|inc)/">
# Order allow,deny
# Deny from all
# Satisfy All
#</LocationMatch>
</VirtualHost>
As you can see from the comment lines I've also tried to use the location match but nothing changes.
Furthermore after all this permissions messing my edit toolbar is broken :rolleyes:
I'd really love some insight of what's happening here ;-)
Edit
It's clearly a permissions problem, regarding the toolbar using the "inspect element" from firefox it turns out that all the requests to /lib/ for the toolbar icons yield a 404 (the files are there however).
The user running php is www-data and I've already set it as the owner of the whole dokuwiki directory if this info helps somehow.
Edit 2
The toolbar issue has been solved. The cause was that:
* My registered domain is example.com
* Dokuwiki path is example.com/longUrl
* I've set on cloudfare the CNAME alias doc.example.com as alias of example.com
* The Apache conf was something like:
ServerName doc.example.com
DocumentRoot /var/www/longUrl
So Docuwiki rightfully thought to
live under example.com and the
baseurl setting was blank (autodetect), had to manually change it to doc.example.com and now it fetches the toolbar images correctly. I hope that his "kind of subdomain alis" doesn't break anything else. However the Data alert balloon is still there.