无法使用PHP卷曲在Amazon EC2上自由层 [英] Unable to use PHP curl on amazon ec2 free tier

查看:170
本文介绍了无法使用PHP卷曲在Amazon EC2上自由层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前移动我的web应用程序的Amazon EC2。由于这是仅用于测试,我使用名为EC2自由层的免费版本与Windows Server 2008实例。不过,虽然我已经做了我所知道的,阅读此线程(如何使卷曲的PHP )。我无法在我的PHP脚本中使用卷曲。它总是创建错误 调用未定义功能curl_init()在C:\ XAMPP \ htdocs中\的index.php上线2 这里是所有的事情我都试过

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 ). 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

  1. 在安装WAMP(我试了一下XAMPP来)
  2. 取消注释出php_curl在php.ini文件(重新启动Apache)
  3. 复制两个DLL文件既SYSTEM32和SysWow64资料
  1. Install Wamp ( I tried it on XAMPP to)
  2. Uncomment out php_curl in php.ini file ( and restart apache)
  3. Copy two dll files to both system32 and syswow64

难道有什么关系,我使用免费的VPS的事实? 更新: 此外,当我开始在Apache服务器在XAMPP,这种错误出现 PHP启动:无法加载动态库curl.dll 不过,我有双重检查的ext目录和php_curl.dll在那里。

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.

推荐答案

没了。

可以肯定的,那你在正确的地方的文件,通常它的插件文件夹中的PHP!也许你CANN添加一个绝对路径到php.ini! 可以肯定的是,编辑正确的ini文件!

be sure, that you have the files in the right place, usually its in the plugins folder for php! maybe you cann add a absolute path to your php.ini! be sure, you edit the correct ini file!

PHP完全地独立于你的OperatingSystem的!

php completly independent to your operatingsystem!

只是一定要doublecheck一切。因为它不是说,它无法登录您的延伸,它只是说,你想调用的函数,是不存在的。所以我假设你的延伸IST没有加载在所有! :)

just be sure to doublecheck everything. because its not saying, it has trouble loading your extention, its just saying, the function your trying to call, is not there. so i assume your extention ist not loading at all! :)

这篇关于无法使用PHP卷曲在Amazon EC2上自由层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