{"id":988,"date":"2012-02-19T17:56:44","date_gmt":"2012-02-19T08:56:44","guid":{"rendered":"http:\/\/helloidea.org\/?p=988"},"modified":"2014-02-22T22:17:55","modified_gmt":"2014-02-22T13:17:55","slug":"nginx%e3%81%a7wordpress%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/helloidea.org\/index.php\/archives\/988.html","title":{"rendered":"nginx\u3067wordpress\u306e\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3059\u308b"},"content":{"rendered":"<p>Windows\u3067Nginx\u3092\u69cb\u7bc9\u3057\u307e\u3059<br \/>\n\u6700\u8fd1\u306fNginx\u304c\u6d41\u884c\u3063\u3066\u304d\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001Windows\u3067\u3084\u3063\u3066\u308b\u65b9\u304c\u5c11\u306a\u3044\u306e\u3082\u3042\u3063\u3066\u69cb\u7bc9\u65b9\u6cd5\u3092\u30e1\u30e2\u30e1\u30e2<\/p>\n<p>Windows + Nginx + FastCGI + PHP + Mysql \u306e\u7d44\u307f\u5408\u308f\u305b\u3067 WordPress \u304c\u52d5\u4f5c\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u3067\u3059<br \/>\n\u691c\u8a3c\u74b0\u5883\u306f Windows7x64 \u3067\u3059<\/p>\n<p><span class=\"hi-c-orange\"><strong>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/strong><\/span><br \/>\n\u5fc5\u8981\u306a\u3082\u306e\u3092\u96c6\u3081\u3066\u304d\u307e\u3059\u3002<br \/>\nNginx \u2192 <a title=\"Stable Version nginx\/Windows-1.0.12\" href=\"http:\/\/nginx.org\/en\/download.html\" target=\"_blank\">Stable Version nginx\/Windows-1.0.12<\/a><br \/>\nPHP \u2192 <a title=\"PHP5.3 VC9 x86 Non Thread Safe\" href=\"http:\/\/windows.php.net\/download\/\" target=\"_blank\">PHP5.3 VC9 x86 Non Thread Safe<\/a><br \/>\nMysql \u2192 <a title=\"MySQL Community Server 5.5.20 Windows (x86, 32-bit), MSI Installer\" href=\"http:\/\/dev.mysql.com\/downloads\/mysql\/\" target=\"_blank\">MySQL Community Server 5.5.20 Windows (x86, 32-bit), MSI Installer<\/a><br \/>\nWordpress \u2192 <a title=\"Wordpress 3.3.1\" href=\"http:\/\/ja.wordpress.org\/\" target=\"_blank\">WordPress 3.3.1<\/a><\/p>\n<p><span class=\"hi-c-orange\"><strong>\u89e3\u51cd<\/strong><\/span><br \/>\nNginx\u3092C:\\Program Files\\nginx-1.0.12 \u306b\u89e3\u51cd<br \/>\nPHP\u3092 C:\\Program Files\\php-5.3.10-nts-Win32-VC9-x86 \u306b\u89e3\u51cd<br \/>\nWordpress\u3092 C:\\www \u306b\u89e3\u51cd<br \/>\nMysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002(ry<\/p>\n<p><span class=\"hi-c-orange\"><strong>\u52d5\u4f5c\u78ba\u8a8d<\/strong><\/span><br \/>\n1. \u307e\u305aNginx\u306e\u52d5\u4f5c\u78ba\u8a8d\u3002<br \/>\n&#8220;C:\\Program Files\\nginx-1.0.12\\nginx.exe&#8221; \u3092\u8d77\u52d5\u3057\u3066\u304b\u3089\u3001\u30d6\u30e9\u30a6\u30b6\u3067 localhost \u306b\u63a5\u7d9a\u3059\u308b\u3002<br \/>\n\u300c Welcome to nginx! \u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070OK<\/p>\n<p>2. \u6b21\u306bPHP\u306e\u52d5\u4f5c\u78ba\u8a8d<br \/>\n# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 \u306e\u9805\u76ee\u306e\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3057\u3066\u6b21\u306e\u3088\u3046\u306b\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlocation ~ \\.php$ {\r\nroot html;\r\nfastcgi_pass 127.0.0.1:9000;\r\nfastcgi_index index.php;\r\nfastcgi_param SCRIPT_FILENAME \/scripts$fastcgi_script_name;\r\ninclude fastcgi_params;\r\n}\r\n<\/pre>\n<p>&#8220;C:\\Program Files\\php-5.3.10-nts-Win32-VC9-x86\\php-cgi.exe -b 127.0.0.1:9000&#8221; \u3067 PHP\u3092\u8d77\u52d5\u3057\u3001<br \/>\n&#8220;C:\\Program Files\\nginx-1.0.12\\nginx.exe -s reload&#8221; \u3067\u5909\u66f4\u3057\u305f\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u3080\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067 localhost\/tekitou.php \u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\n\u300c No input file specified. \u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070\u3001Nginx PHP \u9593\u306e\u3084\u308a\u53d6\u308a\u306f\u6210\u529f\u3067\u3059<\/p>\n<p><span class=\"hi-c-orange\"><strong>WordPress\u3092\u52d5\u304b\u3059<\/strong><\/span><\/p>\n<p>&#8220;C:\\Program Files\\nginx-1.0.12\\conf\\nginx.conf&#8221; \u306e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlocation \/ {\r\nroot html;\r\nindex index.html index.htm;\r\n}\r\n<\/pre>\n<p>\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlocation \/ {\r\nroot C:\/WWW;\r\nindex index.php index.html index.htm;\r\n}\r\n<\/pre>\n<p># pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 \u306e\u9805\u76ee\u3092<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlocation ~ \\.php$ {\r\nroot C:\/;\r\nfastcgi_pass 127.0.0.1:9000;\r\nfastcgi_index index.php;\r\nfastcgi_param SCRIPT_FILENAME C:\/WWW$fastcgi_script_name;\r\ninclude fastcgi_params;\r\n}\r\n<\/pre>\n<p>\u306b\u3059\u308b\u3002<\/p>\n<p>&#8220;C:\\Program Files\\php-5.3.10-nts-Win32-VC9-x86\\php.ini-production&#8221; \u3092 \u30b3\u30d4\u30fc\u3057\u3066 php.ini \u3092\u4f5c\u6210\u3059\u308b<br \/>\n\u305d\u3057\u3066 php.ini \u306e<br \/>\n;extension=php_mysql.dll \u306e\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u89e3\u9664\u3057\u3066<br \/>\nextension=php_mysql.dll\u306b\u3059\u308b<\/p>\n<p>php\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067 localhost \u306b\u63a5\u7d9a\u3059\u308b<\/p>\n<p>\u5b8c\u4e86\u3002<br \/>\n<a href=\"http:\/\/helloidea.org\/wp-content\/uploads\/2012\/02\/wpconfig.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-998\" title=\"wpconfig\" alt=\"\" src=\"http:\/\/helloidea.org\/wp-content\/uploads\/2012\/02\/wpconfig.png\" width=\"465\" height=\"161\" \/><\/a><\/p>\n<p><strong><span class=\"hi-c-orange\">\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3059\u308b<\/span><\/strong><br \/>\n\u30dd\u30fc\u30c8\u3092\u4ecb\u3057\u3066php\u3092\u5229\u7528\u3059\u308b\u305f\u3081IIS\u3084Apache\u3068\u9055\u3063\u3066\u4e8b\u524d\u306bphp\u3092\u8d77\u52d5\u3055\u305b\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>bat\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u8d77\u52d5\u6642\u306b\u5b9f\u884c\u3055\u305b\u307e\u3059<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nstart C:\\&quot;Program Files&quot;\\php-5.3.10-nts-Win32-VC9-x86\\php-cgi.exe -b 127.0.0.1:9000\r\nstart C:\\&quot;Program Files&quot;\\nginx-1.0.12\\nginx.exe\r\n<\/pre>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8<br \/>\n<a href=\"http:\/\/eksith.wordpress.com\/2008\/12\/08\/nginx-php-on-windows\/\" target=\"_blank\">nginx + PHP on Windows in 5 minutes<\/a><br \/>\n<a href=\"http:\/\/blogbuildingu.com\/wordpress\/install-wordpress-wemp\" target=\"_blank\">Install WordPress on WEMP (Windows, nginx, MySQL and PHP)<\/a><br \/>\n<a href=\"http:\/\/d.hatena.ne.jp\/hasuho\/20111001\/1317462738\" target=\"_blank\">nginx\u306e\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3<\/a><br \/>\n<a href=\"http:\/\/d.hatena.ne.jp\/omiyan\/20110119\/p1\" target=\"_blank\">CGI\u7248\u306ePHP\u3067\u300cNo input file specified.\u300d\u306e\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5<\/a><br \/>\n<a href=\"http:\/\/6rats.blog62.fc2.com\/blog-category-2.html\" target=\"_blank\">fastcgi_param SCRIPT_FILENAME \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u610f\u5473<\/a><br \/>\n<a href=\"http:\/\/kray.jp\/blog\/wordpress-tuning\/\" target=\"_blank\">WordPress\u3092100\u500d\u901f\u304f\u3059\u308b\uff01 MySQL\u306e\u8abf\u6574\u3084nginx proxy cache<\/a><br \/>\n<a href=\"http:\/\/wiki.nginx.org\/NginxHttpCharsetModule#source_charset\" target=\"_blank\">\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304c shift-jis \u3060\u3068\u6587\u5b57\u5316\u3051\u3059\u308b\u554f\u984c \u300c\u672a\u89e3\u6c7a\u300d<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u3067Nginx\u3092\u69cb\u7bc9\u3057\u307e\u3059 \u6700\u8fd1\u306fNginx\u304c\u6d41\u884c\u3063\u3066\u304d\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001Windows\u3067\u3084\u3063\u3066\u308b\u65b9\u304c\u5c11\u306a\u3044\u306e\u3082\u3042\u3063\u3066\u69cb\u7bc9\u65b9\u6cd5\u3092\u30e1\u30e2\u30e1\u30e2 Windows + Nginx + FastCGI + PHP +  \u2026<\/p>\n","protected":false},"author":1,"featured_media":998,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[182,10],"class_list":["post-988","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-memo","tag-nginx","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/comments?post=988"}],"version-history":[{"count":27,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/988\/revisions"}],"predecessor-version":[{"id":1251,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/988\/revisions\/1251"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/media\/998"}],"wp:attachment":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/media?parent=988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/categories?post=988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/tags?post=988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}