Home >Backend Development >PHP Tutorial >Install pear package under ubuntu (lynx and php-cli installation)

Install pear package under ubuntu (lynx and php-cli installation)

WBOY
WBOYOriginal
2016-07-25 09:10:391736browse
If lynx and php5-cli have been installed, you can easily install the pear package. If lynx and php5-cli are installed, run directly # lynx -source http://pear.php.net/go-pear | php and the installation will appear.

If lynx and php5-cli have been installed, you can easily install the pear package. If lynx and php5-cli are installed, run directly # lynx -source http://pear.php.net/go-pear | php and the installation interface will appear. Just press Enter as prompted. When you encounter y/n, just choose y directly. You don't need to enter anything to install everything successfully. If these two are not installed, an error will be reported when running like this. At this time, you need to install these two. It's very simple under ubuntu. Directly apt-get install lynx to install lynx apt-get install php5-cli Install php5-cli Here you will change some php.ini configurations. Finally, restart apache and you can use the above command to install the pear package.

Copy code The code is as follows: apt-get install lynx apt-get install php-pear wget http://pear.php.net/go-pear php 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 according to the actual situation)

Just restart NGIN.

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



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Suzhou recruitmentNext article:Suzhou recruitment