유머 노트최불암 시리즈2023/01/06 16:15by 깜빡쟁이미국에 간 최불암이 속도 위반으로 또 교통 경찰에게 걸렸다. 그런데 하필이면 지난번에 만난 그 경찰이었다. 최불암이 경찰에게 이렇게 말했다. "Please look at me at once." (제발 한 번만 봐 주세요.) 그러자 최불암을 알아본 경찰이 하는 말 "No soup, today." (오늘은 국물도 없다.)
유머 노트최불암 시리즈2023/01/06 16:13by 깜빡쟁이최불암이 미국에서 차를 몰다가 속도 위반으로 교통 경찰에게 걸렸다. 교통 경찰이 최불암의 신분증을 보고는 물었다. "What's your name?" (당신 이름이 뭡니까?) 그러자 최불암이 이렇게 답했다. "My name is 최불암." (내 이름은 최불암입니다.) 그러자 교통 경찰은 "What?" 최불암은 이게 아닌가 싶어 생각하더니 다시 말했다. "I'm sorry. My name is 불암 초이." (미안합니다. 내 이름은 불암 초이입니다.)
Error NoteLinux/SELinux2023/01/05 22:52by 깜빡쟁이PHP Notice: PHP Request Startup: file created in the system's temporary directory in Unknown on line 0 selinux를 켰을 때에만 이 경고문이 나온다면, [SELinux] recv() failed (104: Connection reset by peer) while reading response header from upstream...에서 이야기한 방법으로 문제를 풀 수 있다. /var/log/audit/audit.log에서 문제가 생긴 오류 로그 정보는 아래와 같았다. type=AVC ms...
Error NoteLinux/Linux 일반2023/01/03 18:41by 깜빡쟁이error: rpmdb: BDB0113 Thread/process 12340/140197456049984 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 - (-30973) error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed...
Error NoteDNS/gdnsd2023/01/03 15:24by 깜빡쟁이# gdnsd checkconf info: gdnsd version 3.2.2 @ pid 13749 info: DNS listener threads (2 UDP + 2 TCP) configured for 0.0.0.0:53 info: DNS listener threads (2 UDP + 2 TCP) configured for [::]:53 warning: Config option zones_rfc1035_auto is no longer supported, and will become a syntax error in a future major version upgrade info: plugin_geoip: map 'my_map': Loading Geo...
Error NotePHP2023/01/03 15:09by 깜빡쟁이TypeError #0 "implode(): Argument #2 ($array) must be of type ?array, stdClass given" in /.../xxx.php on line 38 $key = md5(implode(',', $info)); PHP의 implode 함수에서 배열(array)로 받는데 두째 매개변수에 stdClass 형식인 변수를 넣었기 때문에 나오는 오류이다. 아래처럼 get_object_vars 함수로 클래스 멤버 변수인 $info를 배열로 바꾸어 준다. $key = md5(implode(',', get_object_vars(...
Error NoteCMS/WordPress2023/01/03 14:51by 깜빡쟁이Can't change configuration: Can't create folder /path/to/www/wp-content/cache/tmp: mkdir(): No such file or directory SELinux를 쓰고 있는데 위와 같은 오류 로그가 뜬다면, 보안 컨텍스트(security context)로 쓰기 권한을 주지 않았기 때문일 수 있다. # chcon -R -t httpd_user_content_rw_t /path/to/www/wp-content/ # chcon -t httpd_user_content_rw_t /path/to/www/wp-content 쓰기 권...
Error NotePHP2022/12/30 12:26by 깜빡쟁이Warning: Undefined array key "HTTP_HOST" in /.../xxx.php on line 56 Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /.../xxx.php on line 56 $_SERVER['HTTP_HOST']는 값이 비는 때가 더러 있다. 이를테면 HTTP/3을 쓰는 때에 $_SERVER['HTTP_HOST']에 값이 들어가지 않는다. $_SERVER['HTTP_HOST']가 비는 것 때문에 PHP 프로그램에 오류...