[PEAR] Installation et utilisation de PEAR
Bonjour à toutes et tous,
Comme à mon habitude, voici là situation:
J'utilise WampServer2.0i que j'ai quelque peu modifié pour accueillir:
- Apache 2.2.17
- PHP 5.3.3
- MySQL 5.1.53
- PhpMyAdmin 3.3.8.1
Tout ce petit monde cohabite et fonctionne à merveille :D
Maintenant, j'ai besoin d'installe PEAR pour pouvoir utiliser les fonctions d'envois d'email avec authentification au smtp.
Donc j'ai modifié go-pear.bat pour ne plus avoir de message d'erreur:
Code:
1 2 3 4
| @ECHO OFF
set PHP_BIN=php.exe
%PHP_BIN% -d output_buffering=0 -d phar.require_hash=0 PEAR\go-pear.phar
pause |
Ce script s'exécute bien et il me propose bien d'installer PEAR :ccool:
Par contre j'ai un doute au moment du choix des dossiers (2ème étape de l'installation)
En fait, j'ai à l'écran ce qui suis:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
c:\wamp\bin\php\php5.3.3>go-pear.bat
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation base ($prefix) : C:\wamp\bin\php\php5.3.3
2. Temporary directory for processing : C:\wamp\bin\php\php5.3.3\tmp
3. Temporary directory for downloads : C:\wamp\bin\php\php5.3.3\tmp
4. Binaries directory : C:\wamp\bin\php\php5.3.3
5. PHP code directory ($php_dir) : C:\wamp\bin\php\php5.3.3\pear
6. Documentation directory : C:\wamp\bin\php\php5.3.3\docs
7. Data directory : C:\wamp\bin\php\php5.3.3\data
8. User-modifiable configuration files directory : C:\wamp\bin\php\php5.3.3\cfg
9. Public Web Files directory : C:\wamp\bin\php\php5.3.3\www
10. Tests directory : C:\wamp\bin\php\php5.3.3\tests
11. Name of configuration file : C:\Windows\pear.ini
12. Path to CLI php.exe : .
1-12, 'all' or Enter to continue: |
Pour le premier choix (SYSTEM ou LOCAL) j'ai choisi: SYSTEM (choix par défaut)
Pour les dossiers je constate notamment qu'il me propose
Pour le dossier WWW: C:\wamp\bin\php\php5.3.3\www
alors que mon dossier WWW est celui de Wamp c'est à dire: C:\wamp\www\
Pour le dossier data: C:\wamp\bin\php\php5.3.3\data
alors que mon dossier data est celui de MySQL c'est à dire: C:\wamp\bin\mysql\mysql5.1.53\data
Dois-je changer les paramètres que me propose l'installation de PEAR ? Pour trouver dans la liste des dossiers:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
1. Installation base ($prefix) : C:\wamp\bin\php\php5.3.3
2. Temporary directory for processing : C:\wamp\bin\php\php5.3.3\tmp
3. Temporary directory for downloads : C:\wamp\bin\php\php5.3.3\tmp
4. Binaries directory : C:\wamp\bin\php\php5.3.3
5. PHP code directory ($php_dir) : C:\wamp\bin\php\php5.3.3\pear
6. Documentation directory : C:\wamp\bin\php\php5.3.3\docs
7. Data directory : C:\wamp\bin\mysql\mysql5.1.53\data
8. User-modifiable configuration files directory : C:\wamp\bin\php\php5.3.3\cfg
9. Public Web Files directory : C:\wamp\www\
10. Tests directory : C:\wamp\bin\php\php5.3.3\tests
11. Name of configuration file : C:\Windows\pear.ini
12. Path to CLI php.exe : . |
Voilà j'attends vos suggestions avant de poursuivre cette installation. Merci par avance à ceux qui pourront me renseigner :D