doukang2003 2015-11-14 03:51
浏览 22
已采纳

ApacheMonitor上的卷曲错误

I have a problem that appears to be a bug. I use Windows 7 x64 and recently set manually installed PHP (5.5.30) + Apache (2.4.17) + MySQL. I set up the php.ini with the extension directory and released the php_curl.dll. After that I went to Apache configuration, loaded the module, indicated the php.ini directory, installed the service through the terminal and ready, was running the php code. The problem begins when trying to run curl command, for example:

curl_init ($ url);

Face appears the error: Call to undefined function curl_init() After testing and testing, I found that when performing the same piece of code on other servers ready (xamp, WAMP, Vertrigo) code worked perfectly, including the built-in PHP server. After find out more, I realized that the problem always occurred when running the server via ApacheMonitor. In doing so the mistake was instantaneous, as much in the manual apache server, both the "amp's" automatic. Then run the server through the executable httpd.exe and to my surprise the curl code ran.

Anyway, I do not know if it's bug ApacheMonitor, or some misconfiguration, ams I think this should not be normal and I think that this has something preventing it from running. This would have an easy solution?

Thanks for listening guys, sorry for my bad English, I am Brazilian and I am learning, making plenty of company to google translator

  • 写回答

1条回答 默认 最新

  • dongxian4531 2015-11-14 04:03
    关注

    You don't have curl support in your PHP

    Go to your php.ini file and remove the ; mark from the beginning of the following line:

    ;extension=php_curl.dll
    

    ubuntu 13.0 and above, simply use the debundled package. In a terminal type the following to install it and do not forgot to restart server.

    sudo apt-get install php5-curl
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥15 Oracle触发器记录修改前后的字段值
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题