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

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

问题描述

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

我的配置:

<小时>

操作系统:赢得 7 64 位,

PHP : 5.3.1,

阿帕奇:2.2.14

<小时>

我可以使用 mysql 扩展,所以我的 php.ini 配置看起来不错.但是我在使用 curl 的 Apache 日志中出错:

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

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

我尝试了一切:将dll文件放在apachein、windowssystem32下,将php EXT的路径放在PATH环境变量中.在 Windows 32 中放入一些库(libeay.dll 和 sssomething.dll)

嗯,我认为这可能与我的 Windows 是 64 位或 PHP 版本有关.. 也许.我不知道了:(

有什么想法吗?

更新我不使用 Wamp 是因为我想知道我对我的系统做了什么,最终选择了我想要的 apache、php 和 MySql 版本.

我的解决方案

我在我的 PATH 环境变量中添加了 PHP 的路径并且它起作用了.我会试着找出需要什么 DLL.

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

解决方案

AFAIR,您需要 PATH 上的 libeay32.dll 和 libssl32.dll 文件才能使 Curl 正常工作.您的 x64 系统可能是 64 位.

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. 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 apachein, windowssystem32, 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.

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

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