Solved

How do I install cURL on Windows Server 2008?

Posted on 2011-02-14
4
4,410 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

739 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