eXe:1488994772 wrote
Should it not be possible to move bin out of the document root if I want to use it later?
Yes, and no (not if you want to use it
in that non-standard location).*1
The guide you followed may be a little unclear....
If you don't have shell access on your server anyway you can simply delete the directory and its contents.
(which implies that the standard package of DokuWiki means those CLI tools won't work in non-standard locations).
i.e. if you don't use the CLI tools in
/bin, it won't matter if you move or delete
/bin (they won't work if deleted or moved, but that's not a problem if you don't
try and use them)
The simplest solution is to just cp the
/bin directory back into your webroot when you want to use it, and rm it after use.
Alternatively take a look at how Debian packages DokuWiki
DokuWiki Debian
$DokuWiki/bin/ /usr/share/dokuwiki/bin/
$DokuWiki/conf/ /etc/dokuwiki/
$DokuWiki/data/ /var/lib/dokuwiki/data/
$DokuWiki/doku.php /usr/share/dokuwiki/
$DokuWiki/feed.php /usr/share/dokuwiki/
$DokuWiki/inc/ /usr/share/dokuwiki/inc/
$DokuWiki/index.php /usr/share/dokuwiki/
$DokuWiki/lib/ /var/lib/dokuwiki/lib/
Symlinks and apache directives are used, and it's possible that the tools and other DokuWiki configurations are also different from the stock DokuWiki.
[curious] if you install the version of DokuWiki that only includes the languages you want - what purpose would running
striplangs.php serve?
*1 Why don't tools in
/bin process files in my DokuWiki installation when I move them to a random location? :-) Perhaps because the DokuWiki installation doesn't create a system variable that those tools can access to determine the location of the files they are meant to process? or because those tools don't accept a CLI parameter for the location of the DokuWiki location.