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 revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
install:freebsd [2015-11-29 00:17] 173.199.65.11install:freebsd [2019-01-07 17:17] oemb1905
Line 3: Line 3:
   #> cd /usr/ports/www/dokuwiki   #> cd /usr/ports/www/dokuwiki
   #> make install clean   #> make install clean
- 
 The default DokuWiki directory is ''/usr/local/www/dokuwiki'' -- Of course the directory can be changed or symbolic linked to anywhere :-) The default DokuWiki directory is ''/usr/local/www/dokuwiki'' -- Of course the directory can be changed or symbolic linked to anywhere :-)
  
Line 15: 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: 2022-08-07 03:02 by 67.209.241.26

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki