User Tools

Site Tools


  • dokuwiki
  • Jonathan Haack
  • Haack's Networking

Backup dokuwiki first

tar zcpfv dokuwiki-backup.tar.gz /Library/Server/Web/Data/Sites/Haacks/dokuwiki

Download dokuwiki, untar it, copy it to primary dokuwiki directory

wget https://getdownloadlinkfromsite.tgz
tar zxvf dokuwiki-example-39fe13964.tgz
'cp' -af dokuwiki/* /var/www/

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:

sudo chmod g+rwx /var/www/
sudo chmod -R 755 /var/www/
sudo chown -R www-data:user /var/www/
sudo chown www-data:user /var/www/
sudo chmod -R 775 /var/www/
sudo chmod -R 755 /var/www/
sudo chmod -R 755 /var/www/
cd /var/www/
sudo chmod 2775 {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: 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.

yourwiki> chmod -R 775 data/
yourwiki> chown -R www-data:foo data/
everything below the data directory:
yourwiki/data> chmod 2775 {attic,cache,index,locks,media,meta,pages,tmp}
yourwiki/data> chown www-data:foo {attic,cache,index,locks,media,meta,pages,tmp}

oemb1905 2019/07/29 09:31

computing/dokuwiki.txt · Last modified: 2019/07/29 03:39 by oemb1905