【问题标题】:cURL Error : The cookie file could not be openedcURL 错误:无法打开 cookie 文件
【发布时间】:2014-09-14 13:22:14
【问题描述】:

我在这里使用 Adob​​eHDS PHP 脚本 https://github.com/K-S-V/Scripts/wiki

这个脚本是通过另一个 PHP 脚本使用system() 函数执行的。但是,在我的网络浏览器上,我收到以下错误:

KSV Adobe HDS Downloader cURL Error : The cookie file could not be opened. Make sure this directory has the correct permissions. 1

我用来执行这个脚本的代码是:

system ( '/usr/bin/php /var/www/html/inc/AdobeHDS.php --manifest someFile --delete --outfile someFile --outdir someDir' );

有没有与 apache 文件/文件夹权限相关的东西?

【问题讨论】:

  • 正如这个错误所说,执行脚本的网络服务器没有打开文件的权限(用户是 www-data)。
  • 此脚本位于 inc 文件夹中。我已经完成了 chown -R www-data:www-data inc。还有什么我需要做的吗?

标签: php apache curl cookies


【解决方案1】:

使 Apache 成为存在 Adob​​eHDS 脚本的 inc 目录的所有者。问题解决了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多