Hi, I have read all the posts relating to this and am none the wiser, unfortunately..
I have a dokuwiki installation in a subfolder of my root.
The root folder contains Humhub. It all worked fine on my development server (Wamp).
All works fine as far as browsing but I first noticed a strange behaviour when I tried to change an ACL. It wouldn't save or update and defaults to my site index page. Changing config settings works, and editing a page works, ie it saves, but it defaults to the root index page, not itself.
Dokuwiki is in mydomain/public_html/doku.
error message same as everyone else so presumably is protecting :[Mon Jun 13 03:37:46.249368 2016] [access_compat:error] [pid 1281:tid 140285434574592] [client 103.21.2.15:50997] AH01797: client denied by server configuration: /home/mydomain/public_html/doku/data/security.png, referer:
http://mydomain.com/doku/doku.php?id=start&do=admin.
Everything tests OK but I get the idea that the .htaccess in the root may be conflicting. I have no idea about mod_rewrite but suspect it's something to do with it. Of course, it may not be.
My dokuwiki install is as installed.
the dokuwiki .htaccess is (unchanged):
## Enable this to restrict editing to logged in users only
## You should disable Indexes and MultiViews either here or in the
## global config. Symlinks maybe needed for URL rewriting.
#Options -Indexes -MultiViews +FollowSymLinks
## make sure nobody gets the htaccess, README, COPYING or VERSION files
<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
Order allow,deny
Deny from all
</Files>
## Uncomment these rules if you want to have nice URLs using
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
#RewriteEngine on
#
#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
#RewriteRule ^$ doku.php [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) doku.php?id=$1 [QSA,L]
#RewriteRule ^index.php$ doku.php
#
## Not all installations will require the following line. If you do,
## change "/dokuwiki" to the path to your dokuwiki directory relative
## to your document root.
#RewriteBase /dokuwiki
#
## If you enable DokuWikis XML-RPC interface, you should consider to
## restrict access to it over HTTPS only! Uncomment the following two
## rules if your server setup allows HTTPS.
#RewriteCond %{HTTPS} !=on
#RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
In my root folder the .htaccess is:
FCGIWrapper /home/mydomain/php-cgi .php
RewriteEngine on
# prevent httpd from serving dotfiles (.htaccess, .svn, .git, etc.)
RedirectMatch 403 /\..*$
# RewriteBase is required in some hosting environments (Amazon EC2, ...)
#RewriteBase /
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# prevent application 404 errors
RewriteCond %{REQUEST_FILENAME} !robots\.txt
RewriteCond %{REQUEST_FILENAME} !favicon\.ico
# otherwise forward it to index.php
RewriteRule . index.php
If I disable the root .htaccess it works until I try to change something then get a 403, access not permitted on this server.
I would really appreciate some clue as to what is happening here from those more educated than myself.
Update: Played around with nice URLs and they now work but behaviour on editing ACL list is the same.
Update: looking at Firefox console...I am getting a POST error. Why might that be?