I previously had WAMP server and tried installing pear but the whole configuration got messed up. There was an PEAR_ENV.reg file which i was told to install and which i did...when i got fedup with WAMP, i uninstalled it. 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.
then i deleted the environment variables from my Winxp System & restarted my system.
Now i installed XAMPP which has pear installed by default... though now i get an error..
Manifest length read was 1236 sould be 678716787
when i run go-pear.bat from my c:\xampp\php\pear path from command.com.
i recreated the pear_env.reg file like this to install the correct paths:
- Code: Select all
REGEDIT4
[HKEY_CURRENT_USER\Environment]
"PHP_PEAR_SYSCONF_DIR"="C:\\xampp\\php"
"PHP_PEAR_INSTALL_DIR"="C:\\xampp\\php\\pear"
"PHP_PEAR_DOC_DIR"="C:\\xampp\\php\\pear\\docs"
"PHP_PEAR_BIN_DIR"="C:\\xampp\\php"
"PHP_PEAR_DATA_DIR"="C:\\xampp\\php\\pear\\data"
"PHP_PEAR_PHP_BIN"="C:\\xampp\\php\\.\\php.exe"
"PHP_PEAR_TEST_DIR"="C:\\xampp\\php\\pear\\tests"
Now when i run pear.bat again, i get the following error:
Notice: unserialize(): Error at offset 42 of 656 bytes in Config.php on line 105
6
ERROR: The default config file is not a valid config file or is corrupted.
What are the default paths and how to change the environment variables? What am i doing wrong? Do i need to reinstall the Whole working XAMPP again? Do i need to delete the environment variables set manually again, cos their paths may be wrong for XAMPP?
Please advice.