views:

115

answers:

2

Hello,

I am using macports on my machine and I realized that curl is not enabled. Is there anyway to enable it without completely reconfiguring php?

Thanks!

A: 

I am not familiar with macports but if you can locate the php.ini file look for the following line.

;extension=php_curl.so

Change it took

extension=php_curl.so

This will enable the curl module.

Note: the exact extension name might not be the same.

Samuel
I'm using a mac
Daniel Hertz
instead of .dll it will say .so i believe. you should still have a php.ini file, even on a mac.
Samuel
there are no .so linesi think it needs to be recompiled somehow
Daniel Hertz
A: 

First, make sure you have the most recent version of macports by running this:

sudo port -v selfupdate
port upgrade outdated

According to the macports documentation here, the php5 port should include the curl extension by default. You should be able to install it by doing this from terminal:

sudo port install php5

To install just the curl extension, you can do this:

sudo port install php5-curl
unchek