I recently upgraded my dokuwiki installation to 2018-04-22c, and now receive a message while in the Admin section, "It seems your data directory is not properly secured. Please read http://www.dokuwiki.org/security." At that site, it discusses how to use .htaccess to secure the directory.
It says that "DokuWiki already comes with correctly configured .htaccess files," and lists the portion of the .htaccess.dist file that is supposed to take care of this issue. However, what it lists DOES NOT MATCH what is found in .htaccess.dist. The website lists,
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
But the actual .htaccess.dist file contains,
<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
Order allow,deny
Deny from all
</IfModule>
</Files>
I am on Ubuntu 16, and I believe apache2 is configured property to use .htaccess files. /etc/apache2/apache2.conf has the line (uncommented) "AccessFileName .htaccess". And I have run "sudo a2enmod rewrite && sudo service apache2 restart".
Thanks, in advance, for any help!