我有一个保存共享PHP脚本的目录(名字是任意的,但不是/ var /,/ usr /,或者SELinux具有特定设置的任何东西):
/不pipe/脚本/
这些脚本可以通过cronjobs来执行,也可以通过Apache或Tomcat来执行,这样输出可以包含在网页中。
SELinux拒绝许可:
type = AVC msg = audit(1363205612.276:476923):avc:denied {execute} for pid = 6855 comm =“sh”name =“script.PHP”dev = sda3 ino = 4325828 scontext = system_u:system_r:httpd_t:s0 tcontext = unconfined_u:object_r:etc_runtime_t:s0 tclass = file
如何更改IIS Express 8端口80到8080
多语言自定义404 htaccess导致redirect循环的规则
绕过“选项请求”的authentication(所有的头都在响应中发送)
如何使用.htaccess创build干净的url
type = SYSCALL msg = audit(1363205612.276:476923):arch = c000003e syscall = 59 success = no exit = -13 a0 = 2431d10 a1 = 2431d70 a2 = 24301e0 a3 = 50 items = 0 ppid = 23100 pid = 6855 auid = 4294967295 uid system_u:system_u:= 48 gid = 48 euid = 48 suid = 48 fsuid = 48 egid = 48 sgid = 48 fsgid = 48 tty =(none)ses = 4294967295 comm =“sh”exe =“/ bin / bash” httpd_t:s0 key =(null)
type = AVC msg = audit(1363205612.277:476924):avc:denied {execute} for pid = 6855 comm =“sh”name =“script.PHP”dev = sda3 ino = 4325828 scontext = system_u:system_r:httpd_t:s0 tcontext = unconfined_u:object_r:etc_runtime_t:s0 tclass = file
type = SYSCALL msg = audit(1363205612.277:476924):arch = c000003e syscall = 21 success = no exit = -13 a0 = 2431d10 a1 = 1 a2 = 0 a3 = 50 items = 0 ppid = 23100 pid = 6855 auid = 4294967295 uid system_u:system_u:= 48 gid = 48 euid = 48 suid = 48 fsuid = 48 egid = 48 sgid = 48 fsgid = 48 tty =(none)ses = 4294967295 comm =“sh”exe =“/ bin / bash” httpd_t:s0 key =(null)
我知道有一个命令我可以用来告诉SELinux允许这个,但是这个命令让我难以理解。
即使使目录和脚本所有者和组apache不起作用,所以它不是一个经典的权限问题,但SELinux具体。
系统是CentOS 6.3。
在Apache上为Django应用程序configurationSSL证书(mod_wsgi)
Apache友好的url
如何让Apache的configuration单元来处理多个客户端的查询
通过configurationapache的.conf文件将httpredirect到https
我找到了这两个命令的解决方案:
semanage fcontext -a -t httpd_sys_script_exec_t'/whatever/scripts(/.*)?'
restorecon -R -v / whatever / scripts /
这允许Apache在该目录中执行PHP脚本,并在重新启动后或系统范围的重新标记之后保留。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。