{"id":762,"date":"2017-04-09T11:33:07","date_gmt":"2017-04-09T02:33:07","guid":{"rendered":"http:\/\/wp.ultimai.org\/wp\/?p=762"},"modified":"2017-05-21T13:33:59","modified_gmt":"2017-05-21T04:33:59","slug":"nginx-on-the-steep-road-to-phpinfo","status":"publish","type":"post","link":"http:\/\/wp.ultimai.org\/?p=762","title":{"rendered":"nginx\u3067phpinfo()\u307e\u3067\u306e\u967a\u3057\u3044\u9053\u306e\u308a"},"content":{"rendered":"<h2>centos7+nginx+php7<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">php\u306e\u8d77\u52d5\r\n# systemctl start php-fpm\r\n# systemctl status php-fpm\r\n php-fpm.service - The PHP FastCGI Process Manager  \u7701\u7565~<\/pre>\n<h3>\u73fe\u8c61 php\u3092\u958b\u304f\u3068\u30d6\u30e9\u30a6\u30b6\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3088\u3046\u3068\u3059\u308b<\/h3>\n<p><b>\/etc\/nginx\/nginx.conf \u306e\u7de8\u96c6\u3067\u89e3\u6c7a<\/b><br \/>\nserver {<br \/>\nlisten 80 default_server;<br \/>\nlisten [::]:80 default_server;<br \/>\nserver_name _;<br \/>\nroot \/var\/www\/html;<\/p>\n<p># Load configuration files for the default server block.<br \/>\ninclude \/etc\/nginx\/default.d\/*.conf;<\/p>\n<p>location \/ {<br \/>\nroot \/var\/www\/html; #\u4e0a\u3068\u540c\u3058\u306b\u3059\u308b<br \/>\nindex index.html index.htm;<br \/>\n}<\/p>\n<p>location ~ \\.php$ {<br \/>\nfastcgi_pass 127.0.0.1:9000; # unix:\/var\/run\/php-fpm\/php-fpm.sock;<br \/>\nfastcgi_index index.php;<br \/>\nfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # \u2190\u3053\u3046\u3059\u308b<br \/>\ninclude fastcgi_params;<br \/>\n}<\/p>\n<p># nginx -s reload \u518d\u8d77\u52d5<\/p>\n<h3>\u73fe\u8c61 php\u3092\u958b\u304f\u3068server error 500<\/h3>\n<p><b>\u5fc5\u305a\u3057\u3082\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3067\u306f\u306a\u3044\u3002<\/b><br \/>\nnginx\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3067syntax error \u3092\u78ba\u8a8d<\/p>\n<p>curl \u3067\u5b9f\u884c<br \/>\ncurl -H &#8220;Host: dummy.example.com&#8221; http:\/\/127.0.0.1\/html\/info.php<\/p>\n<p>\u305d\u306e\u4ed6\u3044\u308d\u3044\u308d\u8a2d\u5b9a\u3057\u3066SSL Report\u3067\u8a55\u4fa1A+<\/p>\n<pre style=\"background: #e1dec4; color: #573514; font: 1em\/60% consolas;\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>centos7+nginx+php7 php\u306e\u8d77\u52d5 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":825,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-762","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/posts\/762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=762"}],"version-history":[{"count":8,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions"}],"predecessor-version":[{"id":878,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions\/878"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/media\/825"}],"wp:attachment":[{"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}