Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Trouble Enabling cURL on Ubuntu 11.10

$
0
0

I have installed curl:

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

and I have updated my php.ini file to include:

extension=php_curl.dll

I check to see if curl is working with the following command:

php -i | grep curl

and I receive the following message:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/php_curl.dll' - /usr/lib/php5/20090626+lfs/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/sqlite.so' - /usr/lib/php5/20090626+lfs/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 Additional .ini files parsed => /etc/php5/cli/conf.d/curl.ini, curl

I also tested curl by creating a file called testCurl.php which contains the following:

<?phpecho ‘<pre>’;var_dump(curl_version());echo ‘</pre>’;?>

When I navigate to localhost/testCurl.php I get an error: HTTP Error 500

Can anyone help me to get curl working?


Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>