Install the pear package in ubuntu (install lynx and php-cli)-php Tutorial

Source: Internet
Author: User
Install the pear package in ubuntu (lynx and php-cli installation)
If you have installed lynx and php5-cli, you can easily install the pear package. If lynx and php5-cli are installed, run the # lynx-source http://pear.php.net/go-pear directly | php and you can see the installation

If you have installed lynx and php5-cli, you can easily install the pear package. If lynx and php5-cli are installed, run # lynx-source http://pear.php.net/go-pear | php to see the installation interface. Press the prompt and press enter. In case of y/n, select y directly. Installation is successful without entering anything. If the two are not installed, an error will be reported during this operation. At this time, you need to install the two. It is very easy in ubuntu. Directly apt-get install lynx install lynxapt-get install php5-cli install php5-cli here will change some php. ini configuration, and finally restart apache can use the above command to install the pear package.

The code is 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 and add include_path = ".:/usr/local/php/PEAR" (note that this path must be modified based on actual conditions)

Restart NGIN.

Or use 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.