centos7安装smokeping打开网页报403
这是smokeping的配置文件3 owner = Peter Random
4 contact= some@address.nowhere
5 mailhost = my.mail.host
6 sendmail = /usr/sbin/sendmail
7 # NOTE: do not put the Image Cache below cgi-bin
8 # since all files under cgi-bin will be executed ... this is not
9 # good for images.
10 imgcache = /apps/smokeping/cache
11 imgurl = cache
12 datadir= /apps/smokeping/data
13 piddir= /apps/smokeping/var
14 cgiurl = http://47.92.225.254/smokeping
15 smokemail = /apps/smokeping/etc/smokemail.dist
16 tmail = /apps/smokeping/etc/tmail.dist
17 # specify this to get syslog logging
18 syslogfacility = local0
19 # each probe is now run in its own process
20 # disable this to revert to the old behaviour
21 # concurrentprobes = no
这是阿帕奇的
Alias /cache "/apps/smokeping/cache/"
357 Alias /cropper "/apps/smokeping/htdocs/cropper/"
358 Alias /smokeping "/apps/smokeping/htdocs/smokeping.fcg"
359 <Directory "/smokeping/">
360 Allow from all
361 Options ExecCGI
362AddHandler cgi-script .fcgi .sh .pl .cgi
363<IfModule dir_module>
364 DirectoryIndex smokeping.fcgi
365 </IfModule>
366 </Directory>
检查目录权限 admin 发表于 2019-6-22 12:37
检查目录权限
是阿奇的# cd smokeping# ll
total 36
drwxr-xr-x 2 apache apache 4096 Jun 21 14:37 bin
drwxr-xr-x 2 apache apache 4096 Jun 21 17:37 cache
drwxr-xr-x 4 apache apache 4096 Jun 21 15:47 data
drwxr-xr-x 3 apache apache 4096 Jun 22 11:44 etc
drwxr-xr-x 3 apache apache 4096 Jun 21 15:25 htdocs
drwxr-xr-x 3 apache apache 4096 Jun 21 14:37 lib
drwxr-xr-x 3 apache apache 4096 Jun 21 14:36 share
drwxr-xr-x 6 apache apache 4096 Jun 21 14:32 thirdparty
drwxr-xr-x 2 apache apache 4096 Jun 21 15:46 var
看一下apache的日志
页:
[1]