Changeset 08254fc for content/web/php.xml
- Timestamp:
- 06/12/2004 11:57:50 PM (20 years ago)
- Branches:
- 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
- Children:
- 0931098
- Parents:
- d3edf27
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
content/web/php.xml
rd3edf27 r08254fc 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 "3.8 MB"> 10 <!ENTITY php-buildsize "57 MB"> 11 <!ENTITY php-time "0.90 SBU"> 12 ]> 13 1 14 <sect1 id="php" xreflabel="PHP-&php-version;"> 2 15 <?dbhtml filename="php.html"?> 3 16 <title><acronym>PHP</acronym>-&php-version;</title> 4 17 5 &php-intro; 6 &php-inst; 7 &php-config; 8 &php-desc; 18 <sect2> 19 <title>Introduction to <application><acronym>PHP</acronym></application></title> 20 21 <para><application><acronym>PHP</acronym></application> is the PHP 22 Hypertext Preprocessor. Primarily used in dynamic web sites, it allows for 23 programming 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"/> and 39 <xref linkend="mysql"/> 40 </para></sect4> 41 <sect4><title>Optional</title> 42 <para> 43 <xref linkend="openssl"/>, 44 <xref linkend="bc"/>, 45 <xref linkend="curl"/>, 46 <xref linkend="db"/>, 47 <xref linkend="libjpeg"/>, 48 <xref linkend="libpng"/>, 49 <xref linkend="freetype2"/>, 50 <xref linkend="gdbm"/>, 51 <ulink url="../server/mail.html">MTA</ulink>, 52 <xref linkend="pcre"/>, 53 <xref linkend="postgresql"/>, 54 <xref linkend="readline"/>, 55 <xref linkend="libtiff"/>, 56 <xref linkend="expat"/> and 57 <xref linkend="gmp"/> 58 </para></sect4> 59 </sect3> 60 61 </sect2> 62 63 <sect2> 64 <title>Installation of <application><acronym>PHP</acronym></application></title> 65 66 <para>Install <application><acronym>PHP</acronym></application> by 67 running the following commands:</para> 68 69 <screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc \ 70 --with-apxs2 --with-config-file-path=/etc \ 71 --with-zlib --with-bz2 --enable-ftp --with-gettext \ 72 --with-iconv --with-mysql=/usr --with-ncurses && 73 make && 74 make install && 75 cp php.ini-recommended /etc/php.ini</command></userinput></screen> 76 77 <note><para><acronym>PHP</acronym> has many more configure options that 78 will enable support for certain things. You can use 79 <command>./configure --help</command> to see a full list of the 80 available options. Also, use of the 81 <ulink url="http://www.php.net/"><acronym>PHP</acronym> web site</ulink> 82 is highly recommended, as their online docs are very good.</para></note> 83 84 </sect2> 85 86 <sect2> 87 <title>Configuring <application><acronym>PHP</acronym></application></title> 88 89 <sect3><title>Config files</title> 90 <para><filename>/etc/php.ini</filename>, 91 <filename>/etc/pear.conf</filename></para> 92 </sect3> 93 94 <sect3><title>Configuration Information</title> 95 96 <para>To enable <acronym>PHP</acronym> support in the 97 <application>Apache</application> web server, 98 a new AddType directive must be added to the 99 <filename>httpd.conf</filename> file:</para> 100 101 <screen><userinput>AddType application/x-httpd-php .php</userinput></screen> 102 103 <para>Also, it can be useful to add an entry for index.php to the 104 DirectoryIndex directive of the <filename>httpd.conf</filename> 105 file.</para> 106 107 </sect3> 108 109 </sect2> 110 111 <sect2> 112 <title>Contents</title> 113 114 <para>The <application><acronym>PHP</acronym></application> package contains 115 <command>pear</command>, 116 <command>php</command>, 117 <command>php-config</command>, 118 <command>phpextdist</command> and 119 <command>phpize</command>. 120 </para> 121 122 </sect2> 123 124 <sect2><title>Description</title> 125 126 <sect3><title>php</title> 127 <para><command>php</command> is a command line interface that enables 128 you to parse and execute <acronym>PHP</acronym> code.</para></sect3> 129 130 </sect2> 9 131 10 132 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.