source: content/web/php.xml@ ddfee75

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

Added some more PHP optional dependencies, reported by Randy.

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

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