User Tools

Site Tools


php_openbsd_https

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
php_openbsd_https [2024/05/27 05:17] chrisphp_openbsd_https [2026/02/08 02:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== PHP and OpenBSD httpd ======
  
 +Packages you need to install
 +<code>
 +pkg_add php
 +
 +admin steps
 +
 +rcctl enable php83_fpm
 +rcctl start php83_fpm
 +</code>
 +make sure you chown all user files in vhost root dir to the user listening in php-fpm which is www
 +
 +One of the awesome things about OpenBSD is it's flavors system which beats any other OS's package system.
 +It will list which version you want latest as of this writing is 8.3
 +
 +the code to add to your httpd.conf is based on vhost but it's basically this:
 +<code>
 +location "*" {
 + # root "/htdocs/wiki.unix.beer/doku.php"
 + #request strip 1
 + fastcgi socket "/run/php-fpm.sock"
 + }
 +</code>
 +If you are active in the OpenBSD community or have used OpenBSD extensively you will know that it chroot's everything so the root will be the dir instead to main chroot so /var/www will become just /htdocs/dir
 +
 +but this is basically it to enable php using fpm

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki