DokuWiki Version: 2017-02-19b
Note: My wiki currently only has the admin account. This script will be useful in the future, but not so much right now.
I was reading the
security page on DokuWiki.org and saw a link for how to remove ACL rules for deleted pages. The page itself is entitled:
Clean up Access Control Lists. I uploaded the script there to my server and created a cron job to run it. It returned an error:
PHP Warning: require_once(/home/username/public_html/doku/inc/cliopts.php): failed to open stream: No such file or directory in /home/username/public_html/doku/bin/clean_up_acl.php on line 8
PHP Fatal error: require_once(): Failed opening required '/home/username/public_html/doku/inc/cliopts.php' (include_path='/usr/local/cpanel/3rdparty/php/56/lib/php:.') in /home/username/public_html/doku/bin/clean_up_acl.php on line 8
So I went back to the script and checked what was located on line 8:
require_once DOKU_INC.'inc/cliopts.php';
I headed into my DokuWiki install and found inc/
cli.php, but no file named
cliopts.php. So I went online and did a search for
cliopts.php and I found
this version. I then added it to the proper directory.
Now the cron job returned different information:
Removed: '* @ALL 0' (user does not exist).
Removed: '* @user 8' (user does not exist).
That is what has happened so far. I now have a few questions, if you fine folks would be so kind :-p.
____________________
1) Why was
cliopts.php missing from my installation of DokuWiki? Perhaps it is no longer used or the clean_acl.php script is outdated?
2) My wiki has a single admin account and very few pages/namespaces. Does the information returned by the cron job look normal? I'm not sure what to expect, as I don't know how to read the PHP in the script. So no idea what normal output would look like.
3) Is it okay to use the
cliopts.php file that I found?