简体   繁体   中英

Cloud 9: PHP7 cURL not working

Not sure why this isn't working in c9... but

在此处输入图片说明

It's really strange because i have installed php5-curl, but i do have php7.0.9, is there a php7-curl?

I have tried apt-get php-curl, php7-curl, php7.0-curl.... and none of them work. All I get is:

E: Unable to locate package php70-curl for all of them.

I also updated apt-get.....

SO am i missing something?

PHP 5 extensions do not work with PHP 7. As far as I know, if you compile PHP 7 with --with-curl in the configure command, it will just compile it in.

Are you running Ubuntu? If you are, then are you running 16.04 or newer? In 16.04, there's a package called php7.0-curl in the Ubuntu repositories. http://packages.ubuntu.com/xenial/php7.0-curl

If you are on Ubuntu and on a release earlier than 16.04, I would suggest upgrading. If you are not on Ubuntu, then which distribution are you on?

EDIT: After creating an account on Cloud9, I found that the PHP template is running Ubuntu 14.04 with PHP 5.5. Did you change this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM