Rename the file name of the logo to logo.png
Log into DokuWiki as admin.
Click on Media Manager link.
Choose the wiki namespace, the logo is stored here.
Select the Upload tab and upload the new logo.
Refresh the web, you should see the new logo, if this is not the case try to clean the cache of your browser.