- 论坛徽章:
- 0
|
做的smokeping,安装完访问页面Error: No such CGI app - may not exist or is not executable by this process.
系统是debian,环境是nginx的,安装smokeping直接用的apt-get install smokeping,
nginx配置如下图:
server
{
listen 50032;
server_name 10.18.3.253;
root /usr/share/smokeping/;
location ~ .*\.cgi$ {
root /usr/share/smokeping/cgi-bin/;
fastcgi_pass unix:/var/run/nginx-fcgi.sock;
include /etc/nginx/fastcgi_params;
}
}
CGI已经启动
gls:/tmp# ps -aux | grep cgi
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 18786 0.0 0.0 32036 5044 ? S 14:25 0:00 /usr/bin/perl /etc/nginx-fcgi -l /var/log/nginx-fcgi.log -pid /var/run/nginx-fcgi.pid -S /var/run/nginx-fcgi.sock
smokeping目录下的权限
权限
gls:/usr/share/smokeping# ll
total 12
drwxr-xr-x 9 www-data www-data 89 2013-06-18 20:41 .
drwxr-xr-x 116 root root 4096 2013-06-19 13:55 ..
drwxr-xr-x 2 www-data www-data 6 2013-06-18 20:41 cache
drwxr-xr-x 2 www-data www-data 47 2013-06-18 20:45 cgi-bin
drwxr-xr-x 4 www-data www-data 4096 2013-06-18 20:42 etc
drwxr-xr-x 3 www-data www-data 41 2013-06-18 20:39 lib
drwxr-xr-x 6 www-data www-data 62 2013-06-18 20:39 oldconfigs
drwxr-xr-x 2 www-data www-data 6 2013-06-18 20:41 var
drwxr-xr-x 3 www-data www-data 36 2013-06-18 20:39 www
现在通过浏览器访问:
http://10.18.3.253:50032/smokeping/cgi-bin/smokeping.cgi
报错:Error: No such CGI app - may not exist or is not executable by this process.
nginx.error.log日志
2013/06/19 16:06:03 [error] 21371#0: *1 open() "/usr/share/smokeping/favicon.ico" failed (2: No such file or directory), client: 10.18.253.110, server: 10.18.3.253, request: "GET /favicon.ico HTTP/1.1", host: "10.18.3.253:50032"
2013/06/19 16:12:04 [error] 21371#0: *12 open() "/usr/share/smokeping/favicon.ico" failed (2: No such file or directory), client: 10.18.253.110, server: 10.18.3.253, request: "GET /favicon.ico HTTP/1.1", host: "10.18.3.253:50032" |
|