Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing pecl on debian

Tags:

php

debian

pecl

I'm trying to instal pecl_http on my server according to manual manual is for ubuntu, but apt-cache search pecl_http returned php5-pecl-http as pecl http packadge:

sudo apt-get update
sudo apt-get install php-pear php5-dev
sudo apt-get install php5-pecl-http
sudo apt-get install libcurl3-openssl-dev

in the end of php.ini added extension=http.so. http_get() and func that I need http_parse_headers() says that func is undefined. What's the problem?

like image 617
Sergey Scopin Avatar asked Apr 09 '15 06:04

Sergey Scopin


1 Answers

It's probably too late but for others a solution is explained here : http://www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/

sudo apt-get update
sudo apt-get install php-pear php5-dev
sudo apt-get install libcurl3-openssl-dev

Then,

sudo pecl install pecl_http 
like image 160
gaelle3182 Avatar answered Sep 30 '22 00:09

gaelle3182