This short little HowTo details the process required to install cURL into Ubuntu and PHP5. I recently needed these libraries in a web site I was installing and so decided to document the process for myself as a quick ‘HowTo’. The main problem I haves that the main cURL site was down at the time (for me anyway).
To test is cURL is installed and working, then create this test web page somewhere on your server:
<?php
echo ‘<pre>’;
var_dump(curl_version());
echo ‘</pre>’;
?>
Save this file as ‘testcurl.php’ somewhere on your web server. From your web browser, load this test page. If you get an error, the cURL needs installing as below. If you get a dump of variables, then it is working and there is nothing else to do.
As root in a shell, issue the following commands and follow the instructions as prompted.:
# apt-get upgrade
# apt-get install curl php5-curl
You may need to add the following line to the /etc/php5/apache2/php.ini file:
extension=php_curl.so
If you do edit this file, don’t forget to restart Apache so that the change is applied.
An that should be all that is required.
Related posts:
- Series: Ubuntu VirtualBox Host II – Completing Install Now that you have the basics of your first Virtual...
- HowTo: Install Ubuntu LAMP Server 9.04 Introduction This article describes how to install a basic LAMP...
- HowTo: Installing Webmin onto an Elastix server This short HowTo details the steps needed to install ‘Webmin’...
- Series: Ubuntu VirtualBox Host I – First Install While planing my move to Orkney, I need to move...
- HowTo: Install OWFS onto Ubuntu 10.04 Server OWFS, the One Wire Filing System for Linux is a...

Recent Comments