[최불암 시리즈] 속도 위반 ②

미국에 간 최불암이 속도 위반으로 또 교통 경찰에게 걸렸다. 그런데 하필이면 지난번에 만난 그 경찰이었다. 최불암이 경찰에게 이렇게 말했다. "Please look at me at once." (제발 한 번만 봐 주세요.) 그러자 최불암을 알아본 경찰이 하는 말 "No soup, today." (오늘은 국물도 없다.)

[최불암 시리즈] 속도 위반 ①

최불암이 미국에서 차를 몰다가 속도 위반으로 교통 경찰에게 걸렸다. 교통 경찰이 최불암의 신분증을 보고는 물었다. "What's your name?" (당신 이름이 뭡니까?) 그러자 최불암이 이렇게 답했다. "My name is 최불암." (내 이름은 최불암입니다.) 그러자 교통 경찰은 "What?" 최불암은 이게 아닌가 싶어 생각하더니 다시 말했다. "I'm sorry. My name is 불암 초이." (미안합니다. 내 이름은 불암 초이입니다.)

[SELinux] PHP Request Startup: file created in the system's temporary directory in Unknown on line 0

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...

[yum/rpm] failed: BDB1507 Thread died in Berkeley DB library

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...

[nginx] FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream...

2022/10/28 16:50:59 [error] 3137#3137: *5 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: xxx.xxx, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fpm.sock:", host: "www.xxx.xxx" "기본 스크립트를 알 수 없음(Primary script unknown)"은 fastcgi_param 지시문에서 잘못 설정된 SCRI...

[gdnsd] warning: Config option zones_rfc1035_auto is no longer supported, and will become a syntax error in a future major version upgrade

# 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...

[PHP] implode(): Argument #2 ($array) must be of type ?array, stdClass given

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(...

[wordpress] [selinux] mkdir(): Permission denied

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 쓰기 권...

[PHP] Undefined array key "HTTP_HOST" in ...

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 프로그램에 오류...

[SELinux] recv() failed (104: Connection reset by peer) while reading response header from upstream...

2022/12/29 02:51:33 [error] 1600#1600: *627 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: www.xxx.xxx, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/dev/shm/php-fpm.sock:", host: "www.xxx.xxx" SELinux를 끄고 운영하고 있는 웹 서버에서 SELinux를 적용해 보려고 'setenforce 1'로 켰더니, PHP...