私はファブブラストです。おそらく誰かがこれがうまくいかない理由を見つけることができます。Nginxとphp-fpmを実行する代わりにphpファイルをダウンロードする
nginxの1.10.0を使用して
user henri:www-data;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
# default_type application/octet-stream;
default_type text/html;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
}
ナノは/ etc/nginxの/usr/local/nginx/conf/nginx.conf私の実験的なサーバーのUbuntu 16.04
上のPageSpeedでWorpressをインストールしようとしています/私の/etc/php/7.0/fpm/pool.d/www.confのサイト-利用可能/デフォルト
server {
listen 80; ## listen for ipv4; this line is default and implied
listen [::]:80 default_server ipv6only=on; ## listen for ipv6
root /var/www/www.xxxxxxx.com/public_html;
index index.php index.html index.htm;
# server_name localhost;
location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
expires max;
log_not_found off;
}
location/{
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php7-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
listen = /var/run/php7-fpm.sock;
...
ソケットはそれぞれのディレクトリにあります。
私が試した:
- は、サーバ/ nginxの/ PHP-FPM
PSの補助を再起動
root 4593 0.0 0.7 362588 30592 ? Ss 22:50 0:00 php-fpm: master process (/etc/php/7.0/fpm/php-fp.conf)
henri 4595 0.0 0.1 362588 6124 ? S 22:50 0:00 php-fpm: pool www
henri 4596 0.0 0.1 362588 6124 ? S 22:50 0:00 php-fpm: pool www
henri 4769 0.0 0.0 14224 968 pts/0 R+ 23:15 0:00 grep --color=auto php-fpm
珍しい何も私の中php7.0-fpm.log/nginxのerror.logファイル/ access.logを
ファイルがまだダウンロードの代わりに実行されています。私は何が欠けていますか?