r4930 - in trunk/BOOK: general/prog introduction/welcome

randy at linuxfromscratch.org randy at linuxfromscratch.org
Sun Aug 14 16:26:07 PDT 2005


Author: randy
Date: 2005-08-14 17:26:05 -0600 (Sun, 14 Aug 2005)
New Revision: 4930

Modified:
   trunk/BOOK/general/prog/php.xml
   trunk/BOOK/introduction/welcome/changelog.xml
Log:
Updates to PHP: added new dependencies, placed the dependencies in catagories, added instructions to install documentation, added instruction to update php.ini and minor textual corrections

Modified: trunk/BOOK/general/prog/php.xml
===================================================================
--- trunk/BOOK/general/prog/php.xml	2005-08-14 22:28:13 UTC (rev 4929)
+++ trunk/BOOK/general/prog/php.xml	2005-08-14 23:26:05 UTC (rev 4930)
@@ -8,8 +8,8 @@
   <!ENTITY php-download-ftp  "ftp://ftp.isu.edu.tw/pub/Unix/Web/PHP/distributions/php-&php-version;.tar.bz2">
   <!ENTITY php-md5sum        "fb1aac107870f897d26563a9cc5053c0">
   <!ENTITY php-size          "4.7 MB">
-  <!ENTITY php-buildsize     "126 MB">
-  <!ENTITY php-time          "1.82 SBU">
+  <!ENTITY php-buildsize     "138 MB">
+  <!ENTITY php-time          "1.9 SBU">
 ]>
 
 <sect1 id="php" xreflabel="PHP-&php-version;">
@@ -61,6 +61,10 @@
         <para>Required patch for Berkeley DB: <ulink
         url="&patch-root;/php-&php-version;-db43-1.patch"/></para>
       </listitem>
+      <listitem>
+        <para>Pre-built documentation (optional): <ulink
+        url="http://www.php.net/download-docs.php"/></para>
+      </listitem>
     </itemizedlist>
 
     <bridgehead renderas="sect3">PHP Dependencies</bridgehead>
@@ -68,58 +72,66 @@
     <bridgehead renderas="sect4">Required</bridgehead>
     <para><xref linkend="apache"/></para>
 
-    <bridgehead renderas="sect4">Optional</bridgehead>
+    <bridgehead renderas="sect4">Optional System Utilities and Libraries</bridgehead>
     <para><xref linkend="libxml2"/>,
     <xref linkend="libxslt"/>,
-    <xref linkend="openssl"/>,
-    <ulink url="http://www.fastio.com/">ClibPDF</ulink>,
-    <xref linkend="libjpeg"/>,
-    <xref linkend="libtiff"/>,
-    <xref linkend="curl"/>,
-    <ulink url="http://qdbm.sourceforge.net/">QDBM</ulink>,
-    <ulink url="http://cr.yp.to/cdb.html">cdb</ulink>,
-    <xref linkend="gdbm"/>,
-    <xref linkend="db"/>,
     <xref linkend="fam"/>,
-    <ulink url="http://www.boutell.com/gd/">GD</ulink>,
-    <xref linkend="libpng"/>,
-    X (<xref linkend="xorg"/> or <xref linkend="xfree86"/>),
-    <xref linkend="freetype2"/>,
-    <ulink
-    url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.1.0.tar.gz">
-    t1lib</ulink>,
-    <xref linkend="gmp"/>
-    <xref linkend="mysql"/>,
+    <xref linkend="gmp"/>,
     <xref linkend="pcre"/>,
-    <xref linkend="postgresql"/>,
     <xref linkend="aspell"/>,
     <xref linkend="pkgconfig"/>,
-    <xref linkend="html-tidy"/>,
-    <xref linkend="openldap"/>,
-    <xref linkend="cyrus-sasl"/>,
-    <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
-    <ulink url="http://mcrypt.sourceforge.net/">libmcrypt</ulink>,
-    <ulink url="http://mhash.sourceforge.net/">mhash</ulink>,
+    <xref linkend="expat"/>,
     <ulink url="http://www.ossp.org/pkg/lib/mm/">OSSP mm</ulink>,
     <ulink url="http://www.net-snmp.org/">Net-SNMP</ulink>,
-    <ulink url="http://www.sqlite.org/">SQLite</ulink>,
     <ulink url="http://dmalloc.com/">Dmalloc</ulink>,
