User Tools

Site Tools


php_openbsd_https

Differences

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

Link to this comparison view

Next revision
Previous revision
php_openbsd_https [2024/05/27 05:17] – created chrisphp_openbsd_https [2024/05/27 05:18] (current) chris
Line 2: Line 2:
  
 Packages you need to install Packages you need to install
 +<code>
 pkg_add php pkg_add php
  
Line 9: Line 9:
 rcctl enable php83_fpm rcctl enable php83_fpm
 rcctl start 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 make sure you chown all user files in vhost root dir to the user listening in php-fpm which is www
  
Line 16: Line 16:
  
 the code to add to your httpd.conf is based on vhost but it's basically this: the code to add to your httpd.conf is based on vhost but it's basically this:
 +<code>
 location "*" { location "*" {
  # root "/htdocs/wiki.unix.beer/doku.php"  # root "/htdocs/wiki.unix.beer/doku.php"
Line 22: Line 22:
  fastcgi socket "/run/php-fpm.sock"  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 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 but this is basically it to enable php using fpm
php_openbsd_https.1716787021.txt.gz · Last modified: by chris

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