Re: Cannot Install Pear - PHP 5.2.4 - Cannot enter PHP CLI directory
| From: | Gregory Beaver | Date: | Mon, 08 Oct 2007 05:11:46 +0000 |
| Subject: | Re: Cannot Install Pear - PHP 5.2.4 - Cannot enter PHP CLI directory | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28071@lists.php.net to get a copy of this message | ||
greg ursel wrote:
> I have just installed Apache 2.2.4 PHP 5.2.4 on a Windows XP PRO SP1 machine (using the
> console) and am trying to install PEAR. I run go-pear.bat, (I have also tried php go-pear.phar) I
> cannot enter the Path to the CLI php.exe . It keeps on reporting that the directory is not a folder
> or php.exe is not there. I have checked and php.new is indeed in the folder I specified.
>
> Any help would be much appreciated.
Hi Greg,
Could you verify that:
dir c:\ms4w\apache\cgi-bin\php.exe
results in php.exe? If so, can you verify that:
c:\ms4w\apache\cgi-bin\php.exe -v results in
PHP 5.2.4 (cli)
Thanks,
Greg
>
> Thanks
> Greg
>
>
>
> C:\ms4w\Apache\php>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:\ms4w\Apache\php
> 2. Temporary directory for processing : C:\ms4w\Apache\php\tmp
> 3. Temporary directory for downloads : C:\ms4w\Apache\php\tmp
> 4. Binaries directory : C:\ms4w\Apache\php
> 5. PHP code directory ($php_dir) : C:\ms4w\Apache\php\pear
> 6. Documentation directory : C:\ms4w\Apache\php\pear\docs
> 7. Data directory : C:\ms4w\Apache\php\pear\data
> 8. Tests directory : C:\ms4w\Apache\php\pear\tests
> 9. Name of configuration file : C:\ms4w\Apache\php\pear.ini
> 10. Path to CLI php.exe :
>
> 1-10, 'all' or Enter to continue: 10 c:\ms4w\apache\cgi-bin\.
> **ERROR**: not a folder, or no php.exe found in this folder.
> Press Enter to continue...
>
> 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:\ms4w\Apache\php
> 2. Temporary directory for processing : C:\ms4w\Apache\php\tmp
> 3. Temporary directory for downloads : C:\ms4w\Apache\php\tmp
> 4. Binaries directory : C:\ms4w\Apache\php
> 5. PHP code directory ($php_dir) : C:\ms4w\Apache\php\pear
> 6. Documentation directory : C:\ms4w\Apache\php\pear\docs
> 7. Data directory : C:\ms4w\Apache\php\pear\data
> 8. Tests directory : C:\ms4w\Apache\php\pear\tests
> 9. Name of configuration file : C:\ms4w\Apache\php\pear.ini
> 10. Path to CLI php.exe :
>
> 1-10, 'all' or Enter to continue: ^CTerminate batch job (Y/N)? y
>
> C:\ms4w\Apache\php>