설치 오류 문의 채택완료
그누보드 설치시 You don't have permission to access /install/install_config.php on this server. 문제가 생겼는데, (카페24의 가상서버호스팅, centod7 php5.x)
검색하면 같은 문의가 해결책이 꽤 보이는데 모든 방법을 다 해봐도 결국 안되어,
/install/index.php 와 /install/install_config.php 화일의 내용을 한줄한줄 지워가며, 단순화 시켜가며, 바꿔가며 테스트 해보고 있습니다.
그러다, 넘어가는 경우가 생겨 확인해 보니,
/install/index.php 의 내용을 다음과 같인 단순화 시키고,
<form action="install_config.php" method="post">
<input type="checkbox" name="agree" value="동의함">
<input type="submit">
</form>
체크박스를 체크 안하고 제출 버튼을 누르면 다음으로 넘어갑니다.
체크하고 넘기면
You don't have permission to access /install/install_config.php on this server 에러가 나네요..
You don't have permission to access /install/install_config.php on this server. 이문제 생겼다가 해결하신분 없을까요?
답변 4개
SELinux 설정 때문일 가능성이 큽니다.
SELinux 설정을 다음글을 참고하여 변경하거나.. https://sir.kr/g5_tip/11607
위의 방법으로 잘 안되는 경우에는..
(조금 비추천이지만..) SELinux 해제를 하면 됩니다. https://funyphp.com/archive/linux/19?page=4&device=pc
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
ModSecurity 모듈의 문제인듯 하여 다음 글을 참고하여 해봤지만...여전히 문제네요
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
SELinux 관련된것도 확인해 봤는데,,,disabled로 되어 있네요.
추가 : 값에 한글이 들어가면 오류가 나오네요
숫자나 영문이면 안나오고,....
<input type="checkbox" name="agree" value="동의함"> => 오류
<input type="checkbox" name="agree" value="afasfa"> => 오류 안나옴.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
<IfModule mod_security.c>
SecRuleInheritance Off
SecRuleEngine Off
</IfModule>
다음과 같이 바꾸고 나니 해결되네요.
<VirtualHost *>
SecRuleInheritance Off
SecRuleEngine Off
</VirtualHost>