Active3 months ago

I've installed PHP 7 using this repo, but when I try to run composer install, it's giving this error:

  • [package] requires ext-curl * -> the requested PHP extension curl is missing from your system.

Install SSH2 Extension for PHP 7 on CentOS 7, Entrepreneur. # make install. Write SSH2 extension in PHP 7 extension directory. Curl date dom exif fileinfo. Install PHP 7.1 and some of the most commonly used extensions: sudo yum install -y mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-xml Note: The above packages are for general purpose use and may not suit your specific requirements. Depending on your distribution, install curl with one of the following: On CentOS or other yum based package systems. Yum install php-curl; yum install curl. Nov 12, 2008  Curl support is built-in in CentOS PHP. There are no packages to install and no dynamic libraries to load. Your PHP script should test the result of extension_loaded('curl.

With PHP 5, you can easily install it by running the yum or apt-get install php5-curl command, but I can't find how to install the PHP 7 equivalent.

How do I install ext-curl for PHP 7?

Stephan Vierkant

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share. Full solution for install LAMP and cURL extension: sudo apt-get update sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo apt-get install curl libcurl3 libcurl3-dev php5-curl and then.

Stephan VierkantPhpStephan Vierkant
4,7124 gold badges33 silver badges70 bronze badges

10 Answers

Well I was able to install it by :

on my system. This will install a dependency package, which depends on the default php version.

After that restart apache

TheMohanAhuja
1,3871 gold badge14 silver badges28 bronze badges
Sabeeh ChaudhrySabeeh Chaudhry
4,2161 gold badge12 silver badges7 bronze badges
jk2Kjk2K

If 'sudo apt-get install php-curl' command doesnt work and display error We should run this code before install curl.

  • step1 - sudo add-apt-repository ppa:ondrej/php
  • step2 - sudo apt-get update
  • step3 - sudo apt-get install php-curl
  • step4 - sudo service apache2 restart
Bijaya Kumar OliBijaya Kumar Oli

I tried the above solutions but it didn't work for me, just incase there any other person in the same shoes, this is what I did.I updated apt-get with the following command

this i installed with php curl for the version of php that i was using, mine was

Excellent LawrenceExcellent Lawrence

We can install any PHP7 Extensions which we are needed at the time of install Magento just use related command which you get error at the time of installin Magento

Thanks! Hope this will help you

Narendra SolankiNarendra Solanki

If you are using PHP7.1 ( try php -version to find your PHP version)

Install Php Curl Extension Centos 7

then restart apache

JoyalJoyal
1,0961 gold badge17 silver badges30 bronze badges

install php70w-common.

It provides php-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif, php-fileinfo, php-filter, php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-json, php-libxml, php-openssl, php-pcre, php-pecl-Fileinfo, php-pecl-phar, php-pecl-zip, php-reflection, php-session, php-shmop, php-simplexml, php-sockets, php-spl, php-tokenizer, php-zend-abi, php-zip, php-zlib.

CiaranSynnottCiaranSynnott

Centos Yum Install Php 7

Windows users:

Note: Note to Win32 Users In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll, or, as of OpenSSL 1.1 libcrypto-.dll and libssl-.dll, must be present in your PATH. Also libssh2.dll must be present in your PATH. You don't need libcurl.dll from the cURL site.

Add your C:wampbinphpphp7.1.15 to your PATH

Restart all services

MartyBoggsMartyBoggs

I got an error that the CURL extension was missing whilst installing WebMail Lite 8 on WAMP (so on Windows).

After reading that libeay32.dll was required which was only present in some of the PHP installation folders (such as 7.1.26), I switched the PHP version in use from 7.2.14 to 7.1.26 in the WAMP PHP version menu, and the error went away.

Php Curl Extension Download

SharpCSharpC
3,7352 gold badges26 silver badges30 bronze badges

Try it if you get E: Unable to locate package {packageName}

Liao San KaiLiao San Kai
6541 gold badge10 silver badges15 bronze badges

Not the answer you're looking for? Browse other questions tagged phpcurlphp-7 or ask your own question.