The -R should be fine. A
chmod -R 777 data in your DokuWiki dir should work as a first test. If you get it work this way, try to lower permissions again. From what you write I'd suggest the following:
chown -R user:group data
find data -type d -exec chmod 775 {} \;
find data -type f -exec chmod 664 {} \;