标签: perl unix amazon-web-services amazon-ec2
我有一个EC2实例但我无法从cgi-bin脚本写入.txt文件。我收到此权限错误:Permission denied at ... line XX。
Permission denied at ... line XX
这是我的代码:
open MYFILE, ">", "/etc/httpd/logs/evalFile.txt" or die "Couldn't open: $!"; print MYFILE "Dumper($uri)"; close MYFILE;
感谢任何建议。