{"id":97,"date":"2014-11-09T21:02:15","date_gmt":"2014-11-09T12:02:15","guid":{"rendered":"http:\/\/mifmif.mydns.jp\/masterkudo\/index.php\/2014\/11\/09\/post-0\/"},"modified":"2014-11-09T21:02:15","modified_gmt":"2014-11-09T12:02:15","slug":"post-0","status":"publish","type":"post","link":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=97","title":{"rendered":"nginx+Php5\u74b0\u5883\u306e\u8a66\u4f5c"},"content":{"rendered":"<p><a href=\"https:\/\/davidwinter.me\/php-and-nginx-the-easy-way\/\" target=\"_blank\" title=\"https:\/\/davidwinter.me\/php-and-nginx-the-easy-way\/\" rel=\"noopener noreferrer\">PHP and nginx on Ubuntu: the easy way<\/a><br \/>\n\u3053\u3053\u3092\u53c2\u8003\u306b<br \/>\nphp-fastcgi\u3068\u3057\u3066\u4f5c\u308b\u3002<br \/>\n\u30b5\u30fc\u30d0\u3078\u306e\u8a18\u8f09\u3068\u3060\u3051\u3042\u308a\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001<br \/>\n<a href=\"http:\/\/www.howtoforge.com\/installing-nginx-with-php5-and-php-fpm-and-mysql-support-lemp-on-ubuntu-13.04\" target=\"_blank\" title=\"Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Ubuntu 13.04\" rel=\"noopener noreferrer\">Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Ubuntu 13.04<\/a>\u304b\u3089<br \/>\napt-get install php5-fpm<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3069\u3046\u3084\u3089\u3001\uff46\uff50\uff4d\u304b\u3089\u8d77\u52d5\u3059\u308b\u69d8\u306b\u306a\u308b\u3068\u601d\u3046\u306e\u3067\u3001<br \/>\nPHP and nginx on Ubuntu: the easy way\u306e\u65b9\u306ephp-fastcgi\u306f\u6d88\u3057\u307e\u3059\u3002<br \/>\n# update-rc.d -f php-fastcgi remove<br \/>\n\/etc\/nginx\/nginx.conf\u3000\u8a2d\u5b9a\u3002<br \/>\n\/etc\/nginx\/sites-available\/default\u3000\u8a2d\u5b9a\u3002<br \/>\n\u3053\u3053\u3067\u3001\u30b5\u30fc\u30d0\u306e\u30eb\u30fc\u30c8\u3092\u5165\u308c\u3066\u304a\u304f\u3002<br \/>\nserver {<br \/>\nlisten 80;<br \/>\nroot \/\u307b\u3052\u307b\u3052\/Public\/pukiwiki_adv-2.0.0\/webroot;<br \/>\nindex index.php;<br \/>\n# Make site accessible from http:\/\/localhost\/<br \/>\n#\tserver_name localhost;<br \/>\nlocation \/ {<br \/>\nroot \/\u307b\u3052\u307b\u3052\/Public\/pukiwiki_adv-2.0.0\/webroot;<br \/>\nindex index.php;<br \/>\n# First attempt to serve request as file, then<br \/>\n# as directory, then fall back to displaying a 404.<br \/>\n#\t\ttry_files $uri $uri\/ =404;<br \/>\n# Uncomment to enable naxsi on this location<br \/>\n# include \/etc\/nginx\/naxsi.rules<br \/>\n}<br \/>\n\u3053\u3053\u4ee5\u964d\u306b\u3001\uff50\uff48\uff50\u95a2\u4fc2\u306e\u8a2d\u5b9a\u304c\u5165\u308b\u3002<br \/>\n\/etc\/php5\/fpm\/php.ini\u3000\u8a2d\u5b9a\u3002<br \/>\n\u5199\u771f\u306e\u30da\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u305f\u3081\u306b\u3001<br \/>\nmemory_limit = 256M<br \/>\nupload_max_filesize = 20M<br \/>\npost_max_size = 10M<br \/>\n\u3068\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u3000\u3053\u308c\u3060\u3051\u3067\u306f\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u6642\u306b\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u3067\u5bfe\u51e6\u3057\u3066\u7f6e\u304d\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.faqforge.com\/linux\/nginx-server-error-413-request-entity-too-large\/\" target=\"_blank\" title=\"nginx server error: 413 Request Entity Too Large\" rel=\"noopener noreferrer\">nginx server error: 413 Request Entity Too Large<\/a><br \/>\nhttp {<br \/>\nclient_max_body_size 10M;<br \/>\nMB\u3067\u306a\u304fM\u306a\u306e\u3067\u6ce8\u610f\u3002<br \/>\n\u30e1\u30e2\u307e\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP and nginx on Ubuntu: the easy way \u3053\u3053\u3092\u53c2\u8003\u306b php-fastcgi\u3068\u3057\u3066\u4f5c\u308b\u3002 \u30b5\u30fc\u30d0\u3078\u306e\u8a18\u8f09\u3068\u3060\u3051\u3042\u308a\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001 Installing Nginx With PHP5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=97"}],"version-history":[{"count":0,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}