【发布时间】:2015-11-10 02:58:51
【问题描述】:
我在 /Library/WebServer/CGI-Executables 中有一个名为 test.cgi 的 Python 脚本。我在 /Library/WebServer/Documents 中有一个 index.html 文件。我的 html 文件包含一个发布到 CGI 脚本的表单,并且工作正常。当我的脚本尝试写入文件时,出现以下错误:
无论我指定什么作为输出目录,我都会收到相同的错误消息。我尝试更改 cgi-bin 文件夹和脚本的权限,但这也不起作用。有什么建议吗?
【问题讨论】:
标签: python io permissions cgi