昨天在freehostia.com上配置了python的cgi模式,上传hello.py,访问就出现 403 Forbidden You don't have permission to access /hello.py on this server.
      去网上搜了很多,也添加ExecCGI了,还是不行!
      换了新申请的空间也不行,真是没辙了,好在想起来,在空间安装程序,一般要要安装文件777,马上ftp上去,看到hello.py是664,更改为777,访问一下,Hello World,ok,可以了!
      原来如此,是权限问题,py程序要赋予执行权限!

      本文系本站原创,转载请注明来自缘分天空
Rsource | 评论(0) | 引用(0) | 阅读(404)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称  密码     游客无需密码
网址  电邮     [注册]