Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jan 12, 2011 11:00 pm 
Offline
Junior Member

Joined: Mon Jan 03, 2011 10:45 pm
Posts: 31
Anyone have the problem of getting php curl extension working with nginx on Ubuntu 10.04or how to install it?

My php script dies with:

Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /var/www/........

Thanks,

Dave


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 11:07 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
More info would help, how are you running php?

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Jan 13, 2011 12:46 am 
Offline
Junior Member

Joined: Mon Jan 03, 2011 10:45 pm
Posts: 31
Sorry my bad...new to all this.

PHP5 on nginx v7.65 if thats what you mean? on ubuntu 10.04.

Thanks, let me know if you need more info. Not sure.

Dave


Top
   
PostPosted: Thu Jan 13, 2011 3:17 am 
Offline
Senior Member

Joined: Fri Dec 10, 2010 6:21 am
Posts: 144
ninemedia wrote:
Anyone have the problem of getting php curl extension working with nginx on Ubuntu 10.04or how to install it?

My php script dies with:

Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /var/www/........

Thanks,

Dave


Based on the error message I wonder if you have php5-curl installed?


Top
   
 Post subject:
PostPosted: Thu Jan 13, 2011 4:52 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
apt-get install php5-curl

make sure your php.ini file has extension=curl.so in it

restart whatever is running php (php-fpm or spawn-fcgi I imagine)

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group