레드햇 기반에 리눅스를 사용하게 되면 selinux 때문에 연결이 안 될 때가 있어서
권한이 없다고 나오는 것 같음
1.일시적인 방법
setenforce 0
2.파일 수정 하기
vi /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 warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
저 부분을 disabled 로 수정을 해준다
[PHP] fopen() Error: failed to open stream: Permission denied) (0) | 2022.07.20 |
---|---|
[php] php 변수 어느 곳 이나 선언 하여 사용 가능 한 변수 (0) | 2022.07.14 |
[PHP] PHP Warning: mysqli_connect(): Headers and client library minor version mismatch. (0) | 2022.04.15 |
imagemap 생성하기 /활용 (0) | 2022.03.03 |
[PHP] php로 캐싱 하기 (0) | 2022.02.08 |
댓글 영역