2016-10-17 3 views
0

私はこれを初めて使っていますが、新たにspun micro ec2サーバーを稼働させておくことはできません。 PHP-FPMのログには、ロギングがデバッグに設定されているだけです。PHP5-FPMは新しいマイクロインスタンスでクラッシュし続けますが、ログは空です

[17-Oct-2016 15:46:38] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful 

私のnginxのログは、継続的に(毎分のエントリの数百サイトにアクセスする誰もがなくても)のphp5-fpm.sockに接続しようとするエラーで充填されます。

2016/10/17 16:32:16 [error] 26389#0: *7298 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 191.96.249.80, server: mysiteredacted.com, request: "POST /xmlrpc.php HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "removed" 

nginxとPHP-FPMを再起動した後、サイトを再起動するまで、502回の間違ったゲートウェイエラーが発生するまで、サイトは数分間動作します。

どこから始めるべきかわかりません。ここに私のnginxの設定ファイルである:

user nginx; 
worker_processes 1; 

error_log /var/log/nginx/error.log warn; 
pid  /var/run/nginx.pid; 


events { 
    worker_connections 1024; 
} 


http { 
    include  /etc/nginx/mime.types; 
    default_type application/octet-stream; 

    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 /var/log/nginx/access.log main; 

    sendfile  on; 
    #tcp_nopush  on; 

    keepalive_timeout 65; 

    #gzip on; 
    port_in_redirect off; 
    gzip on; 
    gzip_types text/css text/xml text/javascript application/x-javascript; 
    gzip_vary on; 

    include /etc/nginx/conf.d/*.conf; 
} 
も/conf.dフォルダにこのファイルが含ま

fastcgi_pass unix:/var/run/php5-fpm.sock; 

その場合:第二ファイルに次の行を持っている

server { 
    ## Your website name goes here. 
    server_name mysiteredacted.com www.mysiteredacted.com; 
    ## Your only path reference. 
    root /var/www/; 
    listen 80; 
    ## This should be in your http block and if it is, it's not needed here. 
    index index.html index.htm index.php; 

    include conf.d/drop; 

     location/{ 
       # This is cool because no php is touched for static content 
      try_files $uri $uri/ /index.php?q=$uri&$args; 
     } 

     location ~ \.php$ { 
      fastcgi_buffers 8 256k; 
      fastcgi_buffer_size 128k; 
      fastcgi_intercept_errors on; 
      include fastcgi_params; 
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
      # fastcgi_pass unix:/dev/shm/php-fpm-www.sock; 
      fastcgi_pass unix:/var/run/php5-fpm.sock; 

     } 

     location ~* \.(css|js|png|jpg|jpeg|gif|ico)$ { 
       expires 1d; 
     } 
} 

答えて

0

をファイルが存在しない場合は、このエラーがスローされます。

チェックこの前の質問:How to find my php-fpm.sock?

+0

既に確認済みです。 php5-fpm.sockファイルはその場所にありますので問題はありません。 –

0

が検索の時間後、私は最後に.../POST」のリクエストの数千人によって示されるように、それは/xmlrpc.php上のブルートフォース攻撃のいくつかの並べ替えですが判明し、それを考え出しましたxmlrpc.php HTTP/1.0 "と入力します。

これは一般的なWordPress攻撃です。皆さんありがとう。

+0

cloudflareを使用すると、サーバーをソフトddos-esから守ります。クロールすると静的なファイルがキャッシュされ、cdnとして機能して速くサービスします – num8er

+1

@ num8er面白いです。私はキャッシングのためにワニスを考えていましたが、それは私のサーバー上に生きていたので、明らかに異なっています。情報をありがとう! –

関連する問題