1. php-fpm 설치 apt install php-fpm 2. /etc/nginx/sites-available/default 수정 location 추가 (fastcgi_pass) location ~ \.php$ { include snippets/fastcgi-php.conf; # # # With php-fpm (or other unix sockets): fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; # # With php-cgi (or other tcp sockets): # fastcgi_pass 127.0.0.1:9000; }