How to troubleshoot errors under Windows Install Pear php5.3.1 _linux

Source: Internet
Author: User
Tags pear

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.