source: content/web/php.xml@ ff769b8c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ff769b8c was ff769b8c, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Updated the XML sources to use DocBook XML DTD-4.4.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3656 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY php-download-http "http://us2.php.net/distributions/php-&php-version;.tar.bz2">
8 <!ENTITY php-download-ftp "ftp://ftp.isu.edu.tw/pub/Unix/Web/PHP/distributions/php-&php-version;.tar.bz2">
9 <!ENTITY php-md5sum "fd26455febdddee0977ce226b9108d9c">
10 <!ENTITY php-size "4.4 MB">
11 <!ENTITY php-buildsize "101 MB">
12 <!ENTITY php-time "1.29 SBU">
13]>
14
15<sect1 id="php" xreflabel="PHP-&php-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="php.html"?>
21<title><acronym>PHP</acronym>-&php-version;</title>
22
23<sect2>
24<title>Introduction to <application><acronym>PHP</acronym></application></title>
25
26<para><application><acronym>PHP</acronym></application> is the
27<acronym>PHP</acronym> Hypertext Preprocessor. Primarily used in dynamic web
28sites, it allows for programming code to be directly embedded into the
29<acronym>HTML</acronym> markup.</para>
30
31<sect3><title>Package information</title>
32<itemizedlist spacing='compact'>
33<listitem><para>Download (HTTP):
34<ulink url="&php-download-http;"/></para></listitem>
35<listitem><para>Download (FTP):
36<ulink url="&php-download-ftp;"/></para></listitem>
37<listitem><para>Download MD5 sum: &php-md5sum;</para></listitem>
38<listitem><para>Download size: &php-size;</para></listitem>
39<listitem><para>Estimated disk space required:
40&php-buildsize;</para></listitem>
41<listitem><para>Estimated build time:
42&php-time;</para></listitem></itemizedlist>
43</sect3>
44
45<sect3><title>Additional downloads</title>
46<itemizedlist spacing="compact">
47<listitem><para>Required patch for Berkeley DB: <ulink
48url="&patch-root;/php-&php-version;-db43-1.patch"/></para>
49</listitem></itemizedlist>
50</sect3>
51
52<sect3><title><application><acronym>PHP</acronym></application>
53dependencies</title>
54<sect4><title>Required</title>
55<para><xref linkend="apache"/></para>
56</sect4>
57
58<sect4><title>Optional</title>
59<para><xref linkend="libxml2"/>,
60<xref linkend="libxslt"/>,
61<xref linkend="openssl"/>,
62<ulink url="http://www.fastio.com/">ClibPDF</ulink>,
63<xref linkend="libjpeg"/>,
64<xref linkend="libtiff"/>,
65<xref linkend="curl"/>,
66<ulink url="http://qdbm.sourceforge.net/">QDBM</ulink>,
67<ulink url="http://cr.yp.to/cdb.html">cdb</ulink>,
68<xref linkend="gdbm"/>,
69<xref linkend="db"/>,
70<xref linkend="fam"/>,
71<ulink url="http://www.boutell.com/gd/">GD</ulink>,
72<xref linkend="libpng"/>,
73X (<xref linkend="xorg"/> or <xref linkend="xfree86"/>),
74<xref linkend="freetype2"/>,
75<ulink
76url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.0.2.tar.gz">
77t1lib</ulink>,
78<xref linkend="gmp"/>
79<xref linkend="mysql"/>,
80<xref linkend="pcre"/>,
81<xref linkend="postgresql"/>,
82<xref linkend="aspell"/>,
83<xref linkend="pkgconfig"/>,
84<xref linkend="html-tidy"/>,
85<xref linkend="openldap"/>,
86<xref linkend="cyrus-sasl"/>,
87<xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
88<ulink url="http://mcrypt.hellug.gr/">libmcrypt</ulink>,
89<ulink url="http://mhash.sourceforge.net/">mhash</ulink>,
90<ulink url="http://www.net-snmp.org/">Net-SNMP</ulink>,
91<ulink url="http://www.sqlite.org/">SQLite</ulink>,
92<ulink url="http://dmalloc.com/">Dmalloc</ulink>,
93<ulink url="http://www.mnogosearch.org/">mnoGoSearch</ulink>,
94<ulink url="http://www.hughes.com.au/products/msql/">Mini SQL</ulink>,
95<ulink url="http://www.empress.com/">Empress</ulink>,
96<ulink url="http://www.birdstep.com/">Birdstep</ulink>,
97<ulink url="http://www.dbmaker.com/">DBMaker</ulink>,
98<ulink url="http://www.softwareag.com/">Adabas</ulink>,
99<ulink url="http://www.frontbase.com/">FrontBase</ulink>,
100<ulink url="http://caudium.net/">Caudium</ulink>,
101<ulink url="http://www.openwddx.org/">WDDX</ulink>,
102<ulink url="http://partners.adobe.com/asn/acrobat/forms.jsp">
103FDF Toolkit</ulink>,
104<ulink url="http://www.hyperwave.com/">Hyperwave</ulink>,
105<ulink url="http://www.mainstreetsoftworks.com/">Monetra</ulink>,
106<xref linkend="expat"/> and
107<ulink url="../server/mail.html">MTA</ulink></para>
108</sect4>
109</sect3>
110
111</sect2>
112
113<sect2>
114<title>Installation of <application><acronym>PHP</acronym></application></title>
115
116<note><para>You can use <application><acronym>PHP</acronym></application>
117for server-side scripting, command line scripting or client-side
118<acronym>GUI</acronym> applications. The book provides instructions for
119setting up <application><acronym>PHP</acronym></application> for
120server-side scripting as it is the most common form.</para></note>
121
122<para>If you have Berkeley DB installed and wish to utilize it, apply
123the following patch:</para>
124
125<screen><userinput><command>patch -Np1 -i ../php-&php-version;-db43-1.patch</command></userinput></screen>
126
127<para>Install <application><acronym>PHP</acronym></application> by
128running the following commands:</para>
129
130<screen><userinput><command>./configure --prefix=/usr \
131 --sysconfdir=/etc \
132 --with-apxs2 \
133 --with-config-file-path=/etc \
134 --with-zlib \
135 --enable-bcmath \
136 --with-bz2 \
137 --enable-calendar \
138 --enable-dba \
139 --enable-exif \
140 --enable-ftp \
141 --with-gettext \
142 --with-iconv \
143 --enable-mbstring \
144 --with-ncurses \
145 --with-readline \
146 --disable-libxml &amp;&amp;
147make &amp;&amp;
148make install &amp;&amp;
149cp php.ini-recommended /etc/php.ini</command></userinput></screen>
150
151<para>Remove the <parameter>--disable-libxml</parameter> switch if you
152have <xref linkend="libxml2"/> installed otherwise
153<command>pear</command> will not be built.</para>
154
155<note><para><acronym>PHP</acronym> has many more configure options that
156will enable support for certain things. You can use
157<command>./configure --help</command> to see a full list of the
158available options. Also, use of the
159<ulink url="http://www.php.net/"><acronym>PHP</acronym> web site</ulink>
160is highly recommended, as their online docs are very good.</para></note>
161
162</sect2>
163
164<sect2>
165<title>Configuring <application><acronym>PHP</acronym></application></title>
166
167<sect3><title>Config files</title>
168<para><filename>/etc/php.ini</filename>,
169<filename>/etc/pear.conf</filename></para>
170</sect3>
171
172<sect3><title>Configuration Information</title>
173
174<para>To enable <acronym>PHP</acronym> support in the
175<application>Apache</application> web server,
176a new LoadModule (this one should be handled automatically by the
177<command>make install</command> command) and AddType directives must be added
178to the <filename>httpd.conf</filename> file:</para>
179
180<screen><userinput>LoadModule php5_module lib/apache/libphp5.so
181AddType application/x-httpd-php .php</userinput></screen>
182
183<para>Also, it can be useful to add an entry for
184<filename>index.php</filename> to the DirectoryIndex directive of the
185<filename>httpd.conf</filename> file.</para>
186
187</sect3>
188
189</sect2>
190
191<sect2>
192<title>Contents</title>
193
194<para>The <application><acronym>PHP</acronym></application> package contains
195<command>pear</command>,
196<command>php</command>,
197<command>php-config</command>,
198<command>phpextdist</command> and
199<command>phpize</command>.
200</para>
201
202</sect2>
203
204<sect2><title>Description</title>
205
206<sect3><title>php</title>
207<para><command>php</command> is a command line interface that enables
208you to parse and execute <acronym>PHP</acronym> code.</para></sect3>
209
210<sect3><title>pear</title>
211<para><command>pear</command> is the <acronym>PHP</acronym> Extension and
212Application Repository (<acronym>PEAR</acronym>) package
213manager.</para></sect3>
214
215</sect2>
216
217</sect1>
Note: See TracBrowser for help on using the repository browser.