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
install:freebsd [2011-02-25 18:06] 195.190.13.11install:freebsd [2022-08-07 03:02] (current) – fixed incorrect syntax for chown command 67.209.241.26
Line 1: Line 1:
 ====== DokuWiki on FreeBSD ======  ====== DokuWiki on FreeBSD ====== 
 +To install [[:DokuWiki]] using the FreeBSD ports tree, do the following:
 +  #> cd /usr/ports/www/dokuwiki
 +  #> make install clean
 +The default DokuWiki directory is ''/usr/local/www/dokuwiki'' -- Of course the directory can be changed or symbolic linked to anywhere :-)
  
 +To configure dokuwiki copy the options from the /usr/local/www/dokuwiki/conf/dokuwiki.php file you want to edit to ''/usr/local/www/dokuwiki/conf/local.php''.
  
-To install [[:DokuWiki]] using the FreeBSD ports tree, do the following:+This should be done because a portupgrade will overwrite dokuwiki.php. 
 + 
 +To upgrade using the ports tree, do
 + 
 +  #> portupgrade dokuwiki 
 + 
 +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:
  
-  cd /usr/ports/www/dokuwiki +  sudo chmod -R 775 /usr/local/www/data 
-  make install clean+  sudo chown -R www /usr/local/www/data
  
 +This should remove the security warning from the Admin/Install pages.
  
install/freebsd.1298653569.txt.gz · Last modified: 2011-02-25 18:06 by 195.190.13.11

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