Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl is activated but is not showing in phpinfo

Tags:

php

curl

wamp

I have a problem that curl is not showing in phpinfo as i am using wampserver(64 bit) but when i open php and then php extensions a tick is placed in front of php_curl in my wamp server but still curl is not displayed in phpinfo. Can anyone help me?

like image 620
RickeyWalia Avatar asked Jul 31 '12 05:07

RickeyWalia


People also ask

How do I know if curl is enabled?

Create phpinfo.php file and save. phpinfo; ?> Then go to http://domainname/phpinfo.php to check whether CURL is enabled or not.


Video Answer


1 Answers

I ran into this issue myself a couple of days ago, the only way I could fix it is by installing apache addon version 2.2.9 and php addon version 5.3.1

Both are available in the addons section of the download page at http://www.wampserver.com/en

EDIT:: This only happened to me on my 64bit laptop, my 32bit desktop runs the latest versions just fine with no issues

Also... if you look in (C):\wamp\logs\apache_error (or whatever path you've installed to) I suspect you will see an error similar to this..

PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.3/ext/php_curl.dll' - The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.\r\n in Unknown on line 0

Since this question is fairly old now and since I've experienced this issue again on my new laptop, and other users have visited the answer I've given here.. It appears if you use the 32bit installation of wampserver, even on a 64bit platform, this issue doesn't occur and it's the easiest way to avoid it.

like image 165
Dale Avatar answered Nov 12 '22 18:11

Dale