Development

HowToInstallPearOnWindowsWithWamp (diff)

You must first sign up to be able to contribute.

Changes between Version 20 and Version 21 of HowToInstallPearOnWindowsWithWamp

Show
Ignore:
Author:
pipdarude (IP: 76.171.31.48)
Timestamp:
03/09/08 05:24:51 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToInstallPearOnWindowsWithWamp

    v20 v21  
    11= How to install PEAR on windows with WAMP = 
    22 
    3 Hello, in this turial I try to explain step by step like installing to [http://pear.php.net PEAR] and some of its Packages in Windows with [http://www.wampserver.com/en/ WAMP]. 
     3Hello, in this tutorial I will explain step by step how to install [http://pear.php.net PEAR] and some of its packages in Windows with [http://www.wampserver.com/en/ WAMP]. 
    44 
    5 1. Download and install the last version of Wamp Server. This it is to multiInstaller AMP (Apache, MySQL & PHP) that use, but I do not doubt that the results will be equal of satisfactory if you use another one, like for example [http://www.apachefriends.org/en/xampp.html XAMPP]
     51. Download and install the latest version of the WAMP Server. This is the Windows AMP (Apache, MySQL & PHP) package that I use, but I do not doubt that the results will be equally satisfactory if you use another one, like [http://www.apachefriends.org/en/xampp.html XAMPP] for example
    66 
    7 2. During the installation, I have left by defect the path's that to us the installer proposes, as they are: All the AMP: "C:\wamp", PathRoot: "C:\wamp\www". Although for the tutorial these path's will be of importance, you can choose the path's to your convenience
     72. During the installation, I used the default paths proposed the installer: "C:\wamp", "C:\wamp\www", etc. Although these paths will be referenced in this tutorial, feel free to alter the paths to your needs
    88 
    9 3. Enters to "C:\wamp\php", soon looks for and executes the file "go-pear.bat". 
     93. Enter "C:\wamp\php", and locate and execute the file "go-pear.bat". 
    1010 
    1111[[Image(powww-01.jpg)]] 
    1212 
    13 4. The window of ''Lines of Commands'' will be opened with the following message, immediately afterwards we pressed Enter: 
     134. A command prompt window will be opened with the following message; press Enter to proceed. 
    1414 
    1515[[Image(powww-02.jpg)]] 
    1616 
    17 5. After this, it will appear to us a list numbered until the 10. Here simply we return to press Enter. 
     175. Afterward, a list of up to 10 (this length may differ on XAMPP and others) filesystem locations will be displayed. Once again press Enter. 
    1818 
    1919[[Image(powww-03.jpg)]] 
    2020 
    21 6. Finished executing it will ask to us if we want that '''php.ini''' is modified, writes the letter '''"Y"''' (of yes, in capital letters and without comiles) and presses again Enter. 
     216. Then it will ask if we want to modify '''php.ini'''; Type in the letter '''"Y"''' (in capital letters) and press Enter. 
    2222 
    2323[[Image(powww-04.jpg)]] 
    2424 
    25 7. If you wonder yourself where this modification became, it walks until at the end of the file '''"php.ini"''' located in "C:\wamp\php" (the same path is shown in the ''line of commands'') and observes the change: 
     257. To view this modification check the end of the '''"php.ini"''' (located in "C:\wamp\php") and you should see: 
    2626 
    2727{{{ 
    3131}}} 
    3232 
    33 8. Next it will be said to you that '''include_path''' will be updated, single press Enter
     338. Next you will be notified that the '''include_path''' was updated. Press Enter to continue
    3434 
    3535[[Image(powww-05.jpg)]] 
    3636 
    37 9. And up to here the ''line of command'' arrived, (at the moment). As last message announces to us that a called file '''PEAR_ENV.reg''' has been created, which will add some '''windows environmet variables'''. 
     379. A final message announces that a file called '''PEAR_ENV.reg''' has been created, which, upon execution, will add some '''Windows environment variables'''. 
    3838 
    3939[[Image(powww-06.jpg)]] 
    4040 
    41 10. It enters to "C:\wamp\php" and it gives double click to the file '''"PEAR_ENV.reg"'''. To the message that appears it gives in '''"Yes"''' and to the following one it gives '''"Accept"'''. 
     4110. Enter "C:\wamp\php" and double click the file called '''"PEAR_ENV.reg"'''. When asked to confirm the addition of registry values choose '''"Yes"''' and then click '''"OK"'''. 
    4242 
    4343[[Image(powww-07.jpg)]] 
    4747[[Image(powww-09.jpg)]] 
    4848 
    49 11. In he himself directory, it copies the file '''pear.bat''' and paste in the directory "C:\WINDOWS\system32"
     4911. In "C:\wamp\php", copy the file '''pear.bat''' to "C:\WINDOWS\system32". Alternatively you can add "C:\wamp\php" to your windows PATH environment variable to expose this file globally
    5050 
    5151[[Image(powww-10.JPG)]] 
    5252 
    53 12. Now it activates the '''"Window Execute"''' and it writes '''"cmd"''' to open the line of command
     5312. Next open the run dialog and type '''"cmd"''' to open a command prompt window
    5454 
    5555[[Image(powww-11.jpg)]] 
    5656 
    57 13. Once in pront it write '''pear''' so that commands appears to you all them who contains. If an error happened you will have to review the previous steps in case I do not go anything to you
     5713. Type '''pear''' to see all available commands and verify proper installation. If this command is unrecognized you will have to review the previous steps and repeat anything you missed
    5858 
    5959[[Image(powww-12.jpg)]] 
    6060 
    61 14. In this step it tries to install a '''package''' of '''PEAR''' like for example the one of '''MDB2'''. 
    62  
    63 [[Image(powww-13.jpg)]] 
    64  
    65 15. Oops, a '''"fatal error"''' would have to appear. What happens is that in php.ini the limit of memory assigned for ours scripts PHP is of 8MB. 
    66  
    67 [[Image(powww-14.jpg)]] 
    68  
    69 16. In order to avoid this error in the facilities to '''PEAR''' and future occasions, we will have changes to the size of memory assigned in 2 archives '''php.ini''', to for example 64MB. These archives are in: "C:\wamp\php\php.ini" and "C:\wamp\Apache2\bin\php.ini". 
    70  
    71 [[Image(powww-15.jpg)]] 
     6114. Next update the '''memory_limit''' property value to 64M in php.ini. This will help php script execution. This file is found in 
     62"C:\wamp\php\php.ini" and "C:\wamp\Apache2\bin\php.ini"; update both. 
    7263 
    7364[[Image(powww-16.jpg)]] 
    7465 
    75 [[Image(powww-17.jpg)]] 
    76  
    7766[[Image(powww-18.jpg)]] 
    7867 
    79 17. Now it reinitiates the services/processes through WAMP. 
     6815. Now reinitiate the services/processes through WAMP. 
    8069 
    8170[[Image(powww-19.JPG)]] 
    8271 
    83 18. It returns to try to install to '''PEAR MDB2''' like in step 14, in this safe occasion that one will settle successfully. 
    8472 
    85 [[Image(powww-20.jpg)]] 
    86  
    87 19. In order to finalize it writes to '''pear list''', to list all the packages installed of pear, in the sides that already appear listing MDB2. 
    88  
    89 [[Image(powww-21.jpg)]] 
    90  
    91  
    92 As you can see this is a way to install to PEAR (although is the unique one that I know). 
    93  
    94 A last recommendation, whenever you update to pear or some of their packages copy '''pear.bat''' in '''system32''' again, therefore we made sure to have also updates our line of commands to PEAR. 
     73Finally, whenever you update PEAR or some of its packages, copy '''pear.bat''' into '''system32''' to update our list of PEAR commands. This extra step can be avoided if the path to '''pear.bat''' has been added to your PATH environment variable. 
    9574 
    9675The continuation of this tutorial is: [http://trac.symfony-project.com/trac/wiki/HowToInstallSymfonyOnWindowsWithWamp How to install Symfony on windows with WAMP]