Saturday, 31 August 2013

Enable and Install cURL in Apache -Ubuntu

apache

This extension for PHP allows for behind the scenes communication between php pages.  This can come in handy if you are needing to communicate or send information between clients and servers.  Following are the steps need to install and test the extension on an Ubuntu Apache web server.

Install Components


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

Restart the Server


sudo service apache2 restart

Create a test page on the computer to ensure that everything is working.
test.php
<?php
echo '<pre>';
var_dump(curl_version());
echo '</pre>';
?>
browse to the page and make sure there are no errors

No comments:

Post a Comment