Install pear in PHP without a go-pear.bat

Source: Internet
Author: User
Because you need to install phpunit, you need to install pear first, most of the online tutorials are to double-click the go-pear.bat, But I installed the PHP Folder does not have this file.
After several searches, I finally found a solution.
The solution is as follows:
1. download the following connected files to the go-pear.phar.
Http://pear.php.net/go-pear.phar
Put this file in the PHP Directory, because many folders and files will be generated after the next step.

2. Execute PHP go-pear.phar
(In Windows, run cmd as Administrator because of UAC problems.
Run cmd as an administrator.
Create the cmd. BAT file-> there is only one statement in the file: cmd-> right-click to run the BAT file as an administrator)

3. Enter all the way

The installation is complete!

For more details, visit pear's website.
Http://pear.php.net/manual/en/installation.getting.php

Related Article

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.