[php] PHP Warning: mysqli_connect(): (HY000/2002): Permission denied
레드햇 기반에 리눅스를 사용하게 되면 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 #..
php
2022. 4. 27. 22:12