jpablobr.com

→ migrate from wamp to xampp pear issues 2008 server

More on: wamp, xampp, pear, Tue Dec 24 00:59:58 -0600 2009

I’ve being playing around with the Apache Ant tool and definitely WAMP server was not up to the challenge. I started having several issues with xdebug and Pear features in general… So, I thought about giving a try to XAMPP (which I think that the home page is king of weird… lol, any way…) it comes with much more configuration options… therefore if you” know” what you are doing I think is much better!

Well, firs problem was that I Got the following error on running pear.bat from command.com.

The PHP_PEAR_INSTALL_DIR is set to ='c:\wamp\php\php5.2.6'. you need to change the path in the environment variables or change it in pear.bat file.

I tried deleting the environment variables from my 2008 server System (pretty much the same as vista) & restarted. But no luck!

Then again deleted the environment variables I created and logged off and on my computer...then again ran pear.bat from command.com...now got the initial error again:

C:\Documents and Settings\ Administrator\pear PHP_PEAR_INSTALL_DIR is not set correctly. Please fix it using your environment variable or modify the default value in pear.bat The current value is: C:\wamp\bin\php\php5.2.6\pear

go-pear.bat still gives me the same error:

C:\xampp\php>go-pear.bat ERROR: manifest length read was "1236" should be "678716787"Press any key to continue . . .

Then I tried adding them using DOS SET command, though found that its a temporary command. Then added them through right click “computer” > System > Advanced > Environment variables...
PHP_PEAR_BIN_DIR=C:\xampp\php PHP_PEAR_INSTALL_DIR=C:\xampp\php\pear PHP_PEAR_PHP_BIN=C:\xampp\php\.\php.exe

Ran pear.bat....it ran this time w/o any errors & this was the output, which made me realize that the env variables are being taken from some file located elsewhere in the C:\ drive.

C:\Documents and Settings\Administrator\Desktop>pear config-show CONFIGURATION (CHANNEL PEAR.PHP.NET): ===================================== Auto-discover new Channels auto_discover <not set> Default Channel default_channel pear.php.net HTTP Proxy Server Address http_proxy <not set> PEAR server [DEPRECATED] master_server pear.php.net Default Channel Mirror preferred_mirror pear.php.net Remote Configuration File remote_config <not set> PEAR executables directory bin_dir C:\wamp\bin\php\php5.2.6 PEAR documentation directory doc_dir C:\wamp\bin\php\php5.2.6\docs PHP extension directory ext_dir C:\xampp\php\ext\ PEAR directory php_dir C:\wamp\bin\php\php5.2.6\pear PEAR Installer cache directory cache_dir C:\DOCUME~1\sifar786\LOCALS~1\Te mp\pear\cache PEAR configuration file cfg_dir C:\wamp\bin\php\php5.2.6\cfg directory PEAR data directory data_dir C:\wamp\bin\php\php5.2.6\data PEAR Installer download download_dir C:\wamp\bin\php\php5.2.6\tmp directory PHP CLI/CGI binary php_bin C:\wamp\bin\php\php5.2.6\.\php.e xe php.ini location php_ini <not set> PEAR Installer temp directory temp_dir C:\wamp\bin\php\php5.2.6\tmp PEAR test directory test_dir C:\wamp\bin\php\php5.2.6\tests PEAR www files directory www_dir C:\wamp\bin\php\php5.2.6\www Cache TimeToLive cache_ttl 3600 Preferred Package State preferred_state stable Unix file mask umask 0 Debug Log Level verbose 1 PEAR password (for password <not set> maintainers) Signature Handling Program sig_bin c:\gnupg\gpg.exe Signature Key Directory sig_keydir C:\WINDOWS\pearkeys Signature Key Id sig_keyid <not set> Package Signature Type sig_type gpg PEAR username (for username <not set> maintainers) User Configuration File Filename C:\WINDOWS\pear.ini System Configuration File Filename C:\WINDOWS\pearsys.ini

Searched and found a pear.ini file in the c:\windows directory & it had the following old paths....

#PEAR_Config 0.9 a:12:{s:15:"preferred_state";s:6:"stable";s:8:"temp_dir";s:28:"C:\wamp\bin\php\php5.2.6\tmp";s:12:"download_dir";s:28:"C:\wamp\bin\php\php5.2.6\tmp";s:7:"bin_dir";s:24:"C:\wamp\bin\php\php5.2.6";s:7:"php_dir";s:29:"C:\wamp\bin\php\php5.2.6\pear";s:7:"doc_dir";s:29:"C:\wamp\bin\php\php5.2.6\docs";s:8:"data_dir";s:29:"C:\wamp\bin\php\php5.2.6\data";s:7:"cfg_dir";s:28:"C:\wamp\bin\php\php5.2.6\cfg";s:7:"www_dir";s:28:"C:\wamp\bin\php\php5.2.6\www";s:8:"test_dir";s:30:"C:\wamp\bin\php\php5.2.6\tests";s:7:"php_bin";s:34:"C:\wamp\bin\php\php5.2.6\.\php.exe";s:10:"__channels";a:2:{s:5:"__uri";a:0:{}s:12:"pecl.php.net";a:0:{}}}

So I deleted all these files outside of my XAMPP directory > restart > and that was it… I can now use pear with out a problem and configure XAMPP however I want to...

blog comments powered by

Disqus