source: content/web/php.xml@ 4a93a3c

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

Updated to PHP-5.0.0.

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

  • Property mode set to 100644
File size: 5.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.42 SBU">
12]>
13
14<sect1 id="php" xreflabel="PHP-&php-version;">
15<?dbhtml filename="php.html"?>
16<title><acronym>PHP</acronym>-&php-version;</title>
17
18<sect2>
19<title>Introduction to <application><acronym>PHP</acronym></application></title>
20
21<para><application><acronym>PHP</acronym></application> is the PHP
22Hypertext Preprocessor. Primarily used in dynamic web sites, it allows for
23programming code to be directly embedded into the
24<acronym>HTML</acronym> markup.</para>
25
26<sect3><title>Package information</title>
27<itemizedlist spacing='compact'>
28<listitem><para>Download (HTTP): <ulink url="&php-download-http;"/></para></listitem>
29<listitem><para>Download (FTP): <ulink url="&php-download-ftp;"/></para></listitem>
30<listitem><para>Download size: &php-size;</para></listitem>
31<listitem><para>Estimated Disk space required: &php-buildsize;</para></listitem>
32<listitem><para>Estimated build time: &php-time;</para></listitem></itemizedlist>
33</sect3>
34
35<sect3><title><application><acronym>PHP</acronym></application> dependencies</title>
36<sect4><title>Required</title>
37<para>
38<xref linkend="apache"/>
39</para></sect4>
40<sect4><title>Optional</title>
41<para>
42<xref linkend="libxml2"/>,
43<xref linkend="libxslt"/>,
44<xref linkend="openssl"/>,
45<xref linkend="bc"/>,
46<ulink url="http://www.fastio.com/">ClibPDF</ulink>,
47<xref linkend="libjpeg"/>,
48<xref linkend="libtiff"/>,
49<xref linkend="curl"/>,
50<ulink url="http://qdbm.sourceforge.net/">QDBM</ulink>,
51<xref linkend="gdbm"/>,
52<xref linkend="db"/>,
53<xref linkend="fam"/>,
54<ulink url="http://www.boutell.com/gd/">GD</ulink>,
55<xref linkend="libpng"/>,
56X (<xref linkend="xorg"/> or <xref linkend="xfree86"/>),
57<xref linkend="freetype2"/>,
58<ulink url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.0.2.tar.gz">t1lib</ulink>,
59<xref linkend="gmp"/>
60<xref linkend="mysql"/>,
61<xref linkend="pcre"/>,
62<xref linkend="postgresql"/>,
63<xref linkend="openldap"/>,
64<xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
65<ulink url="http://mcrypt.hellug.gr/">libmcrypt</ulink>,
66<ulink url="http://mhash.sourceforge.net/">mhash</ulink>,
67<xref linkend="expat"/> and
68<ulink url="../server/mail.html">MTA</ulink>
69</para></sect4>
70</sect3>
71
72</sect2>
73
74<sect2>
75<title>Installation of <application><acronym>PHP</acronym></application></title>
76
77<note><para>You can use <application><acronym>PHP</acronym></application>
78for server-side scripting, command line scripting or client-side
79<acronym>GUI</acronym> applications. The book provides instructions for
80setting up <application><acronym>PHP</acronym></application> for
81server-side scripting as it is the most common form.</para></note>
82
83<para>Install <application><acronym>PHP</acronym></application> by
84running the following commands:</para>
85
86<screen><userinput><command>./configure --prefix=/usr \
87 --sysconfdir=/etc \
88 --with-apxs2 \
89 --with-config-file-path=/etc \
90 --with-zlib \
91 --with-bz2 \
92 --enable-ftp \
93 --with-gettext \
94 --with-iconv \
95 --with-ncurses &amp;&amp;
96make &amp;&amp;
97make install &amp;&amp;
98cp php.ini-recommended /etc/php.ini</command></userinput></screen>
99
100<note><para><acronym>PHP</acronym> has many more configure options that
101will enable support for certain things. You can use
102<command>./configure --help</command> to see a full list of the
103available options. Also, use of the
104<ulink url="http://www.php.net/"><acronym>PHP</acronym> web site</ulink>
105is highly recommended, as their online docs are very good.</para></note>
106
107</sect2>
108
109<sect2>
110<title>Configuring <application><acronym>PHP</acronym></application></title>
111
112<sect3><title>Config files</title>
113<para><filename>/etc/php.ini</filename>,
114<filename>/etc/pear.conf</filename></para>
115</sect3>
116
117<sect3><title>Configuration Information</title>
118
119<para>To enable <acronym>PHP</acronym> support in the
120<application>Apache</application> web server,
121a new LoadModule (this one should be handled automatically by the
122<command>make install</command> command) and AddType directives must be added to the
123<filename>httpd.conf</filename> file:</para>
124
125<screen><userinput>LoadModule php5_module lib/apache/libphp5.so
126AddType application/x-httpd-php .php</userinput></screen>
127
128<para>Also, it can be useful to add an entry for index.php to the
129DirectoryIndex directive of the <filename>httpd.conf</filename>
130file.</para>
131
132</sect3>
133
134</sect2>
135
136<sect2>
137<title>Contents</title>
138
139<para>The <application><acronym>PHP</acronym></application> package contains
140<command>pear</command>,
141<command>php</command>,
142<command>php-config</command>,
143<command>phpextdist</command> and
144<command>phpize</command>.
145</para>
146
147</sect2>
148
149<sect2><title>Description</title>
150
151<sect3><title>php</title>
152<para><command>php</command> is a command line interface that enables
153you to parse and execute <acronym>PHP</acronym> code.</para></sect3>
154
155</sect2>
156
157</sect1>
Note: See TracBrowser for help on using the repository browser.