This may also help solve problems listed in these and other threads:
Several Issues With Installation
Problems with dokuwiki installer
Problem is permissions on a shared virtual host, or just permissions wherever you're installed. Unpacking dokuwiki's tar
file creates all files as owned by you, with moderately restrictive permissions (appropriately). On most unix-like systems non-root accounts are not allowed to chown.
Solution is to delete the
data and conf directories, and write a php script to copy those directories
back in, which creates them with web server ownership (e.g. "nobody" or "web-server"). This makes everything in data and conf writable by the web server.
Solution adapted from
http://pmwiki.com/wiki/PmWiki/Installation section
3.b.
I think the installer should be changed to incorporate this installation behavior (in a much more careful way than what I've done).
Following succeeds. I haven't done much admin or site use, and no upgrade,
so I don't know what problems I'll have yet. So far so good.
* tar -xvf dokuwiki*.tar
* mv <unpacked dokuwiki> dokuwiki
* tar -xvf dokuwiki*.tar (yes, do it again)
* mv <unpacked dokuwiki> dokuwiki.from
* cd dokuwiki
* rm -rf conf
* rm -rf data
* cd ..
* chmod 2777 dokuwiki
.................
Copy this script (or write a better one) into the dir above dokuwiki, double check it, make it
runnable and readable, then run http://.../whatever.php from a browser.
This will copy the deleted directory trees back in, but now they'll be owned
by the web server user (nobody).
<?php
echo '<pre>';
$last_line = system('cp -Rn dokuwiki.from/conf dokuwiki', $retval);
$last_line = system('cp -Rn dokuwiki.from/data dokuwiki', $retval);
// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>
........................
* chmod 755 dokuwiki
* add the following to the top of dokuwiki/.htaccess
.......
Deny from all
Allow from 192.168.1.1
.......
from the security page:
http://wiki.splitbrain.org/wiki:security
and substitute your IP for the one given on the Allow line.
* browser: http://.../dokuwiki/install.php
* follow the rest of the install, security and config instructions
* move the "restore conf and data" script to a non-web accessible directory
* remove the Deny/Allow lines from dokuwiki/.htaccess to make the wiki
accessible