Reputation: 119
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?
Upvotes: 0
Views: 669
Reputation: 1252
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?
Upvotes: 1