본문 바로가기
반응형

error8

ModuleNotFoundError: No module named 'encodings 에러 확인시 Apache + mod_wsgi 연동시 Apache error로그에 ModuleNotFoundError: No module named 'encodings 와 같은 내용이 확인된다면SElinux 설정때문일 가능성이 높다. Apache Error로그 확인시 아래 메세지 확인Fatal Python error: Py_Initialize: Unable to get the locale encodingModuleNotFoundError: No module named 'encodings SELinux 로그 확인시 아래와 유사한 로그 확인type=SYSCALL msg=audit(1513368828.933:196): arch=c000003e syscall=21 success=no exit=-13 a0=5559a70040c.. 2018. 10. 6.
PHP 원격 Database 연결 에러 PHP에서 mysql_connect() 함수를 이용하여 원격 Database(혹은 localhost가 아닌 IP를 입력하여)에 접근시(Xpress engine, Wordpress 설치시에도)에 Can’t connect to MySQL server on 1.1.1.1 (13) 에러가 발생할경우 selinux 설정을 바꿔줄 필요가 있다. 현재 selinux 설정을 확인하면 # getsebool -a | grep httpd httpd_can_network_connect=off httpd_can_network_connect_db=off 다음과 같이 웹서버를 통한 원격 데이터 베이스의 접근이 불가능한 상태를 확인할 수 있는데 다음 명령어를 통해 접근 허용이 가능하다. # setsebool -P httpd_can_.. 2018. 10. 3.
Could not reliably determine the server's fully qualified domain name 에러 해결 Apache 서버 실행할 때 다음 에러 발생시Could not reliably determine the server's fully qualified domain name httpd.conf 파일수정 #ServerName www.example.com:80 의 주석을 제거하고 www.example.com:80부분을 localhost나 자신의 도메인 네임으로 변경하면 해결 가능하다. 2018. 10. 3.
[Mysql][MariaDB] MySQL Workbench에서 Update 및 Delete Query 시에 Error Code: 1175 에러 발생 할 경우 [Mysql][MariaDB] MySQL Workbench에서 Update 및 Delete Query 시에 Error Code: 1175 에러 발생 할 경우 Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. 에러 발생 시 아래 두가지 옵션 중 한가지를 선택해서 진행하면 에러 없이 Update 및 Delete Query가 가능하다. 1) 첫 번째SET SQL_SAFE_UPDATES = 0; 쿼리 .. 2018. 5. 9.
반응형