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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 请问如何在openpcdet上对KITTI数据集的测试集进行结果评估?
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