close

이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.

linux

php, http Permission denied

mysop 2021. 6. 22. 09:14
728x90
반응형
[root@mysop httpd]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2021-06-22 00:07:37 UTC; 13s ago
     Docs: man:httpd.service(8)
  Process: 9081 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 9081 (code=exited, status=1/FAILURE)

Jun 22 00:07:37 mysop.net systemd[1]: Starting The Apache HTTP Server...
Jun 22 00:07:37 mysop.net httpd[9081]: httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: Permission denied
Jun 22 00:07:37 mysop.net systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 22 00:07:37 mysop.net systemd[1]: Failed to start The Apache HTTP Server.
Jun 22 00:07:37 mysop.net systemd[1]: Unit httpd.service entered failed state.
Jun 22 00:07:37 mysop.net systemd[1]: httpd.service failed.

시작하려고 할때 설정오류도 없다

위와 같이 퍼미션 에러만 날경우

 

selinux가 실행중인지 확인해 볼것

 

# /etc/selinux/config

에서 disabled로 설정후 재부팅하면 바로 해결됨

 

728x90
반응형

'linux' 카테고리의 다른 글

opencv 4.x 설치 + opencv-php 연동 (수정#1)  (0) 2021.06.23
대한민국 시간대 조정 linux  (0) 2021.06.22
linux 파일 소유자 일괄 변경  (0) 2021.06.17
linux IOPS 성능 측정  (0) 2021.06.08
putty 없이 수동 터널링 (mac용)  (0) 2021.06.08