PHP和CURL在Windows 7 64位和Apache下 [英] PHP and CURL under Windows 7 64 bits and Apache

查看:119
本文介绍了PHP和CURL在Windows 7 64位和Apache下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的盒子上使用PHP的curl,但没有成功。



我的配置:
$ b




操作系统:win 7 64位,



PHP:5.3.1, p>

Apache:2.2.14






我可以使用mysql扩展,所以配置我的php.ini似乎很好。但我得到和错误在Apache日志中与curl:



PHP警告:PHP启动:无法加载动态库'C:/php-5.3.1/ext/php_curl .dll' - 找不到指定的模块。\r\\\
在第0行的未知



该文件就在那里,它正在加载php_mysql.dll没有任何问题。



我试过一切:
把dll文件放在apache\bin,windows\ system32,放路径的php EXT在PATH环境变量中。
把一些lib(libeay.dll和sssomething.dll)放在windows 32中



好吧,我想这可能与我的Windows有关64位或与PHP的版本..也许。我不知道了:



有什么想法吗?



更新 b $ b我不使用Wamp,因为我喜欢知道我对我的系统做什么,最终选择我想要的apache,php和MySql的版本。



我的解决方案



我在我的PATH环境变量中添加了PHP的路径并且工作,我将尝试找出DLL需要。



更新:它看起来像是libeay32.dll和sslleay32.dll必须在PATH环境变量中我添加到Apache的子目录Apache并且它工作。

解决方案

AFAIR,您需要在PATH的libeay32.dll和libssl32.dll文件正常工作,可能64位为您的x64系统。


I'm trying to use curl with PHP on my box without any success.

My Config :


OS : win 7 64 bits,

PHP : 5.3.1,

Apache : 2.2.14


I was able to use the mysql extension, so the configuration of my php.ini seems fine. But I get and error in Apache log with curl :

PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php-5.3.1/ext/php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0

The file is right there, and it's loading php_mysql.dll without any problem.

I tried everything : to put the dll file in apache\bin, windows\system32, put the path of the php EXT in the PATH environment variable. to put some lib (libeay.dll and sssomething.dll) in windows 32

Well, I think this might have something to do with my Windows being 64 bits or with the version of PHP.. maybe. I don't know anymore :(

Any idea?

Update I'm not using Wamp because I like to know what I do to my system, and ultimately choose the version that I want of apache, php and MySql.

My Solution

I added the path of PHP in my PATH environement variable and it worked. I'll try to find out what was the DLL needed.

Update : Well it looks like it was libeay32.dll and sslleay32.dll had to be in the PATH environment variable. I added to the bin subdirectory of Apache and it worked.

解决方案

AFAIR, you need libeay32.dll and libssl32.dll files on PATH for Curl to work properly. And probably 64 bit for your x64 system.

这篇关于PHP和CURL在Windows 7 64位和Apache下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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