cvs: peardoc / manual.xml.in /en/chapters installation.xml
| From: | Martin Jansen | Date: | Sun, 10 Feb 2002 10:12:51 +0000 |
| Subject: | cvs: peardoc / manual.xml.in /en/chapters installation.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2356@lists.php.net to get a copy of this message | ||
mj Sun Feb 10 05:12:51 2002 EDT
Added files:
/peardoc/en/chapters installation.xml
Modified files:
/peardoc manual.xml.in
Log:
* Add working draft of the installation chapter.
Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.19 peardoc/manual.xml.in:1.20 --- peardoc/manual.xml.in:1.19 Sat Feb 9 09:06:05 2002 +++ peardoc/manual.xml.in Sun Feb 10 05:12:51 2002 @@ -30,6 +30,7 @@ <part id="about-pear"> <title>&AboutPEAR;</title> &chapters.intro; + &chapters.installation; &chapters.parts; &chapters.standards; </part> Index: peardoc/en/chapters/installation.xml +++ peardoc/en/chapters/installation.xml <?xml encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. --> <chapter id="installation"> <docinfo> <author> <firstname>Martin</firstname> <surname>Jansen</surname> </author> <date>2002-02-10</date> </docinfo> <title>Installation</title> <simpara> This chapter describes, how to install packages from PEAR. </simpara> <sect1 id="installation.introduction"> <title>Introduction</title> <para> This chapter requires that you are already familiar with the <link linkend="about.pear">general structure</link> of PEAR. </para> <para> The base installation that comes with the PHP distribution as part of the PFC, contains all the stuff that is needed to run the PEAR installation tools etc. If you have a recent installation of PHP 4, you can relax: The PEAR base installation is already installed on your system, unless you have compiled your PHP with the <filename>./configure</filename> flag '--without-pear'. </para> <para> If you are using a version of PHP that is pretty old, PEAR will not work. You are strongly encouraged to update your installation! If you don't do so, you risk that your server will be hacked by script-kiddies all around the world. </para> <para> The packages that are not part of the PFC can be installed in two different ways: <itemizedlist> <listitem> <simpara> <link linkend="installation.web">Via a web installer</link> </simpara> </listitem> <listitem> <simpara> <link linkend="installation.cvs">Via CVS</link> </simpara> </listitem> </itemizedlist> The first way is the prefered one and should be used, unless there are good reasons that are speaking against it. The second way is for the gurus amongst you that love to poke around with CVS clients or want to use the latest development versions of a package. </para> <para> Apart from installing packages, the PEAR package manager also handles some other tasks: It can create new packages on your machine, manage a registry of installed packages, check dependencies and it can interact with an XML-RPC service on the PEAR server, to serve some other tasks. </para> </sect1> <sect1 id="installation.getting"> <title>Getting the PEAR package manager</title> <para> To use the PEAR package manager, your system has to fulfill the following requirements: <itemizedlist> <listitem> <simpara> PHP 4 Interpreter (CGI-Version) has to available </simpara> </listitem> <listitem> <simpara> The PEAR files from php4/pear/ CVS have to be installed </simpara> </listitem> <listitem> <simpara> Archive/Tar.php has to be copied manually if it does not exist </simpara> </listitem> </itemizedlist> </para> <para> Installation of the CGI version of PHP is well documented in the <ulink url="http://php.net/manual/en/installation.php">PHP manual, chapter 2</ulink>. We will not cover it here again. </para> <para> Now you have to get the latest version of the PEAR package manager from CVS: </para> <para> <programlisting role="bash"> $ cvs -z3 -d :pserver:cvsread@cvs.php.net:/repository login Password: [use "phpfi" as password] cvs -z3 -d :pserver:cvsread@cvs.php.net:/repository co php4/pear </programlisting> </para> <para> You know have a directory <filename>php4/pear</filename> on your system. The subdirectory <filename>php4/pear/scripts </filename> contains the PEAR package manager. </para> <para> Basically the PEAR package manager consists of two different scripts: <filename>pear</filename> is the script that is used to create new packages you want to share with the PEAR community, to show some configuration etc. <filename>pear-get</filename> is used to install and upgrade PEAR packages on your system. You should copy both of these files to a directory like <filename>/usr/local/bin</filename> that is part of your local PATH directive. This might look like this: </para> <para> <programlisting role="bash"> $ cp php4/pear/scripts/pear.in /usr/local/bin/pear $ cp php4/pear/scripts/pear-get.in /usr/local/bin/pear-get </programlisting> </para> <para> Now you need to adjust some settings in the two files you copied in the previous step: Go to <filename>/usr/local/bin</filename> and change the first line (#!@prefix@/bin/php -Cq) in both files so that it points to the correct path for the PHP CGI interpreter (e.g. #!/usr/local/bin/php -Cq). </para> <para> Now you should be finished with setting up the PEAR package manager - Happy installing. If you have still problems with it, don't be afraid to <ulink url="mailto:&email.pear.dev;">drop us a note</ulink>. </para> </sect1> <sect1 id="installation.web"> <title>Web installer</title> <para> <warning id="installation.web.warning"> <title>Important!</title> <simpara> In order to make the described stuff work, you need to have the latest version of the PEAR package manager installed. </simpara> <para> Because the PEAR infrastructure is still in some kind of beta stage, you have to get the latest version from CVS. Please read the <link linkend="installation.getting">previous chapter</link> for more information. </para> </warning> </para> <para> The web installer is the easiest way to install PEAR packages on your system: It connects to the PEAR package server via a simple HTTP connection, loads the package on your system and installs it in the desired location. </para> <note> <simpara> We do not sell your IP adress, your hostname or something else we can determine, while you are downloading a package from the PEAR server, to any bad guy, who want's to make money with your personal information. </simpara> </note> <sect2> <title>Fully-automatic installation</title> <para> Using the web installer is pretty straightforward and easy to use. It is comparable to <ulink url="http://www.debian.org/"> Debian's</ulink> <filename>apt-get</filename>. Simply run the following line on your shell: </para> <para> <programlisting role="bash"> $ pear-get install http://pear.php.net/get/<package> </programlisting> </para> <para> <package> has to be replaced with the name of the package you want to install (e.g. HTTP_Upload). To get a list of the available packages, you can point your browser to the <ulink url=" http://pear.php.net/packages.php">PEAR package browser</ulink> or you can run: </para> <para> <programlisting role="bash"> $ pear-get list </programlisting> </para> <para> This command returns a list of all packages that are available in PEAR. </para> </sect2> <sect2> <title>Semi-automatic installation</title> <para> If you have downloaded a package release from <ulink url=" http://pear.php.net/">pear.php.net</ulink> as a gzipped tar archive, you can also install it locally. To do this, run the following line on your shell: </para> <para> <programlisting role="bash"> $ pear install <file>.tgz </programlisting> </para> <para> This command will automatically install the package and does not require an online connection. <filename><file>.tgz</filename> has to be replaced with the name of the downloaded file. </para> </sect2> </sect1> <sect1 id="installation.cvs"> <title>CVS installer</title> <para> This passage has not been written yet. </para> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.19 peardoc/manual.xml.in:1.20 --- peardoc/manual.xml.in:1.19 Sat Feb 9 09:06:05 2002 +++ peardoc/manual.xml.in Sun Feb 10 05:12:51 2002 @@ -30,6 +30,7 @@ <part id="about-pear"> <title>&AboutPEAR;</title> &chapters.intro; + &chapters.installation; &chapters.parts; &chapters.standards; </part> Index: peardoc/en/chapters/installation.xml +++ peardoc/en/chapters/installation.xml <?xml encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. --> <chapter id="installation"> <docinfo> <author> <firstname>Martin</firstname> <surname>Jansen</surname> </author> <date>2002-02-10</date> </docinfo> <title>Installation</title> <simpara> This chapter describes, how to install packages from PEAR. </simpara> <sect1 id="installation.introduction"> <title>Introduction</title> <para> This chapter requires that you are already familiar with the <link linkend="about.pear">general structure</link> of PEAR. </para> <para> The base installation that comes with the PHP distribution as part of the PFC, contains all the stuff that is needed to run the PEAR installation tools etc. If you have a recent installation of PHP 4, you can relax: The PEAR base installation is already installed on your system, unless you have compiled your PHP with the <filename>./configure</filename> flag '--without-pear'. </para> <para> If you are using a version of PHP that is pretty old, PEAR will not work. You are strongly encouraged to update your installation! If you don't do so, you risk that your server will be hacked by script-kiddies all around the world. </para> <para> The packages that are not part of the PFC can be installed in two different ways: <itemizedlist> <listitem> <simpara> <link linkend="installation.web">Via a web installer</link> </simpara> </listitem> <listitem> <simpara> <link linkend="installation.cvs">Via CVS</link> </simpara> </listitem> </itemizedlist> The first way is the prefered one and should be used, unless there are good reasons that are speaking against it. The second way is for the gurus amongst you that love to poke around with CVS clients or want to use the latest development versions of a package. </para> <para> Apart from installing packages, the PEAR package manager also handles some other tasks: It can create new packages on your machine, manage a registry of installed packages, check dependencies and it can interact with an XML-RPC service on the PEAR server, to serve some other tasks. </para> </sect1> <sect1 id="installation.getting"> <title>Getting the PEAR package manager</title> <para> To use the PEAR package manager, your system has to fulfill the following requirements: <itemizedlist> <listitem> <simpara> PHP 4 Interpreter (CGI-Version) has to available </simpara> </listitem> <listitem> <simpara> The PEAR files from php4/pear/ CVS have to be installed </simpara> </listitem> <listitem> <simpara> Archive/Tar.php has to be copied manually if it does not exist </simpara> </listitem> </itemizedlist> </para> <para> Installation of the CGI version of PHP is well documented in the <ulink url="http://php.net/manual/en/installation.php">PHP manual, chapter 2</ulink>. We will not cover it here again. </para> <para> Now you have to get the latest version of the PEAR package manager from CVS: </para> <para> <programlisting role="bash"> $ cvs -z3 -d :pserver:cvsread@cvs.php.net:/repository login Password: [use "phpfi" as password] cvs -z3 -d :pserver:cvsread@cvs.php.net:/repository co php4/pear </programlisting> </para> <para> You know have a directory <filename>php4/pear</filename> on your system. The subdirectory <filename>php4/pear/scripts </filename> contains the PEAR package manager. </para> <para> Basically the PEAR package manager consists of two different scripts: <filename>pear</filename> is the script that is used to create new packages you want to share with the PEAR community, to show some configuration etc. <filename>pear-get</filename> is used to install and upgrade PEAR packages on your system. You should copy both of these files to a directory like <filename>/usr/local/bin</filename> that is part of your local PATH directive. This might look like this: </para> <para> <programlisting role="bash"> $ cp php4/pear/scripts/pear.in /usr/local/bin/pear $ cp php4/pear/scripts/pear-get.in /usr/local/bin/pear-get </programlisting> </para> <para> Now you need to adjust some settings in the two files you copied in the previous step: Go to <filename>/usr/local/bin</filename> and change the first line (#!@prefix@/bin/php -Cq) in both files so that it points to the correct path for the PHP CGI interpreter (e.g. #!/usr/local/bin/php -Cq). </para> <para> Now you should be finished with setting up the PEAR package manager - Happy installing. If you have still problems with it, don't be afraid to <ulink url="mailto:&email.pear.dev;">drop us a note</ulink>. </para> </sect1> <sect1 id="installation.web"> <title>Web installer</title> <para> <warning id="installation.web.warning"> <title>Important!</title> <simpara> In order to make the described stuff work, you need to have the latest version of the PEAR package manager installed. </simpara> <para> Because the PEAR infrastructure is still in some kind of beta stage, you have to get the latest version from CVS. Please read the <link linkend="installation.getting">previous chapter</link> for more information. </para> </warning> </para> <para> The web installer is the easiest way to install PEAR packages on your system: It connects to the PEAR package server via a simple HTTP connection, loads the package on your system and installs it in the desired location. </para> <note> <simpara> We do not sell your IP adress, your hostname or something else we can determine, while you are downloading a package from the PEAR server, to any bad guy, who want's to make money with your personal information. </simpara> </note> <sect2> <title>Fully-automatic installation</title> <para> Using the web installer is pretty straightforward and easy to use. It is comparable to <ulink url="http://www.debian.org/"> Debian's</ulink> <filename>apt-get</filename>. Simply run the following line on your shell: </para> <para> <programlisting role="bash"> $ pear-get install http://pear.php.net/get/<package> </programlisting> </para> <para> <package> has to be replaced with the name of the package you want to install (e.g. HTTP_Upload). To get a list of the available packages, you can point your browser to the <ulink url=" http://pear.php.net/packages.php">PEAR package browser</ulink> or you can run: </para> <para> <programlisting role="bash"> $ pear-get list </programlisting> </para> <para> This command returns a list of all packages that are available in PEAR. </para> </sect2> <sect2> <title>Semi-automatic installation</title> <para> If you have downloaded a package release from <ulink url=" http://pear.php.net/">pear.php.net</ulink> as a gzipped tar archive, you can also install it locally. To do this, run the following line on your shell: </para> <para> <programlisting role="bash"> $ pear install <file>.tgz </programlisting> </para> <para> This command will automatically install the package and does not require an online connection. <filename><file>.tgz</filename> has to be replaced with the name of the downloaded file. </para> </sect2> </sect1> <sect1 id="installation.cvs"> <title>CVS installer</title> <para> This passage has not been written yet. </para> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->