Changes between Version 20 and Version 21 of HowToInstallPearOnWindowsWithWamp
- Timestamp:
- 03/09/08 05:24:51 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToInstallPearOnWindowsWithWamp
v20 v21 1 1 = How to install PEAR on windows with WAMP = 2 2 3 Hello, in this tu rial 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].3 Hello, 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]. 4 4 5 1. Download and install the la st 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].5 1. 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. 6 6 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.7 2. 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. 8 8 9 3. Enter s to "C:\wamp\php", soon looks for and executesthe file "go-pear.bat".9 3. Enter "C:\wamp\php", and locate and execute the file "go-pear.bat". 10 10 11 11 [[Image(powww-01.jpg)]] 12 12 13 4. The window of ''Lines of Commands'' will be opened with the following message, immediately afterwards we pressed Enter:13 4. A command prompt window will be opened with the following message; press Enter to proceed. 14 14 15 15 [[Image(powww-02.jpg)]] 16 16 17 5. After this, it will appear to us a list numbered until the 10. Here simply we return topress Enter.17 5. Afterward, a list of up to 10 (this length may differ on XAMPP and others) filesystem locations will be displayed. Once again press Enter. 18 18 19 19 [[Image(powww-03.jpg)]] 20 20 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 againEnter.21 6. Then it will ask if we want to modify '''php.ini'''; Type in the letter '''"Y"''' (in capital letters) and press Enter. 22 22 23 23 [[Image(powww-04.jpg)]] 24 24 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:25 7. To view this modification check the end of the '''"php.ini"''' (located in "C:\wamp\php") and you should see: 26 26 27 27 {{{ 31 31 }}} 32 32 33 8. Next it will be said to you that '''include_path''' will be updated, single press Enter.33 8. Next you will be notified that the '''include_path''' was updated. Press Enter to continue. 34 34 35 35 [[Image(powww-05.jpg)]] 36 36 37 9. A nd 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'''.37 9. A final message announces that a file called '''PEAR_ENV.reg''' has been created, which, upon execution, will add some '''Windows environment variables'''. 38 38 39 39 [[Image(powww-06.jpg)]] 40 40 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"'''.41 10. 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"'''. 42 42 43 43 [[Image(powww-07.jpg)]] 47 47 [[Image(powww-09.jpg)]] 48 48 49 11. In he himself directory, it copies the file '''pear.bat''' and paste in the directory "C:\WINDOWS\system32".49 11. 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. 50 50 51 51 [[Image(powww-10.JPG)]] 52 52 53 12. N ow it activates the '''"Window Execute"''' and it writes '''"cmd"''' to open the line of command.53 12. Next open the run dialog and type '''"cmd"''' to open a command prompt window. 54 54 55 55 [[Image(powww-11.jpg)]] 56 56 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.57 13. 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. 58 58 59 59 [[Image(powww-12.jpg)]] 60 60 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)]] 61 14. 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. 72 63 73 64 [[Image(powww-16.jpg)]] 74 65 75 [[Image(powww-17.jpg)]]76 77 66 [[Image(powww-18.jpg)]] 78 67 79 1 7. Now it reinitiatesthe services/processes through WAMP.68 15. Now reinitiate the services/processes through WAMP. 80 69 81 70 [[Image(powww-19.JPG)]] 82 71 83 18. It returns to try to install to '''PEAR MDB2''' like in step 14, in this safe occasion that one will settle successfully.84 72 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. 73 Finally, 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. 95 74 96 75 The continuation of this tutorial is: [http://trac.symfony-project.com/trac/wiki/HowToInstallSymfonyOnWindowsWithWamp How to install Symfony on windows with WAMP]