sudo add-apt-repository ppa:ondrej/phpsudo apt-get updatesudo apt-get upgradesudo apt-get install php5.5 # for PHP 5.5Trying to install php-curl but its not working.Bạn đã xem: Installation
sudo apt-get install php5-curl Error: E: Unable to lớn locate package php5-curl
Bạn đang xem: Php: kích hoạt curl trong windows
Trending sort Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping khổng lồ surface more up-to-date answers. Switch khổng lồ Trending sort Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) In Ubuntu 16.04 mặc định PHP version is 7.0, if you want to use different version then you need lớn install PHP package according to PHP version:PHP 7.4: sudo apt-get install php7.4-curl PHP 7.3: sudo apt-get install php7.3-curl PHP 7.2: sudo apt-get install php7.2-curl PHP 7.1: sudo apt-get install php7.1-curl PHP 7.0: sudo apt-get install php7.0-curl PHP 5.6: sudo apt-get install php5.6-curlPHP 5.5: sudo apt-get install php5.5-curl
To Install cURL 7.49.0 on Ubuntu 16.04 và Derivatives
wget http://curl.haxx.se/download/curl-7.49.0.tar.gztar -xvf curl-7.49.0.tar.gzcd curl-7.49.0/./configuremakesudo make install For Ubuntu 18.04 or PHP 7.2 users you can do:
apt-get install php7.2-curl
You can kiểm tra your PHP version by running php -v to lớn verify your PHP version và get the right curl version.sudo apt-get install php5.6-curland restart the website browser.
You can check the modules by running php -m | grep curl
Thanks for contributing an answer to Stack Overflow!Please be sure khổng lồ answer the question. Provide details and share your research!
But avoid …Asking for help, clarification, or responding lớn other answers.Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.Post Your Answer Discard