WEB/Server
Centos7버전 그누설치시 /install/install_config.php 퍼미션 에러 발생
Ezcode
2021. 4. 3. 19:36
카페24에서 centos 6.x 버전 지원종료 후 가상서버에서 제공하는 버전은 7버전
apm 설치하고 mariadb까지 설정
sshd / vsftpd 까지 설정하고 사용자 계정 추가
ftp로 파일 올리고 그누를 설치하려 했더니
"You don't have permission to access /install/install_config.php"
카페24에 문의도 해보고 구글링도 열심히 해서 알게된 사실
centos7버전에서 apm 자동설치를 진행할 경우
아파치 웹서버에 modsecuruty 모듈이 자동 설치되고 이는 아파치에서 제공하는 웹 방화벽 모듈
물론 virtualHost 안에서 SecRuleInheritance, SecRuleEngine을 Off 해서 사용할 수도 있지만
여러가지 알아본바로는 httpd.conf에서 modsecurity를 Loadmodule 하는 부분을 주석하여 사용하는게 좋다고 함.
그래서 /etc/httpd/conf.modules.d/ 디렉토리에 있는 10-mod_security.conf 파일이
mod_security에 관련이 있는것으로 보여 이를 백업처리 하고 진행하니 해결됨.
# rename 10-mod_security.conf 10-mod_security.conf.bak 10-mod_security.conf