always_populate_raw_post_data On
ixr:XML-RPC server accepts POST requests only
1条回复
always_populate_raw_post_data On
sudo apt-get install nginx php5 php5-cli php5-cgi spawn-fcgi
sudo vim /etc/nginx/sites-available/default
index index.php index.html index.htm;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/nginx-default$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
spawn-fcgi -a 127.0.0.1 -p 9000 -C 10 -u www-data -f /usr/bin/php-cgi