DokuWiki

It's better when it's simple

User Tools

Site Tools


install:openbsd

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
install:openbsd [2020-03-22 20:38]
rhubinak Added updated httpd syntax
install:openbsd [2020-05-10 00:41] (current)
bwalzer OpenBSD is somewhat different and manual. More detail required.
Line 1: Line 1:
 ====== DokuWiki on OpenBSD ======  ====== DokuWiki on OpenBSD ====== 
 +
 +=====Installation from the package=====
  
 To install [[:DokuWiki]] using the OpenBSD packages use the [[https://www.openbsd.org/faq/faq15.html|package manager]]: To install [[:DokuWiki]] using the OpenBSD packages use the [[https://www.openbsd.org/faq/faq15.html|package manager]]:
Line 6: Line 8:
  
 The package managers will take care of setting up dependencies and chroot requirements. The package managers will take care of setting up dependencies and chroot requirements.
 +
 +=====Manual installation=====
 +
 +The package doesn't do all of this so you should also look at this if you run into problems. The following should be done as the root user.
 +
 +First install PHP and a dependency:
 +
 +  ~$ pkg_add php php-gd
 +
 +You should be able to choose the newest version of PHP. We will use 7.3 for this example.
 +
 +To enable the PHP GD package add the symbolic link:
 +
 +  ~$ ln -s /etc/php-7.3.sample/gd.ini /etc/php-7.3/
 +
 +Start up the PHP FPM daemon:
 +
 +  ~$ rcctl start php73_fpm
 +  
 +Add the daemon to the list of things started up at boot in the /etc/rc.conf.local file (you might have to create it) by adding it to any existing list like this:
 +
 +  pkg_scripts=pkg1 pkg2 php73_fpm
 +
 +Once you have PHP working you can go through the generic [[::install|installation instructions]]. Pay particular attention to setting up the [[install:permissions|permissions]] properly. If you are using the OpenBSD httpd web server you will be setting things to a user of www and group of www.
 +
 +=====Httpd configuration=====
  
 You may want to change your httpd.conf to something similar show below. You may want to change your httpd.conf to something similar show below.
Line 44: Line 72:
 }   }  
 </code> </code>
 +
 +=====Allowing outgoing http connections=====
 +
 +The OpenBSD web server chroot is fairly restrictive by default. If you want to use things like automatic extension downloading you will need to open things up a bit. This should allow outgoing http and https connections. As root (creating any needed directories on the way):
 +
 +  ~$ mknod /var/www/dev/urandom c 45 2
 +  ~$ cp /etc/resolv.conf /var/www/etc/
 +  ~$ cp /etc/ssl/cert.pem /var/www/etc/ssl/
 +
install/openbsd.txt ยท Last modified: 2020-05-10 00:41 by bwalzer