Page 1 of 1

pear within xampp installer

PostPosted: 11. October 2011 14:09
by chandecweng
Hi, I can't find go-pear.bat in xampp 1.7.7. and can't use pear successfully.

I try many time and really can't solve the problem.

About the pear_env.reg, I can't manually execute it too.

I download xampp by installer.

Thanks for reply me !!!

Re: pear within xampp installer

PostPosted: 11. October 2011 15:46
by Altrea
pear is already installed in your \xampp\php\PEAR directory.
You can use pear for example with the XAMPP-Shell (Button in your XAMPP control panel v3 beta).
Type in "pear version" and you should get the installed versionnumber.

Re: pear within xampp installer

PostPosted: 12. October 2011 06:48
by chandecweng
Altrea wrote:pear is already installed in your \xampp\php\PEAR directory.
You can use pear for example with the XAMPP-Shell (Button in your XAMPP control panel v3 beta).
Type in "pear version" and you should get the installed versionnumber.

Hi, Thanks for reply me,but I fail to upgrade the package
Maybe because of the environment variable?
The window command prompt ouput,for example: ERROR: failed to mkdir c:\php\pear\tests\Mail_mimeDecode\tests
Thanks for helping me !!!

Re: pear within xampp installer

PostPosted: 12. October 2011 18:20
by Altrea
We need information about your OS and the user priviledges you have on this machine.

ERROR: failed to mkdir c:\php\pear\tests\Mail_mimeDecode\tests

c:\php\ is not the correct path, so no wonder why that failed.
But to give you a better support we need information aout what you have done exactly to get this error.

Do you have used the XAMPP-Shell? What do you have typed in?
The more information we get the better we can help.

Re: pear within xampp installer

PostPosted: 13. October 2011 13:41
by chandecweng
Altrea wrote:We need information about your OS and the user priviledges you have on this machine.

ERROR: failed to mkdir c:\php\pear\tests\Mail_mimeDecode\tests

c:\php\ is not the correct path, so no wonder why that failed.
But to give you a better support we need information aout what you have done exactly to get this error.

Do you have used the XAMPP-Shell? What do you have typed in?
The more information we get the better we can help.


Hi, thanks for your help,

I am using xampp-control-3-beta.exe

I press the xampp-shell button

Then I update-channels the pear.php.net

It output :Updating channel "components.ez.no"
Cannot retrieve channel.xml for channel "components.ez.no" (Connection to 'components.ez.no:80' failed: php_network_getaddresses: getaddrinfo failed: No such host is known.)

I not yet set the password for xampp and Mysql when doing the update

Then I type in :pear upgrade-all

First,it output: Failed to download pear/archive_zip within preferred state "stable", latest release is version 0.1.2,stability "beta", use "channel://pear.php.net/archive_zip-0.1.2" to install
Cannot initialize 'channel://pear.php.net/archive_zip' , invalid or missing package file

Other package are the same

Then the xampp shell help me download the new package
Download finish and output

Package "channel://pear.php.net/archive_zip" is not valid
Some of the package also output the same ,then

ERROR: failed to mkdir c:\php\pear\tests\Mail_mimeDecode\tests

Other also same

I am using 64-bit Operating System or Windows_NT
This is my environment variable :

Path: C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec MyWinLocker\x86;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\

Window 7 user

User privilege: program files(x 86) is unwriteable

I am the only user

Thanks a lot for helping me,sincerely !!!

Re: pear within xampp installer

PostPosted: 13. October 2011 13:53
by Sharley
Did you install XAMPP in the C:\ drive - no spaces or special characters in the folder name - so you end up with C:\xampp

XAMPP and it's components don't get on too well if you install to C:\Program Files (x 86\xampp

If you have to install again then use the archive version (zip or 7zip) and after extracting run the setup_xampp.bat file in the xampp folder to set all the paths correctly.

XAMPP will only work if installed in the root of a drive or partition and works well in the C:\ drive as C:\xampp

Best wishes. :)

Re: pear within xampp installer

PostPosted: 13. October 2011 14:01
by chandecweng
Sharley wrote:Did you install XAMPP in the C:\ drive - no spaces or special characters in the folder name - so you end up with C:\xampp

XAMPP and it's components don't get on to well if you install to C:\Program Files (x 86\xampp


I install using c:\xampp and last time I install webMatrix by Microsoft and I have install Internet Information service(IIS)Manager and

every time I start my laptop,it automatic assign the port 80 to IIS and I have to close it so that I can use Apache

Re: pear within xampp installer

PostPosted: 13. October 2011 14:11
by Sharley
That's good. 8)

My next question is do you have another php installation on your PC?

With Apache and MySQL running go to http://localhost/xampp/phpinfo.php and look for the item:
Loaded configuration file
It should show C:\xampp\php\php.ini
Let me know if that is correct.

I want to make sure that you are using the correct php.ini file as there may be others on your PC after install those other servers. :)

Re: pear within xampp installer

PostPosted: 13. October 2011 14:35
by chandecweng
Sharley wrote:That's good. 8)

My next question is do you have another php installation on your PC?

With Apache and MySQL running go to http://localhost/xampp/phpinfo.php and look for the item:
Loaded configuration file
It should show C:\xampp\php\php.ini
Let me know if that is correct.

I want to make sure that you are using the correct php.ini file as there may be others on your PC after install those other servers.
:)


It show C:\xampp\php\php.ini

Thanks

Re: pear within xampp installer

PostPosted: 13. October 2011 14:43
by Sharley
Looking Good. 8)

Now using the xampp_shell can you see the list of installed packages and their versions by typing pear list at the command prompt?

If so are there any that you feel need updating and if so which ones?

I just test pear channel-update pear.php.net and I had an update succeed with no errors using a clean 7zip installation.

So we need to see why you are having problems that at this point in time I can't understand.

How do you feel about uninstalling the installer version you now use and then downloading and using the 7zip version?

Re: pear within xampp installer

PostPosted: 13. October 2011 14:56
by Sharley
How to change port 80 in IIS on Win 7 if it helps :)
http://www.gadgetcage.com/how-to-change ... ws-7/3457/

Re: pear within xampp installer

PostPosted: 13. October 2011 15:16
by chandecweng
Sharley wrote:Looking Good. 8)

Now using the xampp_shell can you see the list of installed packages and their versions by typing pear list at the command prompt?

If so are there any that you feel need updating and if so which ones?

I just test pear channel-update pear.php.net and I had an update succeed with no errors using a clean 7zip installation.

So we need to see why you are having problems that at this point in time I can't understand.

How do you feel about uninstalling the installer version you now use and then downloading and using the 7zip version?


If you want to use the package, for example Auth/HTTP.php

And so you create a php file and insert this "require_once("Auth/HTTP.php");" and put it into htdocs

And use the web browser to see it output

Like this?

Thanks