source: content/web/php.xml@ 5056a3b

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 5056a3b was 5056a3b, checked in by Igor Živković <igor@…>, 19 years ago

Updated to PHP-5.0.3.

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

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