[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 값을 늘려서 플러그인을 바꾸는...

다중 사이트로 운영하는 워드프레스의 미디어 공유 플러그인

미리보기 그림 - 다중 사이트로 운영하는 워드프레스의 미디어 공유 플러그인
다중 사이트(multisite)로 운영하는 워드프레스에서 미디어 라이브러리를 공유할 수 있게 해 주는 플러그인이 있는지 찾아 보았으나, 아쉽게도 워드프레스 최신판에서 쓸 수 있는 도구는 찾지 못했다. 워드프레스 옛 판에서 쓸 수 있었던 플러그인에 관한 정보는 있었다. Network Shared Media https://github.com/humanmade/shared-media-library https://wordpress.org/plugins/network-shared-media/advanced/...

[MySQL] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (2)

# mysql ERROR 2002 (HY000): Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (2) 루트 권한으로 접속해서 mysql을 실행하는데도 이런 오류가 난다면, my.cnf 파일에 다음처럼 소켓 파일을 지정하는 내용이 있는지 살펴서 없으면 넣어 준다. [mysqld] ... socket = /var/lib/mysql/mysql.sock /var/lib/mysql/에 mysql.sock 파일이 만들어지지 않았다면 그 경로의 파일과 디렉토리...

[PHP] Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent

Warning: session_regenerate_id(): Session ID cannot be regenerated after headers have already been sent(2) File: /…/…/…/….php:217 HTTP 응답 헤더(HTTP response header)를 보낸 다음에는 세션 아이디(session ID)를 바꿀 수 없다. $_SERVER['HTTP_HOST'] 같은 변수를 인증 정보로 쓰는데 값이 비어서 인증에 문제가 생기면 이 경고문이 보일 수 있다. 인증에 쓰이는 서버 환경 변수의 값을 살...

[nginx] no proxy_ssl_trusted_certificate for proxy_ssl_verify

nginx: [emerg] no proxy_ssl_trusted_certificate for proxy_ssl_verify nginx.conf를 비롯한 nginx 설정 파일에서 proxy_ssl_verify on; 이 있는 곳에 proxy_ssl_trusted_certificate /.../chain.pem; 과 같이 pem 형식인 CA 인증서 경로를 넣는다.

[SELinux] nginx: [emerg] bind() to 0.0.0.0:443 failed (13: Permission denied)

-- Unit nginx.service has begun starting up. Oct 29 07:30:20 host nginx[29837]: nginx: [emerg] bind() to 0.0.0.0:443 failed (13: Permission denied) Oct 29 07:30:20 host systemd[1]: nginx.service: control process exited, code=exited status=1 Oct 29 07:30:20 host systemd[1]: Failed to start nginx - high performance web server. -- Subject: Unit nginx.service has failed --...

[vsftpd] GnuTLS error -15 in gnutls_record_recv: An unexpected TLS packet was received...

Error: GnuTLS error -15 in gnutls_record_recv: An unexpected TLS packet was received. Error: Could not read from socket: ECONNABORTED – Connection aborted Error: Could not connect to server 오류: GnuTLS 오류 -15 in gnutls_record_recv: An unexpected TLS packet was received. 상태: 서버가 TLS 연결을 정상 해제하지 않았습니다 오류: 소켓을 읽지 못함: ECONNABORTED - 연...

[phpBB] The installer detected a timeout The installer has detected a timeout...

phpBB를 'Advanced Update'로 판올림(업그레이드)할 때 이런 오류가 나오기도 한다. The installer detected a timeout The installer has detected a timeout, you may try to refresh the page, which may lead to data corruption. We suggest that you either increase your timeout settings or try to use the CLI. [phpBB Debug] "fopen(../store/io_lock.lock): Failed to open stream: Pe...