Install Pear package (Lynx and PHP-CLI installation) under Ubuntu

Source: Internet
Author: User
Tags pear
If Lynx and PHP5-CLI are already installed, it is convenient to install the pear package. If Lynx and PHP5-CLI are installed, run the # Lynx-source http://pear.php.net/go-pear directly | PHP can appear to install

If Lynx and PHP5-CLI are already installed, it is convenient to install the pear package. If Lynx and PHP5-CLI are installed, run the # Lynx-source http://pear.php.net/go-pear directly | PHP will be able to display the installation interface. Just press the prompt to enter the line. Encounter y/n Select Direct y to do it. You do not need to enter anything to complete the installation successfully. If you do not install these two, this operation will be an error. This is the time to install the two. It's easy under Ubuntu. Direct Apt-get Install Lynx installation lynxapt-get installs PHP5-CLI install PHP5-CLI here will change some php.ini configuration, finally good reboot under Apache can use the above command to install pear package.

Copy the Code code as follows: Apt-get install Lynxapt-get install php-pearwget http://pear.php.net/go-pearphp go-pear//lynx- SOURCE Http://pear.php.net/go-pear | Php

Modify php.ini Add Include_path= ".:/ Usr/local/php/pear "(Note that the path depends on the actual modification)

Restart the ngin to do it.

or install via sudo apt-get install php-pear.

  • 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.