0

I have compile php and curl on my server. When i run phpinfo() on browser it does not show that curl is enable. When i run from the command line it shows curl is enable.

Here is the command: /opt/php -r "phpinfo();"

I have also created /usr/bin php as symlink

I have also compiled php --with-curl=[curl path] as static not as shared.

What I am missing?

Thanks in advance.

Paul Smith
  • 31
  • 1
  • 2
  • 6

2 Answers2

0

Is it enabled through php.ini. Although curl might have been compiled with php but it might have been disabled through php.ini settings file. Confirm once that curl actually has been enabled.

Samundra
  • 1,869
  • 17
  • 28
  • @PaulSmith Seems like many have the same problem https://bugs.php.net/bug.php?id=59028 Try to follow the list. Even though most of them are related to solr and libcurl issues. But you might find some helpful answer there. Also this piece of advice ```The supported versions of libcurl and libxml have been lowered to 7.15.5 and 2.6.26 respectively so there is no need now to build libcurl and libxml2 from source on older RHEL, Fedora Core and CentOS systems. This is true as of SVN revision 298824``` seems to be more useful. – Samundra May 20 '13 at 15:47
0

if you're using XAMPP, uncomment the line

;extension=php_curl.dll in xampp\apache\bin\php.ini, and then restart the Apache service.

NB: In newer XAMPP versions, PHP has moved to root xampp folder xampp\php\php.ini.

Saurabh Chandra Patel
  • 12,712
  • 6
  • 88
  • 78