A few years ago I've tried installing a PHP server and PmWiki on Android
but wasn't lucky enough to get it to work.
I've used WikiAndPad, a free/open source standalone wiki:
http://wikidpad.sourceforge.net/WikiAndPad.html
TBH I didn't use it as a wiki but as a reference. It was easy enough
I use Ema Personal Wiki for my needs on Android. Syncs to dropbox as plain
text files and there is a windows application. And it's open source.
https://play.google.com/store/apps/details?id=com.janwillemboer.ema
https://github.com/janwillemb/Ema-Personal-Wiki