Cannot use PHP twist on free amazon ec2 level

I am currently moving my web application to amazon ec2. Since this is only for testing, I use the free version called ec2 free level with an instance of Windows Server 2008. However, although I did everything I know and read this topic ( How to enable cURL in PHP / XAMPP ). I just could not use curl on my PHP script. it always creates an error Calling the undefined curl_init () function in C: \ xampp \ htdocs \ index.php on line 2 That's all I tried

  • Install Wamp (I tried this on XAMPP)
  • Uncomment out php_curl in php.ini file (and restart apache)
  • Copy two dll files in system32 and syswow64

Could this be due to the fact that I use free vps? Update: Also, when I started the apache server in XAMPP, this error appeared 'PHP Startup: Unable to load the dynamic library curl.dll' However, I double-checked the ext directory and there was php_curl.dll.

+1
source share
3 answers

No.

make sure you have the files in the right place, usually in the plugins folder for php! perhaps you cannot add an absolute path to your php.ini! make sure you edit the correct INI file!

php is completely independent of your operating system!

just make sure you check everything. because without saying it has problems loading your extension, simply saying the function you are trying to call does not exist. so I assume your extension is not loading at all! :)

0
source

I think curl needs to access the remote server from our web server. so I opened all the traffic in my outgoing server rule and it works. I think this is a bad decision. still looking for a better way.

+1
source

One of the reasons I noticed that a malfunction occurred for this cURL plugin was the availability of copies of the libeay32.dll and ssleay32.dll files. Please check if there are such copies in your system32 folder, and if so, rename them to some other names and copy them found using the php installation. Sometimes you may need to restart your computer. It was recorded here a while ago.

0
source

All Articles