php_openbsd_https
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| php_openbsd_https [2024/05/27 05:18] – chris | php_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 | ||
| + | < | ||
| + | pkg_add php | ||
| + | |||
| + | admin steps | ||
| + | |||
| + | rcctl enable php83_fpm | ||
| + | rcctl start php83_fpm | ||
| + | </ | ||
| + | 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: | ||
| + | < | ||
| + | location " | ||
| + | # root "/ | ||
| + | #request strip 1 | ||
| + | fastcgi socket "/ | ||
| + | } | ||
| + | </ | ||
| + | If you are active in the OpenBSD community or have used OpenBSD extensively you will know that it chroot' | ||
| + | |||
| + | but this is basically it to enable php using fpm | ||
php_openbsd_https.txt · Last modified: by 127.0.0.1
