I have php 5.6 and apache2 installed on a production server.
I get an error for my project on my production server: Call to undefined function curl_init()
I need to install php-curl for my project. I ran sudo apt-get install php5-curl
:
....
WARNING: The following packages cannot be authenticated!
php5-mysql php5-common php5-curl
....
Err http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-mysql amd64 5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1
403 Forbidden
Err http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-common amd64 5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1
403 Forbidden
Err http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-curl amd64 5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1
403 Forbidden
E: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/pool/main/p/php5/php5-mysql_5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1_amd64.deb 403 Forbidden
E: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/pool/main/p/php5/php5-common_5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1_amd64.deb 403 Forbidden
E: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/pool/main/p/php5/php5-curl_5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1_amd64.deb 403 Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
running apt-get update
displays the same for this ppa:
Err http://ppa.launchpad.net trusty/main amd64 Packages
403 Forbidden
Err http://ppa.launchpad.net trusty/main i386 Packages
403 Forbidden
Err http://ppa.launchpad.net trusty/main amd64 Packages
403 Forbidden
Err http://ppa.launchpad.net trusty/main i386 Packages
403 Forbidden
What is the solution to install php-curl? One idea is to change ppa, but I cannot find another one for php 5.6.
I searched the Internet for about 3 days and found many similar problems, but I could not fix my problem. I tried everything I found
The launch sudo apt-get install php5.6-curl
is successful, but I still get an error for my project on my production server:Call to undefined function curl_init()
source
share