{"id":5750,"date":"2021-08-17T21:09:28","date_gmt":"2021-08-17T12:09:28","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=5750"},"modified":"2021-08-17T21:09:30","modified_gmt":"2021-08-17T12:09:30","slug":"post-5750","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2021\/08\/17\/post-5750\/","title":{"rendered":"Nginx\u4e0a\u306ePHP\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u300cFile not found.\u300d\u3068\u8868\u793a\u3055\u308c\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Nginx\u306bPHP\u3092\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u3044\u308c\u305f\u306e\u3060\u304c\u3001\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u300cFile not found.\u300d\u3068\u8868\u793a\u3055\u308c\u3066\u3001PHP\u306e\u51e6\u7406\u304c\u3055\u308c\u306a\u3044\u3002Nginx\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u4e0b\u8a18\u306e\u8868\u793a\u304c\u3042\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FastCGI sent in stderr: \"Primary script unknown\" while reading response header from upstream,<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nginx\u306e\u300c\/etc\/nginx\/sites-available\/default\u300d\u306ePHP\u306b\u95a2\u9023\u3059\u308b\u8a2d\u5b9a\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>     # pass PHP scripts to FastCGI server \n        # \n        location ~ \\.php$ { \n                    include snippets\/fastcgi-php.conf; \n        # \n        #       # With php-fpm (or other unix sockets): \n                fastcgi_pass unix:\/var\/run\/php\/php7.4-fpm.sock; \n        #       # With php-cgi (or other tcp sockets): \n        #       fastcgi_pass 127.0.0.1:9000; \n                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; \n        }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8a18\u3092\u3001\u6b21\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u305f\u3068\u3053\u308d\u3001\u6b63\u5e38\u306bPHP\u306e\u51e6\u7406\u304c\u884c\u308f\u308c\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>     # pass PHP scripts to FastCGI server \n        # \n        location ~ \\.php$ { \n                 root     \/var\/www\/html; \n                 include snippets\/fastcgi-php.conf; \n        # \n        #       # With php-fpm (or other unix sockets): \n                fastcgi_pass unix:\/var\/run\/php\/php7.4-fpm.sock; \n        #       # With php-cgi (or other tcp sockets): \n        #       fastcgi_pass 127.0.0.1:9000; \n                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; \n                include fastcgi_params; \n        }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3082\u305d\u3082\u306e\u30a8\u30e9\u30fc\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u304c\u308f\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u300croot\u00a0 path\u300d\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u6b63\u5e38\u306b\u51e6\u7406\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002Nginx\u306e\u8a2d\u5b9a\u306f\u3001\u4f55\u56de\u3084\u3063\u3066\u3082\u96e3\u89e3\u3067\u3069\u3053\u304b\u3089\u3057\u3089\u3067\u8e93\u304f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nginx\u306bPHP\u3092\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u3044\u308c\u305f\u306e\u3060\u304c\u3001\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u300cFile not found.\u300d\u3068\u8868\u793a\u3055\u308c\u3066\u3001PHP\u306e\u51e6\u7406\u304c\u3055\u308c\u306a\u3044\u3002Nginx\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u4e0b\u8a18\u306e\u8868\u793a\u304c\u3042\u3063\u305f\u3002 Nginx\u306e\u300c\/e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[155,48],"class_list":["post-5750","post","type-post","status-publish","format-standard","hentry","category-tech-memo","tag-nginx","tag-php"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/5750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=5750"}],"version-history":[{"count":2,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/5750\/revisions"}],"predecessor-version":[{"id":5771,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/5750\/revisions\/5771"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=5750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=5750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=5750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}