kynan
I tried upgrading to dokuwiki-2009-12-25c “Lemming” using the dokuwiki downloader, that I also used to install the version I want to upgrade. The idea is that all the files belong to the web server and I would upgrade by FTP upload, the upgraded files would belong to the FTP user and I want to avoid permission issues and mixed ownership.
But my attempt did not succeed. In step 3 the archive and the download script are deleted, without anything having been extracted (I double checked). I tried a fresh install using the downloader in another folder and it gets stuck in step 4 saying "Extraction completed successfully. Please continue to next step", but keeps returning to the same page over and over again, probably repeating the extraction every time, as the page load takes almost a minute.
Has anybody successfully used the downloader for upgrading? Is that a "valid" use for it? Imho it should be, otherwise using it for initial has no point really. I don't remember how the initial install worked for me, but I was a bit confused in my attempt now that the whole subfolder from archive is extracted and not only the contents.
Any insights appreciated!
kynan
andi
There was a bug in the downloader that made it fail with hotfix releases. I fixed this.
The downloader was not created with updating in mind. It might work when you delete the doku.php file. Not sure. Try it and report back.
kynan
Thanks for the quick fix! I tried as you suggested and interestingly, it does extract doku.php and then gets stuck with the error "Can't open the archive in write mode !", which does not make any sense to me. The webserver can actually write to the archive file and, but not the FTP user. So the only way to get rid of the archive again is to run the installer again, which will then delete both archive and itself as before, without extracting anything. The directory is owned by the FTP user but has 0777 permissions.
What is then the way of choice for upgrading in my configuration? Imho the downloader is a really convenient thing to have and it would be nice if it supported upgrading as well.
edit I remembered that I had applied some hotfix manually some time ago and those files were not writeable by the webserver. I fixed that and tried again and now it worked! Great!
Just an idea: Would it be possible to integrate this downloader code into the dokuwiki distribution to implement some kind of "auto upgrade" from the admin CP?