Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 2957

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>Unix/OpenBSD installs</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Installation"
HREF="installation.html"><LINK
REL="PREVIOUS"
TITLE="Unix/Mac OS X installs"
HREF="install.macosx.html"><LINK
REL="NEXT"
TITLE="Unix/Solaris installs"
HREF="install.solaris.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="install.macosx.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Installation</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="install.solaris.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="install.openbsd"
></A
>Unix/OpenBSD installs</H1
><P
>&#13; This section contains notes and hints specific to installing
 PHP on <A
HREF="http://www.openbsd.org/"
TARGET="_top"
>OpenBSD 3.2</A
>.
 </P
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="install.openbsd.packages"
></A
>Using Binary Packages</H2
><P
>&#13;    Using binary packages to install PHP on OpenBSD is the recommended
    and simplest method.  The core package has been separated from the various
    modules, and each can be installed and removed independently from the others.
    The files you need can be found on your OpenBSD CD or on the FTP site.
   </P
><P
>&#13;    The main package you need to install is <TT
CLASS="filename"
>php4-core-4.2.3.tgz</TT
>,
    which contains the basic engine (plus gettext and iconv).  Next, take a look
    at the module packages, such as <TT
CLASS="filename"
>php4-mysql-4.2.3.tgz</TT
>
    or <TT
CLASS="filename"
>php4-imap-4.2.3.tgz</TT
>.  You need to use the <B
CLASS="command"
>phpxs</B
>
    command to activate and deactivate these modules in your <TT
CLASS="filename"
>php.ini</TT
>
    file.
   </P
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="install.openbsd.ports.example"
></A
><P
><B
>Example 3-3. OpenBSD Package Install Example</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
># pkg_add php4-core-4.2.3.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.2.3.tgz
# /usr/local/sbin/phpxs -a mysql
  (add in imap)
# pkg_add php4-imap-4.2.3.tgz
# /usr/local/sbin/phpxs -a imap
  (remove mysql as a test)
# pkg_delete php4-mysql-4.2.3
# /usr/local/sbin/phpxs -r mysql
  (install the PEAR libraries)
# pkg_add php4-pear-4.2.3.tgz</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
><P
>&#13;   Read the <A
HREF="http://www.openbsd.org/cgi-bin/man.cgi?query=packages"
TARGET="_top"
>packages(7)</A
>
   manual page for more information about binary packages on OpenBSD.
   </P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="install.openbsd.ports"
></A
>Using Ports</H2
><P
>&#13;   You can also compile up PHP from source using the <A
HREF="http://www.openbsd.org/ports.html"
TARGET="_top"
>ports tree</A
>.
   However, this is only recommended for users familiar with OpenBSD.  The PHP4 port
   is split into three sub-directories: core, extensions and pear.  The
   extensions directory generates sub-packages for all of the supported
   PHP modules.  If you find you do not want to create some of these modules,
   use the <B
CLASS="command"
>no_*</B
> FLAVOR.  For example, to skip building
   the imap module, set the FLAVOR to <B
CLASS="command"
>no_imap</B
>.
  </P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="install.openbsd.older"
></A
>Older Releases</H2
><P
>&#13;   Older releases of OpenBSD used the FLAVORS system to compile up
   a statically linked PHP.  Since it is hard to generate binary packages using
   this method, it is now deprecated.  You can still use the old stable
   ports trees if you wish, but they are unsupported by the OpenBSD team.
   If you have any comments about this, the current maintainer for the port
   is <A
HREF="mailto:avsm@openbsd.org"
TARGET="_top"
>Anil Madhavapeddy</A
>.
  </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="install.macosx.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="install.solaris.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Unix/Mac OS X installs</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="installation.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Unix/Solaris installs</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>