source: content/web/php.xml@ cef3a2f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 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 cef3a2f was cef3a2f, checked in by Randy McMurchy <randy@…>, 19 years ago

Round 1 of renaming package-name entities

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

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