+    <ulink url="http://www.gnu.org/software/recode/">recode</ulink> and
+    an <ulink url="../server/mail.html">MTA</ulink></para>
+
+    <bridgehead renderas="sect4">Optional Graphics Utilities and Libraries</bridgehead>
+    <para><xref linkend="libjpeg"/>,
+    <xref linkend="libtiff"/>,
+    <xref linkend="libpng"/>,
+    <xref linkend="freetype2"/>,
+    X (<xref linkend="xorg"/> or <xref linkend="xfree86"/>),
+    <ulink url="http://www.fastio.com/">ClibPDF</ulink>,
+    <ulink url="http://www.boutell.com/gd/">GD</ulink>,
+    <ulink url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.1.0.tar.gz">
+    t1lib</ulink> and
+    <ulink url="http://partners.adobe.com/asn/acrobat/forms.jsp">FDF Toolkit</ulink></para>
+
+    <bridgehead renderas="sect4">Optional Web Utilities</bridgehead>
+    <para><xref linkend="curl"/>,
+    <xref linkend="html-tidy"/>,
     <ulink url="http://www.mnogosearch.org/">mnoGoSearch</ulink>,
+    <ulink url="http://www.hyperwave.com/">Hyperwave</ulink>,
+    <ulink url="http://caudium.net/">Caudium</ulink> and
+    <ulink url="http://www.openwddx.org/">WDDX</ulink></para>
+
+    <bridgehead renderas="sect4">Optional Data Management Utilities and Libraries</bridgehead>
+    <para><xref linkend="openldap"/>,
+    <xref linkend="gdbm"/>,
+    <xref linkend="db"/>,
+    <xref linkend="mysql"/>,
+    <xref linkend="postgresql"/>,
+    <ulink url="http://qdbm.sourceforge.net/">QDBM</ulink>,
+    <ulink url="http://cr.yp.to/cdb.html">cdb</ulink>,
+    <ulink url="http://www.sqlite.org/">SQLite</ulink>,
     <ulink url="http://www.hughes.com.au/products/msql/">Mini SQL</ulink>,
+    <ulink url="http://www.unixodbc.org/">unixODBC</ulink>,
     <ulink url="http://www.empress.com/">Empress</ulink>,
     <ulink url="http://www.birdstep.com/">Birdstep</ulink>,
     <ulink url="http://www.dbmaker.com/">DBMaker</ulink>,
     <ulink url="http://www.softwareag.com/">Adabas</ulink>,
-    <ulink url="http://www.frontbase.com/">FrontBase</ulink>,
-    <ulink url="http://caudium.net/">Caudium</ulink>,
-    <ulink url="http://www.openwddx.org/">WDDX</ulink>,
-    <ulink url="http://partners.adobe.com/asn/acrobat/forms.jsp">
-    FDF Toolkit</ulink>,
-    <ulink url="http://www.hyperwave.com/">Hyperwave</ulink>,
-    <ulink url="http://www.mainstreetsoftworks.com/">Monetra</ulink>,
-    <xref linkend="expat"/> and
-    <ulink url="../server/mail.html">MTA</ulink></para>
+    <ulink url="http://www.frontbase.com/">FrontBase</ulink> and
+    <ulink url="http://www.mainstreetsoftworks.com/">Monetra</ulink></para>
 
+    <bridgehead renderas="sect4">Optional Security/Encryption Utilities and Libraries</bridgehead>
+    <para><xref linkend="openssl"/>,
+    <xref linkend="cyrus-sasl"/>,
+    <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
+    <ulink url="http://mcrypt.sourceforge.net/">libmcrypt</ulink> and
+    <ulink url="http://mhash.sourceforge.net/">mhash</ulink></para>
+
   </sect2>
 
   <sect2 role="installation">
@@ -138,6 +150,19 @@
 
 <screen><userinput>patch -Np1 -i ../php-&php-version;-db43-1.patch</userinput></screen>
 
+    <note>
+      <para><application>PHP</application> has many more
+      <command>configure</command> 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/">PHP web site</ulink>
+      is highly recommended, as their online docs are very good.</para>
+    </note>
+
+    <para>Remove the <option>--disable-libxml</option> switch if you
+    have <xref linkend="libxml2"/> installed otherwise
+    <command>pear</command> will not be built.</para>
+
     <para>Install <application>PHP</application> by
     running the following commands:</para>
 
@@ -159,32 +184,42 @@
             --disable-libxml &&
 make</userinput></screen>
 
-    <para>To test the results, issue: <command>make test</command>.</para>
+    <para>To test the results, issue: <command>make test</command>. Note that
+    many of the tests are known to fail.</para>
 
     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
 
 <screen role="root"><userinput>make install &&
 cp -v php.ini-recommended /etc/php.ini</userinput></screen>
 
