Pear Crypt/HMAC.php 无法打开流
我在 MediaTemple 专用虚拟服务器上,并使用以下位置的说明启用了 Pear: http://kb.mediatemple。 net/questions/514/Enabling+PEAR+by+setting+your+open_basedir+and+include_path
这是问题...
在我的 PHP 脚本中,我有这个:
require_once 'Crypt/HMAC.php';
当我执行脚本时,我收到此消息:
S3::require_once(Crypt/HMAC.php) [s3.require-once]: failed to open stream: No such file or directory
这是一个与Amazon S3集成的脚本。当我们使用网格服务时,它运行得很好。自从迁移到 DV 服务器后,我只遇到了问题。
我使用以下命令安装了 HMAC pear 模块:
pear install Crypt_HMAC
然后重新启动服务器。还是没有运气。
有什么想法吗?如果你能帮忙的话,非常感谢:)
I am on a MediaTemple Dedicated Virtual server and have enabled Pear using the instructions found at:
http://kb.mediatemple.net/questions/514/Enabling+PEAR+by+setting+your+open_basedir+and+include_path
Here's the problem...
In my PHP script, I have this:
require_once 'Crypt/HMAC.php';
When I execute the script, I get this message:
S3::require_once(Crypt/HMAC.php) [s3.require-once]: failed to open stream: No such file or directory
It's a script for integrating with Amazon S3. When we were on the Grid service it worked fine. I've only had problems since moving to a DV server.
I installed the HMAC pear module using this command:
pear install Crypt_HMAC
Then re-started the server. Still no luck.
Any ideas? Thanks a bunch if you can help :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要设置包含路径以提及服务器上的 PEAR 目录,您可以在 .htaccess 文件中或使用 set_include_path 函数来执行此操作。
you need to set your include path to also mention the PEAR directory on your server, you can either do this in a .htaccess file or with the set_include_path function.
尝试
require_once 'Crypt_HMAC.php';
Try
require_once 'Crypt_HMAC.php';
尝试
Try