Home >Backend Development >PHP Tutorial >Install pear package under ubuntu (lynx and php-cli installation)
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 | phpModify 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. |