Login Try it Free

Need CURL

Ficrot Jun 14, 2012 09:07PM MDT

Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.
I have edited with notepad like this Boxfile, in vintage mode use sFtp:
web1:
name: tester1

php_extensions:
-curl

db1:
name: tester2
but this error stay after i click "deploy latest" on dashboard, anybody know to fix it?

Up 4 Rated Down
Scott Jun 14, 2012 11:29PM MDT Pagoda Box Agent

Could you attach your Boxfile? I think the formatting was lost when you posted it here.

Thanks,

Joseph Brower

Up 0 Rated Down
Maz Jul 04, 2012 12:47AM MDT

So for the non-paid apps is cURL extension of php is enabled?

Up -1 Rated Down
Scott Jul 05, 2012 09:26AM MDT Pagoda Box Agent

cURL is not enabled by default, but it is available to be enabled for both paid and non-paid apps alike. Simply add it to your php_extensions in your Boxfile http://help.pagodabox.com/customer/portal/articles/175475-understanding-the-boxfile#php-Extensions.

Up -2 Rated Down
Maz Jul 05, 2012 10:26PM MDT

Didn't know about Boxfile. Awesome, Thanks!

Up 0 Rated Down
manero Jul 15, 2012 05:22AM MDT

My problem is I need the library and when I call facebook.php
require 'sdk / src / facebook.php';
I get this error,'Facebook needs the CURL PHP extension.' in /var/www/pages/default/base_facebook.php:19 Stack trace: #0 /var/www/pages/default/src/facebook.php(18): require_once() #1 /var/www/pages/default/face7.php(6): require('/var/www/pages/...') #2 {main} thrown in /var/www/pages/default/base_facebook.php on line 19

Up 1 Rated Down
manero Jul 16, 2012 01:37AM MDT

Do not let me create a new question so I put it here.
Hello, my problem is I need to put the library facebook.php, and when I call require 'sdk / src / facebook.php';
I get this error: error: Uncaught exception 'Exception' with message 'Facebook needs the PHP CURL extension.
I have seen that there are more people with this problem you need to put the curl in boxfile. I have tried but not working. I added - curl up in my profile. This would be my boxfile changed:
web1:
  name: TimeTabs
  shared_writable_dirs:
   - cache
   - pages
   - media
   - var
  PHP_VERSION: 5.3.10
  php_extensions:
   - mysqli
   - mysql
   - gd
   - eaccelerator
   - apc
   - Sun
   - geoip
   - http
   - json
   - mcrypt
   - pdo_mysql
   - phar
   - xml
   - simplexml
   - hash
   - iconv
   - curl
   - soap
db1:
   name: database_name
   type: mysql
  after_build:
   - "Pagoda / deploy.sh"
-------------------------------------------------- -----------------
I do not know exactly where I have to keep I have proven in the code folder in the root and the folder pages.

Up 2 Rated Down
Scott Jul 16, 2012 09:47AM MDT Pagoda Box Agent

If you check the output of phpinfo(), does it show the curl extension is enabled?

Up 1 Rated Down
manero Jul 16, 2012 12:14PM MDT

I looked at the phpinfo (), and understand that libcurl is enabled, I get like this:

Used Library Compiled Linked
libcurl 7.19.7 7.19.7
libevent disabled disabled
libz 1.2.3.3 1.2.3.3
libmagic disabled disabled

Not if you look in this part of the phpinfo () or another.

thank you very much

Up 0 Rated Down
Scott Jul 16, 2012 03:38PM MDT Pagoda Box Agent

If curl is enabled, you should see a whole section in the phpinfo() output with curl config. Something like this: http://d.pr/i/UV7j

Up 0 Rated Down
manero Aug 26, 2012 12:19PM MDT

Hi I do not know how to put the extension on boxfile-curl, I've tried everything and still gives me the same error, please even for private if they can be more specific, take some time stuck with this issue. I would like to know how to change it soon. Thank you very much. With phpinfo () still does not leave me on.

Up -1 Rated Down
Scott Aug 27, 2012 09:36AM MDT Pagoda Box Agent

Here’s the portion of the Boxfile guide with an example of adding php extensions to the Boxfile. Submit a private ticket with your app name if you’d like us to take a look at your specific app.

Up 0 Rated Down
Rob Johnston Jan 01, 2013 04:01AM MST

Guys I'm having problems with this same error. I am new to pagodabox and tried to create a Boxfile and upload it to the root of my directory, but it won't even let me do that. I get "Error: /Boxfile.txt: open for write: permission denied
Error: File transfer failed."
I recognize that I am a newbie idiot who is clueless. Can somebody please help me. I am unable to launch the app. I get "tal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /var/www/facebook.php:4 Stack trace: #0 /var/www/index.php(2): require() #1 {main} thrown in /var/www/facebook.php on line 4." If someone can have mercy on me and help me, I will be highly appreciative. Thanks in advance.

Up 0 Rated Down
Scott Jan 02, 2013 08:51AM MST Pagoda Box Agent

Are you using git or vintage mode?

Also not that the name of the Boxfile should be “Boxfile” with a capital B and no file extension.

This question is closed to new answers.

Contact Us