apt-get install nginx
apt-get install php php-fpm php-gettext php-common php-mbstring php-mbstring
vi /etc/php/7.2/fpm/php.ini
cgi.fix_pathinfo=0
vi /etc/nginx/sites-available/default
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
vi /var/www/html/info.php
systemctl reload nginx
コメント