LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-13-2009, 12:51 PM   #1
pangwhen
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 1
PHP, Curl, Ubuntu... Please Help :)


Hi,

This is my first thread, so before I start - Hi everyone - looking forward to being part of the community. I'll try to give back by answering questions in the programming section whenever I ask stuff here
-----
Okay, so here's my issue:

I have a VPS, with PHP installed, and it's working great. However, when I try to use Curl functions, it gives me
Code:
Fatal error: Call to undefined function curl_init() in ***** on line 4
So I found out that I need to install Curl. This, I have no idea how to do.

I have tried using
Code:
sudo apt-get install php5-curl
, adding extension=curl.so to php.ini, and restarting Apache, but I get NOTHING.

Can someone help me? I've searched for a long time online and found NO answers. Thanks so much!

P.S. Is this the right forum for this?
 
Old 09-14-2009, 06:31 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
compile your php source --with-curl option
 
Old 09-14-2009, 06:59 AM   #3
xhypno
Member
 
Registered: Sep 2004
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by pangwhen View Post
Hi,

This is my first thread, so before I start - Hi everyone - looking forward to being part of the community. I'll try to give back by answering questions in the programming section whenever I ask stuff here
-----
Okay, so here's my issue:

I have a VPS, with PHP installed, and it's working great. However, when I try to use Curl functions, it gives me
Code:
Fatal error: Call to undefined function curl_init() in ***** on line 4
So I found out that I need to install Curl. This, I have no idea how to do.

I have tried using
Code:
sudo apt-get install php5-curl
, adding extension=curl.so to php.ini, and restarting Apache, but I get NOTHING.

Can someone help me? I've searched for a long time online and found NO answers. Thanks so much!

P.S. Is this the right forum for this?


start with post phpinfo from your vps. it will help us help you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php curl help as I am clueless! sir-lancealot Programming 4 02-14-2008 02:37 PM
Curl under PHP ttxmika Slackware 11 05-31-2005 11:24 AM
PHP/cURL housemusic42 Linux - Networking 0 10-07-2004 02:45 PM
Curl and PHP...? hurieka Linux - Software 6 09-28-2004 11:14 PM
php and curl Risen Linux - Software 0 09-02-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration