How to Install cURL support under Uniform Server 3.5 Apollo

March 31st, 2009

Uniform Server 3.5 Apollo is an excellent environment for those of us who, for whatever reason, use Windows for PHP development. Unforunately it comes without cURL support. After a bit of digging I figured out (i’m no linux sysadmin) how fairly simple it is to get cURL up and running with uniserver.

The following assumes that you have Uniform Server installed in “%ProgramFiles%\Uniform Server\”. If you have it somewhere different just modify the instuctions accordingly.

In the php.ini file located in “%ProgramFiles%\Uniform Server\udrive\usr\local\php”, search for the following line:

;extension=php_curl.dll

and enable curl by removing the semicolon as follows

extension=php_curl.dll

It’s not quite as simple as that. You’ll need three dll files for cURL to actually function. Luckily you can get them here.

http://jamazon.co.uk/files/uniserver_curl.zip

Download and unzip the file above. You should end up with three relevant looking dlls

ssleay32.dll
copy into “%ProgramFiles%\Uniform Server\udrive\usr\local\apache2\bin”

libeay32.dll
copy into “%ProgramFiles%\Uniform Server\udrive\usr\local\apache2\bin”

php_curl.dll
copy into “%ProgramFiles%\Uniform Server\udrive\usr\local\php\extensions”

Then just start (or restart) Uniform Server for the changes to take effect.

You can take a look at the output of phpinfo() or run the following code to determine whether or not cURL is installed.

<?
if (!function_exists('curl_init')){
die('Sorry, cURL support is not installed');
}
echo "Yay! cURL support is Installed!";
?>

Bob’s your uncle!

Posted in Web | Tagged with: , , , , ,

3 Responses

  1. calvin

    Thanks for this there are so many posts out there saying just to enable it in php.ini your instructions meant I am up and running in 5 minutes, thanks for this.

  2. Kwezi

    Thanks, saved me alot of headaches.

    K!

  3. Ash

    Thanks, excellent and easy to follow.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.