Mac PHP 环境配置
server {
listen 8090;
server_name 127.0.0.1;
root /usr/local/var/www/8090;
location / {
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
brew services restart nginx
chmdo -R 777 /usr/local/var/www/8090
brew services restart php