我在virtualbox中设置了一个centos7,其中运行apache、mariadb、phpmyadmin等,主机是macos
当我试图将url映射到共享文件夹时,遇到了错误。
Forbidden: You don't have permission to access /tutorial/ on this server.
数独尾-f /var/log/httpd/error_log
[Wed Oct 19 22:48:23.108758 2016] [autoindex:error] [pid 1469] (13)Permission denied: [client 192.16
我刚刚检查了一下我的服务器上是否像这样启用了SELINUX
[root@fedora ~]# getenforce
Disabled
但是,当我查看/etc/selinux/config文件时,我看到了以下内容
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints w
因此,我最近下载了Apache服务器及其所有文件(httpd、apr、apr-util、pcre),并遵循了下面的指令:。
但是,设置完毕后,当我试图启动位于usr/local/bin/中的Apache服务器时,系统会提示我使用以下消息:
[allen@allen-lnx ~]$ /usr/local/bin/apachectl start
(13)Permission denied: AH00091: httpd: could not open error log file /usr/local/logs/error_log.
AH00015: Unable to open logs
经过一
我已经将CentOS 8流设置为SELinux设置为permissive,但日志中仍然有许多红线,例如:
SELinux is preventing /usr/lib/systemd/systemd from name_connect access on the tcp_socket port 80
这些是真实的还是仅仅是打印-如果它是在restrictive模式下会发生什么?
我有一些系统,出于各种原因,我们希望完全禁用selinux。到目前为止,这就像一个champ,总是在启动时使用selinux=0,并确保/etc/sysconfig/selinux包含:
SELINUX=disabled
但是,到今天为止,我有一个Fedora 17工作站已经正确设置,但是在许多重新启动之后,它总是以强制模式出现:
# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
我正在尝试用mod_wsgi设置Apache (httpd),以运行一个Django站点。
(13)Permission denied: httpd: could not open error log file /var/mail/django-error-log.
Unable to open logs
我已经完成了:chown apache django-error-log,以确保所有权设置为apache,并使用ls -l进行验证。
ls -l
total 0
-rw-r--r--. 1 apache root 0 Jan 10 01:40 django-error-log
你知道是什么导