I'm not sure what Dokuwiki on a stick has to do with moving from XP to Win 7, unless you moved everything from XP to a memory stick. In any event there should not be any problem moving from one system to the other. Install apache and php on Windows 7 and activate php in
httpd.conf as described here:
http://php.net/manual/en/install.windows.apache2.php
You should find httpd.conf here:
C:\Program Files (x86)\Apache Software Foundation\Apache2.x\conf
Then simply copy your dokuwiki folder into
Apache2.x\htdocs
The 'x' in
Apache2.x refers to your distribution of Apache.
Delete all the directories in
data/cache.