9버전 이상에서는 아래 처럼 아파치를 시작하면 별다른 에러 로그 없이 시작이 안됨
[root@xxxxxxxx
[root@xxxx]# apachectl start
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.
아파치 로그를 살펴봐도 별다른게 없음..
구글링을 해보니 아래와 같이 원인을 찾아서 해결 할 수 있는 글귀를 발견
https://forums.rockylinux.org/t/cant-start-apache/9998/4
아래와 같이 실행하니 해결..
# setenforce 0
# apachectl start
# audit2allow -a /var/log/audit/audit.log
#============= httpd_t ==============
#!!!! This avc can be allowed using the boolean 'domain_can_mmap_files'
allow httpd_t httpd_var_run_t:file map;
#============= logrotate_t ==============
setsebool -P domain_can_mmap_files 1
domain_can_mmap_files 이 RockyOS 9에서는 Sellinux 에 비활성화 되어 있는데 8버전도 아마 그럴듯..
'Server > linux' 카테고리의 다른 글
아파치, 톰켓(apache, tomcat) 일반 사용자 로 실행(기록) (0) | 2023.09.02 |
---|---|
vsftpd 홈 디렉토리 변경과 selinux 설정 모음 (0) | 2020.12.22 |
Apache + Tomcat 여러대 운영시 SELinux 문제 해결(403 Permission, Port) (2) | 2019.01.17 |
Centos sftp 포트 변경 방법 (0) | 2016.05.19 |
[팁] 리눅스로 하드디스크(ntfs,ext3,ext4) 자동 마운트 하기 (0) | 2015.09.03 |