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

최불암이 미국에서 차를 몰다가 속도 위반으로 교통 경찰에게 걸렸다. 교통 경찰이 최불암의 신분증을 보고는 물었다. "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...

[Wordpress] Briefly unavailable for scheduled maintenance. Check back in a minute.

Briefly unavailable for scheduled maintenance. Check back in a minute. 예약되어 있는 유지보수를 위해 잠시 사용할 수 없습니다. 잠시 후에 다시 확인하세요. 자동 업데이트 기능으로 위드프레스 플러그인을 새 판으로 바꾸다가 도중에 멈추면 이용자가 보는 블로그 화면에 이런 내용만 뜰 수 있다. 이 때에는 .maintenance 파일을 지워서 블로그 화면을 되살릴 수 있고, timeout 값을 늘려서 플러그인을 바꾸는...