Hello!
I have since years a Debian server running Dokuwiki from the Debian default sources.
However, when Bullseye still kept the old Greebo release, I decided I wanted to update.
According to the Forums here, it boils down to copying the files from the different locations into a folder, and then unpacking a current archive over it.
Let's say, it's not that simple.
a) just doing a cp -ar <source> <destination> is not a good idea: Debian uses tons of links it seems, resulting in the files not being copied, but just the links.
=> Whats the best strategy to copy the files from a debian installation to a folder for unpacking an update over it?
b) There is a really good reason for the way Debian organizes the files: All the config files are not accessible from the internet, as they are outside the directory tree of the server.
=> What is the best way to put the entire dokuwiki folder above the htdocs folder? An index.php calling the doku.php? After all, the folder above the htdocs folder can be made readable without much of a issue, as those locations cannot be recreated through URLs, being located above the BaseURL. That is, after all, what the Debian setup does, more or less.
c) When there are more that found Dokuwiki the way I did, a small, tested instruction on how to convert a Debian installation to a Dokuwiki one.
I ran face first into the "copied links" issue, meaning that I basically overwrote stuff in the Debian installation.
The Dokuwiki installation still carries the location configuration data for the Debian installation along.
Fortunately, all data files and wikipages are still there and can be accessed directly , so despite my errors, nothing is actually lost, although currently neither the Debian nor the Dokuwiki install work. The doku.php does, after all, access stuff outside the htdocs directory.
I do not know how many people discover dokuwiki via Debian first.