svn: /phpdoc/en/trunk/install/unix/ openbsd.xml
| From: | Leigh | Date: | Mon, 16 May 2016 10:32:50 +0000 |
| Subject: | svn: /phpdoc/en/trunk/install/unix/ openbsd.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14126@lists.php.net to get a copy of this message | ||
leigh Mon, 16 May 2016 10:32:50 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339171
Log:
Updated OpenBSD install docs.
From anonymous contributor, but changes look good.
Changed paths:
U phpdoc/en/trunk/install/unix/openbsd.xml
Modified: phpdoc/en/trunk/install/unix/openbsd.xml
===================================================================
--- phpdoc/en/trunk/install/unix/openbsd.xml 2016-05-15 11:52:58 UTC (rev 339170)
+++ phpdoc/en/trunk/install/unix/openbsd.xml 2016-05-16 10:32:50 UTC (rev 339171)
@@ -4,7 +4,7 @@
<title>OpenBSD installation notes</title>
<para>
This section contains notes and hints specific to installing
- PHP on <link xlink:href="&url.openbsd;">OpenBSD 3.6</link>.
+ PHP on <link xlink:href="&url.openbsd;">OpenBSD 5.8</link>.
</para>
<sect2 xml:id="install.unix.openbsd.packages">
<title>Using Binary Packages</title>
@@ -15,30 +15,29 @@
The files you need can be found on your OpenBSD CD or on the FTP site.
</simpara>
<simpara>
- The main package you need to install is <filename>php4-core-4.3.8.tgz</filename>,
+ The main package you need to install is <filename>php</filename>,
which contains the basic engine (plus gettext and iconv). Next, take a look
- at the module packages, such as <filename>php4-mysql-4.3.8.tgz</filename>
- or <filename>php4-imap-4.3.8.tgz</filename>. You need to use the
<command>phpxs</command>
+ at the module packages, such as <filename>php-mysql</filename>
+ or <filename>php-imap</filename>. You need to use the
<command>phpxs</command>
command to activate and deactivate these modules in your &php.ini;.
</simpara>
<example xml:id="install.unix.openbsd.ports.example">
<title>OpenBSD Package Install Example</title>
<programlisting role="shell">
<![CDATA[
-# pkg_add php4-core-4.3.8.tgz
-# /usr/local/sbin/phpxs -s
-# cp /usr/local/share/doc/php4/php.ini-recommended /var/www/conf/php.ini
- (add in mysql)
-# pkg_add php4-mysql-4.3.8.tgz
-# /usr/local/sbin/phpxs -a mysql
- (add in imap)
-# pkg_add php4-imap-4.3.8.tgz
-# /usr/local/sbin/phpxs -a imap
- (remove mysql as a test)
-# pkg_delete php4-mysql-4.3.8
-# /usr/local/sbin/phpxs -r mysql
+# pkg_add php
+# pkg_add php-fpm
+# pkg_add php-mysql
(install the PEAR libraries)
-# pkg_add php4-pear-4.3.8.tgz
+# pkg_add pear
+
+Follow the instructions shown with each package!
+
+ (to remove packages)
+# pkg_delete php
+# pkg_delete php-fpm
+# pkg_delete php-mysql
+# pkg_delete pear
]]>
</programlisting>
</example>
@@ -63,7 +62,12 @@
<title>Common Problems</title>
<itemizedlist>
<listitem>
- <simpara>The default install of Apache runs inside a
+ <simpara>Apache and Nginx are no longer the default server on OpenBSD, but they can both
be easily
+ found in ports and packages. The new default server is also called 'httpd'.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>The default install of httpd runs inside a
<link xlink:href="&url.openbsd.chroot;">chroot(2) jail</link>, which
will restrict PHP scripts to
accessing files under <filename>/var/www</filename>. You will therefore need to
create a
<filename>/var/www/tmp</filename> directory for PHP session files to be stored, or
use an
@@ -71,16 +75,14 @@
jail or listen on the <filename>localhost</filename> interface. If you use network
functions,
some files from <filename>/etc</filename> such as
<filename>/etc/resolv.conf</filename> and
<filename>/etc/services</filename> will need to be moved into
<filename>/var/www/etc</filename>.
- The OpenBSD PEAR package automatically installs into the correct chroot directories, so
- no special modification is needed there. More information on the OpenBSD Apache is available
- in the <link xlink:href="&url.openbsd.apachefaq;">OpenBSD FAQ</link>.
+ The OpenBSD PEAR package automatically installs into the correct chroot directories.
</simpara>
</listitem>
<listitem>
<simpara>
- The OpenBSD 3.6 package for the <link xlink:href="&url.gd;">gd</link>
extension requires
- XFree86 to be installed. If you do not wish to use some of the font features that
- require X11, install the <filename>php4-gd-4.3.8-no_x11.tgz</filename> package
instead.
+ The OpenBSD 5.7+ package for the <link
xlink:href="&url.gd;">gd</link> extension requires
+ XFree86 to be installed. This can be added post-installation (See OpenBSD FAQ#4) by adding
+ the <filename>xbase.tgz</filename> file set.
</simpara>
</listitem>
</itemizedlist>