====== Command Line Tools ====== [[DokuWiki]] comes with a few PHP scripts meant to be executed from the (UNIX) commandline. All those scripts are located in the ''bin'' directory. ===== dwpage.php ===== Usage: dwpage.php [opts] Utility to help command line Dokuwiki page editing, allow pages to be checked out for editing then committed after changes Normal operation would be; ACTIONS checkout: see $ dwpage.php --help checkout commit: see $ dwpage.php --help commit lock: see $ dwpage.php --help lock OPTIONS -h, --help=: get help e.g. $ ./dwpage.php -hcommit e.g. $ ./dwpage.php --help=commit ===== indexer.php ===== Allows you to update the [[search]] index. Usage: indexer.php Updates the searchindex by indexing all new or changed pages when the -c option is given the index is cleared first. OPTIONS -h, --help show this help and exit -c, --clear clear the index before updating ===== wantedpages.php ===== Usage: wantedpages.php [wiki:namespace] Outputs a list of wanted pages (pages which have internal links but do not yet exist). If the optional [wiki:namespace] is not provided, defaults to the root wiki namespace OPTIONS -h, --help=: get help ====== Discussion ====== I get only this: $ ./bin/dwpage.php --help X-Powered-By: PHP/4.4.7 Content-type: text/html when I run it at [[http://www.dreamhost.com/|DreamHost]]. Any ideas? ---- Install the command-line interpreter for the php \\ Debian way: $# apt-get install php5-cli $# ... $# php5 dwpage.php ---- Can not be done since Dreamhost users are not root. Is there a way to pass arround this without needing to compile php myself and run everything from my $HOME? ---- On Dreamhost you can run it like this: $ /usr/local/php5/bin/php dwpage.php ---- I was getting this: www-data@samantha:/usr/share/dokuwiki/bin/$ php ./indexer.php edv:systeme... Warning: array_keys(): The first argument should be an array in /usr/share/dokuwiki/inc/indexer.php on line 57 Warning: join(): Bad arguments. in /usr/share/dokuwiki/inc/indexer.php on line 57 Turned out to be due to missing metadata. I changed inc/indexer.php as follows: function idx_getPageWords($page) { ... if ($conf['deaccent']) { $links = p_get_metadata($page, 'relation references', true); ... } then it seemed to work properly.