I’ve been messing around with a Deki wiki, and now I’m ready to start using it for real. Here’s how I set it back to its newly created state.
- cd /path/to/your/deki/wiki/root
- cd ./attachments
- rm -rf *
- mysql -u root -p
- use db-catalog-name-from-mindtouch.deki.startup.xml;
- Mine is deki-kleinfelter
- DELETE FROM pages WHERE page_title!='' and page_namespace=0;
- DELETE FROM attachments;
- DELETE FROM comments;
- select user_id, user_name, user_role_id from users;
- You may want to delete some users rows. Do not delete your admin ID or the 'Anonymous' user. Me -- I didn't follow this advice. So here's the recovery:
- service dekihost stop
- mysqladmin -p drop database-name-here
- Delete everything from /path/to/deki/wiki/root
- cd to ~/Deki_Wiki_1.8.1a_Hayes_source
- cp -r web/* /path/to/deki/wiki/root
- chown -R apache /path/to/deki/wiki/root
- service httpd restart
- Browse to http://www.example.com/config/index.php
- Complete and submit the form.
- cd to the config directory under your DocumentRoot (e.g. cd /usr/local/wikis/example.com/config)
- cp LocalSettings.php to your DocumentRoot (e.g. cp LocalSettings.php /usr/local/wikis/example.com/)
- cp AdminSettings.php to your DocumentRoot (e.g. cp AdminSettings.php /usr/local/wikis/example.com/)
- cp mindtouch.host.sh ../bin/
- service dekihost start
- If I missed something, please let me know!