User Tools

Site Tools


computing:dokuwiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
computing:dokuwiki [2018/11/28 05:55] oemb1905computing:dokuwiki [2022/07/15 04:42] oemb1905
Line 11: Line 11:
  
 Download dokuwiki, untar it, copy it to primary dokuwiki directory Download dokuwiki, untar it, copy it to primary dokuwiki directory
-  wget https://download.dokuwiki.org/out/dokuwiki-c5525093cf2c4f47e2e5d2439fe13964.tgz +  wget https://getdownloadlinkfromsite.tgz 
-  tar zxvf dokuwiki-c5525093cf2c4f47e2e5d2439fe13964.tgz +  tar zxvf dokuwiki-example-39fe13964.tgz 
-  'cp' -af dokuwiki/* /Library/Server/Web/Data/Sites/Haacks/dokuwiki+  'cp' -af dokuwiki/* /var/www/jonathanhaack.com/public_html/dokuwiki/
      
-Fix permissions on 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: 
-  chmod g+rwx /Library/Server/Web/Data/Sites/Haacks/dokuwiki +
-   +
-Permission+
  
-   * data directory: +  sudo chmod g+rwx /var/www/jonathanhaack.com/public_html/dokuwiki 
-    * ''yourwiki> chmod -R 775 data/'' +  sudo chmod -R 755 /var/www/jonathanhaack.com/public_html/dokuwiki/conf 
-    * ''yourwiki> chown -R www-data:foo data/'' +  sudo chown -R www-data:user /var/www/jonathanhaack.com/public_html/dokuwiki/conf 
-  * everything below the data directory+  sudo chown www-data:user /var/www/jonathanhaack.com/public_html/dokuwiki/data 
-    * ''yourwiki/datachmod 2775 {attic,cache,index,locks,media,meta,pages,tmp}'' +  sudo chmod -R 775 /var/www/jonathanhaack.com/public_html/dokuwiki/data 
-    * ''yourwiki/data> chown www-data:foo {attic,cache,index,locks,media,meta,pages,tmp}'' +  sudo chmod -R 755 /var/www/jonathanhaack.com/public_html/dokuwiki/lib 
-  +  sudo chmod -R 755 /var/www/jonathanhaack.com/public_html/dokuwiki/conf 
 +  cd /var/www/jonathanhaack.com/public_html/dokuwiki/data/ 
 +  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:  [[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.
  
---- //[[netcmnd@jonathanhaack.com|oemb1905]] 2017/05/16 02:15// +  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}
  
 + --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/07/14 22:42//
computing/dokuwiki.txt · Last modified: 2022/07/15 05:19 by oemb1905