Phar "C:\php\PEAR\go-pear.phar" does not have a signature
PHP warning:require_once(phar://go-pear.phar/index.php): Failed to open Stream:phar error:invalid URL or non-e Xistent Phar "phar://go-pear.phar/index.php" in C:\php\PEAR\go-pear.phar on line 1236
However, the command-line approach to Php.exe can be installed successfully (refer to http://blog.pear.php.net/2009/07/01/php-53-windows-and-pear/):
Open a command line window, switch directories to the directory in PHP (my directory is "C:\php"), and then enter php-d phar.require_hash=0 Pear/go-pear.phar, which goes into the installation process.
You will then ask to be installed on the system or locally, enter local and confirm by Yes.
Then there is the query about the path, there are a lot of options, if you need to change the individual directory, enter the appropriate number. By default, press ENTER to continue.
Starting installation, there may be some warnings in the middle that can be ignored for the time being.
You may then experience a warning that the current PHP configuration file php.ini does not contain pear's directory, and then asks if you want to change the configuration file to automatically add Pear's directory, enter y OK.
If you are careful, you can find the path of the php.ini file changed
The end of the section along with it: first hint in the PHP root directory to find the old version of Pear, in short, to determine the use of Pear.bat on the line. And the Pear command is not in the PATH environment variable, you need to add the PHP root directory to the PATH environment variable. And then pear, even if it was successfully installed!
Add the PATH environment variable method as follows:
Open System Properties (you can open it by holding down ALT and double-clicking My Computer), and then select the Advanced tab and click on the "Environment variables" below.
After the pop-up window double-click "Path" in the system variable, in the pop-up edit box at the end of the variable value plus the PHP root directory (my directory for C:\php), all the way OK.
All the steps here have been completed, and other questions about pear can be referred to in its handbook.
©2009 Lovelovelt. All Rights Reserved.