I am currently moving my web app to amazon ec2. Since it's only for testing, I use the free version called ec2 free tier with windows server 2008 instance. However, Although I have done all I know and read this thread ( How to enable cURL in PHP / XAMPP ). I just couldn't use curl on my php script. it always creates the error Call to undefined function curl_init() in C:\xampp\htdocs\index.php on line 2 Here are all thing I have tried
- Install Wamp ( I tried it on XAMPP to)
- Uncomment out php_curl in php.ini file ( and restart apache)
- Copy two dll files to both system32 and syswow64
Could it have to do with the fact that I am using free vps? Update: Also, when I started the apache server in XAMPP , this error appeared 'PHP Startup: unable to load dynamic library curl.dll' However, I have double checked the ext directory and the php_curl.dll was in there.