andi:1180765471 wrote
AFAIK there is no need to run the install.php when install the Debian (or Ubuntu) package of DokuWiki, because the Debian installer takes care of the setup process.
1/ it would be nice if it would be said somewhere what the installer does, concretely
2/ i'm running debian, but I cannot upgrade to the latest version since it's not on the debian server (i.e. I just installed dw with apt-get install, and then going to the homepage it shows the link "new version avail") - so I got the TGZ: read on ...
3/ it would be nice to provide some basic instructions for upgrading
* a) how to cope with the problem that tar xfz writes into a directory dokuwiki-xxxxx (< version spec) and you cannot do "mv * .." or so (supposed you unpacked inside the dw dir which is /usr/share/dokuwiki for me) in order to move new files over the old ones.
a simple solution should be suggested like :
(i) cd /usr/share (or whatsoever)
(ii) unpack the TGZ
(iii) rename existing dir DW (=dokuwiki in the sequel) into DW-old (if doing this for the first time)
(iv) create symbolic link DW -> DW-xxxxxx (created by tar xfz)
(v) fix data & conf symlinks
* b) tell : should you run install.php or dpkg-reconfig or nothing at all ? (why not a neat script upgrade.sh ?)
* c) (what else to do, if any)
4/ the installer requires DW/conf (which by default is /etc/DW/) to be writable for the web server and thus for anybody who uses it from anywhere
- i.e. either you have a big security hole, or there's not much interest in having a "web based installer" if you have to do various chmods before & after (then it would be easier to have an install.sh that does all-in-one)
5/ I noticed half of the du is inside lang - add to the installer an option to suppress unneeded languages
6/ why I'm here : I also got the "(un)modified DW" error.
mainly because the first thing I do on any such install (from drupal (largest so far) to wikini (smallest so far))
is to replace the stupid (sorry) "index.php : Location( wikiname.php )" by a symbolic link to wikiname.php
and the line
$QUERY = trim(@$_REQUEST['id'])
by
if(!$QUERY = trim(@$_REQUEST['id']) and $ID=strtok($_SERVER['query_string'],'&')
and FALSE === strpos($ID,'=')) $QUERY=$ID;
since I largely prefer URLs like myserver/?start to myserver/wikiname.php?id=start