Solved

How do I install cURL on Windows Server 2008?

Posted on 2011-02-14
4
4,256 Views
Last Modified: 2012-05-11
My web server runs on Windows Server 2008 with PHP 5.2.11 and Apache 2.2.13.  I need to install cURL and tried the following:

1.       Enable cURL by uncommenting the line extension=php_curl.dll in php.ini
2.       Copy the following libraries to the directory windows/system32
ssleay32.dll
libeay32.dll
3.       Copy php_curl.dll from the /ext directory to windows/sytem32 directory
4.       I also copied the above mentioned libraries into the php directory for a good measure

Unfortunately, it didn't seem to work and I'm not sure what else I need to do.  Any ideas?  Thank you.

0
Comment
Question by:JT2010
  • 3
4 Comments
 
LVL 13

Expert Comment

by:dsmile
ID: 34894530
You have to edit php.ini to set extension_dir to point to where /ext directory of PHP located, then restart Apache.
Both ssleay32.dll and libeay32.dll can be put in /bin of Apache also.
If you put them in system32, may be you need to unblock them (right click and select unblock, and this is on Win7m I'm not sure it might be neccessary on Win Server 2008)
0
 

Author Comment

by:JT2010
ID: 34898340
Thanks for the response.  I verified that extension_dir is set to c:/php/ext, which is correct path, and I also copied ssleay32.dll and libeay32.dll into c:/Apache2.2/bin, and then restarted Apache.  Unfortunately, however, it didn't seem to work.
0
 

Accepted Solution

by:
JT2010 earned 0 total points
ID: 34902382
I tried the following and now cURL is installed successfully.

1.       Enable cURL by uncommenting the line extension=php_curl.dll in php.ini
2.       Copy the following libraries to the directory SysWOW64 as the machine is 64-bit.
               ssleay32.dll
               libeay32.dll
3.      Reboot the machine for the changes to take effect!

0
 

Author Closing Comment

by:JT2010
ID: 34936564
cURL is now successfully installed on Windows Server 2008!
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
windows 7 login times take 30 minutes with AD 8 51
server core and windows updates 3 39
GPO not showing IE10 in GP Preferences 14 46
Unable to add new user to AD 2 23
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question