glfs/content/web/php.xml
Igor Živković 4ca92e2ca9 Removed readline and all references in packages' dependencies, passed switches for readline support where it's not on by default.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2462 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-07-14 12:49:57 +00:00

132 lines
4.2 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY php-download-http "http://us2.php.net/distributions/php-&php-version;.tar.bz2">
<!ENTITY php-download-ftp "ftp://ftp.isu.edu.tw/pub/Unix/Web/PHP/distributions/php-&php-version;.tar.bz2">
<!ENTITY php-size "3.8 MB">
<!ENTITY php-buildsize "57 MB">
<!ENTITY php-time "0.90 SBU">
]>
<sect1 id="php" xreflabel="PHP-&php-version;">
<?dbhtml filename="php.html"?>
<title><acronym>PHP</acronym>-&php-version;</title>
<sect2>
<title>Introduction to <application><acronym>PHP</acronym></application></title>
<para><application><acronym>PHP</acronym></application> is the PHP
Hypertext Preprocessor. Primarily used in dynamic web sites, it allows for
programming code to be directly embedded into the
<acronym>HTML</acronym> markup.</para>
<sect3><title>Package information</title>
<itemizedlist spacing='compact'>
<listitem><para>Download (HTTP): <ulink url="&php-download-http;"/></para></listitem>
<listitem><para>Download (FTP): <ulink url="&php-download-ftp;"/></para></listitem>
<listitem><para>Download size: &php-size;</para></listitem>
<listitem><para>Estimated Disk space required: &php-buildsize;</para></listitem>
<listitem><para>Estimated build time: &php-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title><application><acronym>PHP</acronym></application> dependencies</title>
<sect4><title>Required</title>
<para>
<xref linkend="apache"/> and
<xref linkend="mysql"/>
</para></sect4>
<sect4><title>Optional</title>
<para>
<xref linkend="openssl"/>,
<xref linkend="bc"/>,
<xref linkend="curl"/>,
<xref linkend="db"/>,
<xref linkend="libjpeg"/>,
<xref linkend="libpng"/>,
<xref linkend="freetype2"/>,
<xref linkend="gdbm"/>,
<ulink url="../server/mail.html">MTA</ulink>,
<xref linkend="pcre"/>,
<xref linkend="postgresql"/>,
<xref linkend="libtiff"/>,
<xref linkend="expat"/> and
<xref linkend="gmp"/>
</para></sect4>
</sect3>
</sect2>
<sect2>
<title>Installation of <application><acronym>PHP</acronym></application></title>
<para>Install <application><acronym>PHP</acronym></application> by
running the following commands:</para>
<screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc \
--with-apxs2 --with-config-file-path=/etc \
--with-zlib --with-bz2 --enable-ftp --with-gettext \
--with-iconv --with-mysql=/usr --with-ncurses &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
cp php.ini-recommended /etc/php.ini</command></userinput></screen>
<note><para><acronym>PHP</acronym> has many more configure options that
will enable support for certain things. You can use
<command>./configure --help</command> to see a full list of the
available options. Also, use of the
<ulink url="http://www.php.net/"><acronym>PHP</acronym> web site</ulink>
is highly recommended, as their online docs are very good.</para></note>
</sect2>
<sect2>
<title>Configuring <application><acronym>PHP</acronym></application></title>
<sect3><title>Config files</title>
<para><filename>/etc/php.ini</filename>,
<filename>/etc/pear.conf</filename></para>
</sect3>
<sect3><title>Configuration Information</title>
<para>To enable <acronym>PHP</acronym> support in the
<application>Apache</application> web server,
a new AddType directive must be added to the
<filename>httpd.conf</filename> file:</para>
<screen><userinput>AddType application/x-httpd-php .php</userinput></screen>
<para>Also, it can be useful to add an entry for index.php to the
DirectoryIndex directive of the <filename>httpd.conf</filename>
file.</para>
</sect3>
</sect2>
<sect2>
<title>Contents</title>
<para>The <application><acronym>PHP</acronym></application> package contains
<command>pear</command>,
<command>php</command>,
<command>php-config</command>,
<command>phpextdist</command> and
<command>phpize</command>.
</para>
</sect2>
<sect2><title>Description</title>
<sect3><title>php</title>
<para><command>php</command> is a command line interface that enables
you to parse and execute <acronym>PHP</acronym> code.</para></sect3>
</sect2>
</sect1>