Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
computing:dokuwiki [2022/07/15 04:42] – oemb1905 | computing:dokuwiki [2022/07/15 04:47] – oemb1905 |
---|
| |
------------------------------------------- | ------------------------------------------- |
| To upgrade dokuwiki, first back up the install, then wget the new tgz file, then unpack and migrate the new content on top of the existing as follows: |
Backup dokuwiki first | |
tar zcpfv dokuwiki-backup.tar.gz /Library/Server/Web/Data/Sites/Haacks/dokuwiki | zip -r doku-bu-date.zip /path/to/doku |
| |
Download dokuwiki, untar it, copy it to primary dokuwiki directory | |
wget https://getdownloadlinkfromsite.tgz | wget https://getdownloadlinkfromsite.tgz |
tar zxvf dokuwiki-example-39fe13964.tgz | tar zxvf dokuwiki-example-39fe13964.tgz |
'cp' -af dokuwiki/* /var/www/jonathanhaack.com/public_html/dokuwiki/ | 'cp' -af dokuwiki/* /var/www/jonathanhaack.com/public_html/dokuwiki/ |
| |
Often, I need to recursively chmod the entire dokuwiki directory at 777, and then one by one fix the permissions on dokuwiki after I do the upgrade/copy command from above. Here are the permissions I use: | Once that's complete, the permissions will be wrong on the files you copied over since root performed that task. In order to make the instance functional again, you need to re-update the permissions: |
| |
sudo chmod g+rwx /var/www/jonathanhaack.com/public_html/dokuwiki | sudo chmod g+rwx /var/www/jonathanhaack.com/public_html/dokuwiki |
sudo chown www-data:user {attic,cache,index,locks,media,meta,pages,tmp,media_attic,media_meta} | sudo chown www-data:user {attic,cache,index,locks,media,meta,pages,tmp,media_attic,media_meta} |
| |
Dokuwiki details their permission recommendations here: [[https://www.dokuwiki.org/install:permissions|Install Permissions]]. The page is a bit complicated so the above is a simpler (but longer in syntax) version of the whole page, including the partial synopsis they put at the end, which I reprint below. | Dokuwiki details their permission recommendations here: [[https://www.dokuwiki.org/install:permissions|Install Permissions]]. The page is a bit complicated so the above is a simpler (but longer in syntax) version of the whole page, including the partial synopsis they put at the end, which I reprint below as a reminder/historical purposes. |
| |
yourwiki> chmod -R 775 data/ | yourwiki> chmod -R 775 data/ |
yourwiki/data> chown www-data:foo {attic,cache,index,locks,media,meta,pages,tmp} | yourwiki/data> chown www-data:foo {attic,cache,index,locks,media,meta,pages,tmp} |
| |
--- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/07/14 22:42// | --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/07/14 22:44// |