DokuWiki

It's better when it's simple

User Tools

Site Tools


install:freebsd

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
install:freebsd [2015-11-29 00:17]
173.199.65.11
install:freebsd [2019-01-07 17:17] (current)
oemb1905
Line 14: Line 14:
  
 Make sure that the ports tree has been updated, or this will have no effect. Make sure that the ports tree has been updated, or this will have no effect.
 +
 +-- -- -- -- -- 
 +
 +In addition to building from source, as of freeBSD 10+, one can now use the package manager:
 +
 +  pkg install dokuwiki
 +
 +The package maintainer recommends moving the data directory, and as noted above, it can be moved anywhere.  Here is a common set-up and set of commands for moving it outside of the web server's root directory.
 +
 +  mv /usr/local/www/nginx/dokuwiki/data /usr/local/www/data
 +  nano /usr/local/www/nginx/dokuwiki/conf/local.php
 +
 +Inside the local.php file, add something like this:
 +
 +  $conf['savedir'] = '/usr/local/www/data/';
 +
 +Close the file and now let's make sure that new directory can be accessed by externally:
 +
 +  sudo chmod -R 775 /usr/local/www/data
 +  sudo chown www -R /usr/local/www/data
 +
 +This should remove the security warning from the Admin/Install pages.
  
install/freebsd.txt ยท Last modified: 2019-01-07 17:17 by oemb1905