note 117389 added to install.unix.openbsd
| From: | peteattshitnami.net | Date: | Tue, 02 Jun 2015 17:27:53 +0000 |
| Subject: | note 117389 added to install.unix.openbsd | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202723@lists.php.net to get a copy of this message | ||
A brief update: As of OpenBSD 5.7 (2015) the installation process is extremely easy. Apache httpd
was replaced by Nginx, which has since been further replaced by OpenBSD's own server, aptly
named 'httpd'.
'httpd' is installed by default, everything else you can still get from packages, with a
couple name changes (including Apache and Nginx.) You will be asked which version to install - at
the time of writing, versions 5.3.29p1 thru 5.6.5 are available.
#pkg_add php
#pkg_add php-fpm
#pkg_add pear
----
OpenBSD disables most services by default; a blank '_flags' line overrides default
'NO' value. pkg_scripts are located in /etc/rc.d/
To start at boot, edit "/etc/rc.conf.local":
httpd_flags=
pkg_scripts=php_fpm
----
Example /etc/httpd.conf
#
# paths are relative to chroot - e.g, '/var/www/run/php-fpm.sock'
server "default" {
listen on * port 80
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
directory index index.php
root "/htdocs"
}
----
For date, timezone issues, copy /etc/localtime:
$cp /etc/localtime /var/www/etc/localtime
If 'localhost' DNS name fails to resolve, copy /etc/hosts
$cp /etc/hosts /var/www/etc/hosts
----
Server IP: 72.52.91.14
Probable Submitter: 71.117.138.71
----
Manual Page -- http://php.net/manual/en/install.unix.openbsd.php
Edit -- https://master.php.net/note/edit/117389
Del: integrated -- https://master.php.net/note/delete/117389/integrated
Del: useless -- https://master.php.net/note/delete/117389/useless
Del: bad code -- https://master.php.net/note/delete/117389/bad+code
Del: spam -- https://master.php.net/note/delete/117389/spam
Del: non-english -- https://master.php.net/note/delete/117389/non-english
Del: in docs -- https://master.php.net/note/delete/117389/in+docs
Del: other reasons-- https://master.php.net/note/delete/117389
Reject -- https://master.php.net/note/reject/117389
Search -- https://master.php.net/manage/user-notes.php