ubuntu+nginx+php

96 阅读1分钟
sudo apt-get update 
apt-get install php7.2 php7.2-fpm
location ~ \.php$ {
    root /mnt/web/php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    #fastcgi_pass 127.0.0.1:9000;
    fastcgi_pass unix:/run/php/php7.2-fpm.sock;
    fastcgi_index index.php;
}