-    <para>Remove the <option>--disable-libxml</option> switch if you
-    have <xref linkend="libxml2"/> installed otherwise
-    <command>pear</command> will not be built.</para>
+    <para>The pre-built HTML documentation is packaged in two forms: a tarball
+    containing many individual files, useful for quick loading into your
+    browser, and a tarball of one large file, which is useful for using the
+    search utility of your browser. If you downloaded any of the documentation,
+    the instructions below can be issued by the
+    <systemitem class='username'>root</systemitem> user to install it (note
+    these instructions assume English docs, modify the tarball names below if
+    necessary).</para>
 
-    <note>
-      <para><application>PHP</application> 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/">PHP web site</ulink>
-      is highly recommended, as their online docs are very good.</para>
-    </note>
+    <para>For the <quote>Single HTML</quote> tarball:</para>
 
+<screen role="root"><userinput>install -v -m644 ../php_manual_en.html.gz \
+    /usr/share/doc/php-&php-version; &&
+gunzip -v /usr/share/doc/php-&php-version;/php_manual_en.html.gz</userinput></screen>
+
+    <para>For the <quote>Many HTML files</quote> tarball:</para>
+
+<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/php-&php-version; &&
+tar -xvf ../php_manual_en.tar.gz -C /usr/share/doc/php-&php-version; &&
+chown -v -R root:root /usr/share/doc/php-&php-version;/html</userinput></screen>
+
   </sect2>
+
   <sect2 role="commands">
       <title>Command Explanations</title>
 
       <para><parameter>--with-apxs2</parameter>: This parameter
-      builds the Apache 2.0 module.</para>
+      builds the Apache HTTPD 2.0 module.</para>
 
       <para><parameter>--with-config-file-path=/etc</parameter>: This parameter
       puts the <filename>php.ini</filename> configuration file in <filename
@@ -193,11 +228,11 @@
       <para><parameter>--with-zlib</parameter>: This parameter adds 
       support for <application>Zlib</application> compression.</para>
 
-      <para><parameter>--enable-bcmath</parameter>: Enables bc style
-      precision math functions.</para>
+      <para><parameter>--enable-bcmath</parameter>: Enables
+      <command>bc</command> style precision math functions.</para>
 
-      <para><parameter>--with-bz2</parameter>: Add support for bz2
-      compression functions.</para>
+      <para><parameter>--with-bz2</parameter>: Add support for
+      <application>Bzip2</application> compression functions.</para>
 
       <para><parameter>--enable-calendar</parameter>: This parameter
       provides support for calendar conversion.</para>
@@ -221,10 +256,11 @@
       terminal independent cursor handling.</para>
 
       <para><parameter>--with-readline</parameter>: This parameter
-      enables command line readline support.</para>
+      enables command line <application>Readline</application> support.</para>
 
       <para><parameter>--disable-libxml</parameter>: This parameter
-      disables XML support functions.</para>
+      disables XML support functions. This should be removed if you have
+      <application>Libxml2</application> installed.</para>
 
   </sect2>
                     
@@ -250,6 +286,17 @@
     <sect3>
       <title>Configuration Information</title>
 
+      <para>You may have noticed the following from the output of the
+      <command>make install</command> command:</para>
+
+      <screen><computeroutput>You may want to add: /usr/lib/php to your php.ini include_path</computeroutput></screen>
+
+      <para>If desired, add the entry using the following command as the
+      <systemitem class="username">root</systemitem> user:</para>
+
+      <screen role="root"><userinput>sed -i 's at php/includes"@&\ninclude_path = ".:/usr/lib/php"@' \
+    /etc/php.ini</userinput></screen>
+
       <para>To enable PHP support in the <application>Apache</application>
       web server, a new LoadModule (which should be handled automatically by the
       <command>make install</command> command) and AddType directives

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2005-08-14 22:28:13 UTC (rev 4929)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2005-08-14 23:26:05 UTC (rev 4930)
@@ -25,6 +25,13 @@
   <itemizedlist>
 
     <listitem>
+      <para>August 14th, 2005 [randy]: Updates to PHP: added new dependencies,
+      placed the dependencies in catagories, added instructions to install
+      documentation, added instruction to update php.ini and minor textual
+      corrections.</para>
+    </listitem>
+
+    <listitem>
       <para>August 14th, 2005 [randy]: Updated to GTK-Doc-1.4 and HTML
       Tidy-050803.</para>
     </listitem>




More information about the blfs-book mailing list