현재 규모가 있으면서 가장 널리 쓰이는 PHP 프로젝트로는 무엇이 있을까요? 저는 바로 2가지가 생각납니다. 바로 페이스북과 미디어위키입니다. 페이스북은 closed-source이지만, 다행히도 미디어위키는 open-source입니다. 미디어위키를 통해서 LAMP 스택, 혹은 LEMP 스택을 배워봅시다.

2026-1

갑자기 account가 다운되어 있다

Why the Server Crashed

The short version: The app couldn't delete old security keys because it didn't have permission.

Linux 파일 관련해서 permission 문제가 있다. 사실 이 문제는 이거 아니어도 계속 생긴다. chmod는 기본적으로 제한되어 있는 상태로 만들어지는 경우가 많은 것 같다.

The longer version:

  1. Your app creates security keys - These are like digital signatures used to verify user logins. For security, the app automatically creates new keys and deletes old ones every 90 days.
  2. The app runs as a "limited user" - Inside the Docker container, the app runs as a restricted user called nodejs (not as the all-powerful root administrator). This is a security best practice.

app이 돌아가는 것도 운체의 user 단위로 돌아가나보다.

모든 프로그램은 프로세스이고, 모든 프로세스는 특정 유저 권한으로 돌아간다.

내 linux에는 chanwoo, root 이 있다.

root (UID 0) → unlimited 권한