当我登录 ssh 并运行我的 cgi 时:一切正常
./modulev2.cgi
Content-type: text/html
Cache-Control: no-cache, no-store
Pragma: no-cache
当我尝试通过 http: http://www.capuccino.fr/cgi-bin/modulev2.cgi调用它时, 我感到很讨厌:
Internal Server Error
我试图把 chmod777 放在 cgi-bin 上,放在家里等等。没有成功
查看日志时:cgi.log:
[2013-07-22 11:21:12]: uid: (1000/capuccin) gid: (100/users) cmd: modulev2.cgi
[2013-07-22 11:21:12]: target uid/gid (1000/100) mismatch with directory (510/100) or program (0/0)
和错误日志
[Mon Jul 22 11:21:03 2013] [error] [client 91.7.112.187] suexec policy violation: see suexec log for more details
[Mon Jul 22 11:21:03 2013] [error] [client 91.7.112.187] Premature end of script headers: modulev2.cgi
我也尝试改变 chown 并在 cgi.log 中得到这个
[2013-07-22 11:56:36]: target uid/gid (1000/100) mismatch with directory (510/100) or program (1000/100)
[2013-07-22 11:56:39]: uid: (1000/capuccin) gid: (100/users) cmd: modulev2.cgi
关于如何解决这个问题的任何想法?