【发布时间】:2014-09-14 13:22:14
【问题描述】:
我在这里使用 AdobeHDS 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。还有什么我需要做的吗?