{"id":1247,"date":"2013-07-09T00:10:07","date_gmt":"2013-07-09T04:10:07","guid":{"rendered":"http:\/\/www.a2life.info\/w\/?p=1247"},"modified":"2013-08-22T14:25:17","modified_gmt":"2013-08-22T18:25:17","slug":"nginx%e3%80%80%e3%82%93%e3%80%81%e3%81%98%e3%82%93%e3%81%8f%e3%81%99%ef%bc%9f-%e9%81%95%e3%82%8f%e3%81%84%e3%80%81%e3%82%a8%e3%83%b3%e3%82%b8%e3%83%b3x%e3%81%a0%e3%81%84%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.a2life.info\/w\/?p=1247","title":{"rendered":"NGINX\u3000\u3093\u3001\u3058\u3093\u304f\u3059\uff1f \u9055\u308f\u3044\u3001\u30a8\u30f3\u30b8\u30f3X\u3060\u3044\uff01"},"content":{"rendered":"<p>nginx\u3068\u66f8\u3044\u3066\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\u3068\u8aad\u3080\u305d\u3046\u3067\u3042\u308b\u3002web\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u52d5\u304f\u3053\u3068\u306f\u52ff\u8ad6\u3060\u304c\u3001\u305d\u306e\u4ed6, \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u306fWEB\u306e\u307f\u306a\u3089\u305a\u3001mail\u3082\u6271\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u3000\u4eca\u56deraspberry pi\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002\u3000\u5f90\u3005\u306b\u4f7f\u3044\u65b9\u3092\u899a\u3048\u3066\u3044\u304d\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u79fb\u884c\u3092\u753b\u7b56\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3046\uff08\u72d9\u3044\u306f\u7701\u96fb\u529b\u5316\uff09\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u306fPHP\u304a\u3088\u3073mysql \u3092\u4e00\u7dd2\u306b\u5b9f\u88c5\u3057 Lamp \u3067\u306f\u306a\u304f\u3001LNMP\u3068\u3057\u3066\u52d5\u304b\u3059\u3053\u3068\u3092\u3084\u3063\u3066\u307f\u308b\u3002\u3000Wikipedia\u306e\u89e3\u8aac\u306b\u3088\u308c\u3070\u975e\u540c\u671f\u306e\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u30e2\u30c7\u30eb\u3092\u4f7f\u3063\u3066\u304a\u308a\u3001\u30d7\u30ed\u30bb\u30b9\u30fb\u30b9\u30ec\u30c3\u30c9\u99c6\u52d5\u306eapache\u306a\u3069\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u6bd4\u3079\u308b\u3068\u9ad8\u8ca0\u8377\u306b\u306a\u3063\u3066\u3082\u52d5\u304d\u304c\u920d\u304f\u306a\u3089\u306a\u3044\u3001\u3068\u3044\u3046\u5229\u70b9\u304c\u3042\u308b\u3089\u3057\u3044\u3002\u306a\u3093\u3068\u306a\u304fraspberry pi \u306b\u3074\u3063\u305f\u308a\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u3088\u3046\u306a\u6c17\u304c\u3057\u3066\u304d\u305f\u304c\u3001\u5b9f\u969b\u306f\u5982\u4f55\u306b\u3002<\/p>\n<p>\u5b9f\u88c5\u5f8c\u306e\u30c6\u30b9\u30c8\u753b\u9762\u306f\u4ee5\u4e0b\u3002\u3054\u3089\u3093\u306e\u3068\u304a\u308a\u3001PHP\u304c\u5b9f\u88c5\u3067\u304d\u3001phpmyadmin\u304c\u52d5\u3044\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u8a3c\u62e0\u30b9\u30ca\u30c3\u30d7\u3002<\/p>\n<div id=\"attachment_1248\" style=\"width: 201px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.a2life.info\/w\/wp-content\/uploads\/2013\/07\/phpinfo.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1248\" class=\"size-medium wp-image-1248\" alt=\"phpinfo()\u3092RPi\u4e0a\u3067\u5b9f\u884c\u3002\" src=\"http:\/\/www.a2life.info\/w\/wp-content\/uploads\/2013\/07\/phpinfo-191x300.png\" width=\"191\" height=\"300\" srcset=\"https:\/\/www.a2life.info\/w\/wp-content\/uploads\/2013\/07\/phpinfo-191x300.png 191w, https:\/\/www.a2life.info\/w\/wp-content\/uploads\/2013\/07\/phpinfo.png 521w\" sizes=\"auto, (max-width: 191px) 100vw, 191px\" \/><\/a><p id=\"caption-attachment-1248\" class=\"wp-caption-text\">phpinfo()\u3092RPi\u4e0a\u3067\u5b9f\u884c\u3002\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u62e1\u5927\u753b\u9762\u306b\u306a\u308a\u3001raspberry pi\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u306a\u3069\u304c\u898b\u3048\u308b\u3002<\/p><\/div>\n<div id=\"attachment_1249\" style=\"width: 289px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.a2life.info\/w\/wp-content\/uploads\/2013\/07\/mysql.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1249\" class=\"size-medium wp-image-1249\" alt=\"\u4ee5\u4e0b\u306econfig file \u3092\u53c2\u7167\u3002\" src=\"http:\/\/www.a2life.info\/w\/wp-content\/uploads\/2013\/07\/mysql-279x300.png\" width=\"279\" height=\"300\" srcset=\"https:\/\/www.a2life.info\/w\/wp-content\/uploads\/2013\/07\/mysql-279x300.png 279w, https:\/\/www.a2life.info\/w\/wp-content\/uploads\/2013\/07\/mysql.png 444w\" sizes=\"auto, (max-width: 279px) 100vw, 279px\" \/><\/a><p id=\"caption-attachment-1249\" class=\"wp-caption-text\">\u4ee5\u4e0b\u306econfig file \u3092\u53c2\u7167\u3002<\/p><\/div>\n<p>\u3044\u304f\u3064\u304b\u30cd\u30c3\u30c8\u4e0a\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u305f\u304c\u3001\u30e1\u30a4\u30f3\u306f<a title=\"Tutorial 24 raspberry pi webserver\" href=\"http:\/\/raspberrypihelp.net\/tutorials\/24-raspberry-pi-webserver\" target=\"_blank\">\u3053\u3061\u3089\u306e\u8a18\u8ff0<\/a>\u306b\u5f93\u3063\u305f\u3002 \u4e0a\u8a18\u30b5\u30a4\u30c8\u306e\u30b3\u30d4\u30fc\u8a18\u8ff0\u306b\u306a\u308b\u306e\u3067\u3069\u3046\u304b\u3068\u3082\u601d\u3046\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u5b9f\u884c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3060\u3051\u7f85\u5217\u3059\u308b\u3068\u4ee5\u4e0b\u306b\u306a\u308b\u3002<br \/>\n\u306a\u304a\u3001\u30d8\u30c3\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u3092\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5165\u529b\u306f\u3059\u3079\u3066ssh\u306b\u3088\u308b\u30ea\u30e2\u30fc\u30c8\u30bf\u30fc\u30df\u30ca\u30eb\u7d4c\u7531\u3060\u3002<\/p>\n<p>mysql-server \u3092\u307e\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre><code>sudo apg-get install mysql-server [Enter]<\/code><\/pre>\n<p>mysql \u306e\u30eb\u30fc\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8981\u6c42\u3055\u308c\u308b\u306e\u3067\u5165\u529b\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3088\u3046\u3002<\/p>\n<p>\u6b21\u306bnginx\u672c\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u3000\u3068\u3053\u308d\u3067\u3001\u30b5\u30a4\u30c8\u306b\u3088\u3063\u3066\u306f\u3001\u300c\u30c7\u30a3\u30b9\u30c8\u30ed\u306b\u3064\u3044\u3066\u304f\u308bnginx\u306f0.6\u3068\u3048\u3089\u304f\u53e4\u3044\u306e\u3067\u30bd\u30fc\u30b9\u3092\u843d\u3068\u3057\u3066\u304d\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3088\u3046\u3001\u300d\u3068\u305d\u306e\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u308b\u3068\u3053\u308d\u304c\u3042\u3063\u305f\u304c\u3001apt-get update; apt-get upgrade \u5f8c\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306f1.2.1\u3067\u3042\u3063\u305f\u3002\u3000\u30bd\u30fc\u30b9\u3092\u307f\u308b\u3068\u3059\u3067\u306b1.51\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u3082\u306e\u3059\u3054\u304f\u53e4\u3044\u3001\u3068\u3044\u3046\u308f\u3051\u3067\u3082\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u54c1\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u3053\u3068\u306b\u3059\u308b\u3002\u3000\u81ea\u5206\u3082\u9f6260\u6b73\u3002\u3044\u3061\u3044\u3061\u51dd\u3063\u3066\u3044\u308b\u6642\u9593\u306f\u3082\u3046\u306a\u3044\u306e\u3067\u6b21\u306b\u6b21\u306b\u3068\u9032\u3080\u306e\u3067\u3042\u308b\u3002<\/p>\n<pre>\r\nsudo apt-get install nginx [Enter]\r\nsudo service nginx start [Enter]\r\nsudo apt-get install php5-fpm [Enter]\r\nsudo apt-get install php5-imagick [Enter]\r\nsudo apt-get install php5-curl [Enter]\r\nsudo nano \/etc\/php5\/fpm\/php.ini [Enter]\r\n<\/pre>\n<p>\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306fnano editor \u304c\u8d77\u52d5\u3059\u308b\u306e\u3067\u3001Ctl-W \u3067\u3001\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u63a2\u3057\u3001\u4fee\u6b63\u3002<br \/>\n&#8220;upload_max_filesize=2M&#8221; =&gt; &#8220;upload_max_filesize=10M&#8221;<br \/>\nDynamic Extentions \u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u3000\u4ee5\u4e0b\u3092\u8ffd\u52a0<\/p>\n<pre>\r\nextension = imagick.so\r\n<\/pre>\n<p>\u3042\u3068\u306fCtrl-O\u3000\u3067\u30bb\u30fc\u30d6\u3057\u3001Ctrl-x \u3067\u7d42\u4e86\u3002<\/p>\n<p>phpmyadmin\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>\r\nsudo apt-get install phpmyadmin [Enter]\r\n<\/pre>\n<p>Web-server selection \u306e\u753b\u9762\u3067Apache \u304b\u3000lighttpd\u304b\u3069\u3061\u3089\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3068\u3001\u3068\u805e\u3044\u3066\u304f\u308b\u304c\u3001\u3069\u3061\u3089\u3067\u3082\u306a\u3044\u306e\u3067\u3001\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3057\u3066\u304a\u304f\u3002\u3000\u6b21\u306e\u753b\u9762\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3002<\/p>\n<pre>\r\nsudo service php5-fpm restart\r\n<\/pre>\n<p>\u4ee5\u4e0a\u3059\u3079\u3066sudo \u3067\u66ab\u5b9a\u30eb\u30fc\u30c8\u6a29\u9650\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u304c\u3001\u9762\u5012\u3067\u3042\u308c\u3070\u3001sudo su \u3067\u30eb\u30fc\u30c8\u306b\u306a\u308c\u3070\u3001sudo\u306f\u7701\u3051\u308b\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u5fc5\u8981\u306a\u30b5\u30fc\u30d3\u30b9\uff08nginx,mysql,PHP5\uff09\u306f\u3059\u3079\u3066\u5c0e\u5165\u3055\u308c\u305f\u3002\u3000\u3061\u306a\u307f\u306b\u3053\u306e\u72b6\u614b\u3067RPi\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u898b\u308b\u3068&#8221;Welcome to NGinx\u201d\u3068\u3044\u3046\u7c21\u5358\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3001nginx\u304c\u7121\u4e8b\u52d5\u3044\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308b\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u72b6\u614b\u3067\u306f\u9759\u7684\u306a\u30d5\u30a1\u30a4\u30eb\u3057\u304b\u8868\u793a\u3057\u306a\u3044\u3002\u3000PHP\u30d5\u30a1\u30a4\u30eb\u3092\u8a8d\u8b58\u3055\u305b\u308b\u306b\u306fconfig file \u3092\u3044\u3058\u308b\u5fc5\u8981\u304c\u3042\u308b\u304c\u3001\u305d\u306e\u524d\u306b\u30b5\u30a4\u30c8\u7528\u306e\u30c0\u30a4\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002<br \/>\n\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b\/srv\u306b\u30d5\u30a9\u30eb\u30c0\u30fc\u30c4\u30ea\u30fc\u3092\u4f5c\u3063\u3066\u3044\u304f.<\/p>\n<pre>\r\nsudo mkdir \/srv\/www [Enter]\r\nsudo chown -R USER1:www-data \/srv\/www [Enter]\r\nsudo chmod -R 755 \/srv\/www [Enter]\r\nmkdir \/srv\/www\/site1 [Enter]\r\ncd \/srv\/www\/site1 [Enter]\r\nmkdir logs [Enter]\r\nnano logs\/access.log (\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u30ab\u30e9\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30bb\u30fc\u30d6\u3057\u3066\u5373\u30af\u30ed\u30fc\u30ba\uff09\r\nnano logs\/error.log (\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u30ab\u30e9\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30bb\u30fc\u30d6\u3057\u3066\u5373\u30af\u30ed\u30fc\u30ba\uff09\r\n<\/pre>\n<p>\u4e0a\u3067\u3084\u3063\u3066\u3044\u308b\u306e\u306f\u3001nano \u3067\u7a7a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e8c\u3064\u4f5c\u308b\u3068\u3044\u3046\u3053\u3068\u3060\u304c\u3001\u7a7a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u6280\u3068\u3057\u3066\u306f\u307b\u304b\u306b<br \/>\n<code><br \/>\ntouch filename<br \/>\n<\/code><br \/>\n\u3055\u3089\u306b\u306f<br \/>\n<code><br \/>\n> filename<br \/>\n<\/code><br \/>\n\u306a\u3093\u3066\u306e\u3082\u3042\u308b\u3002\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u306f\u7121\u5165\u529b\u3092filename\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u3001\u3068\u3044\u3046\u6280\u3067\u300120\u5e74\u524d\u306b\u611f\u5fc3\u3057\u3066\u899a\u3048\u305f\u306e\u3092\u3059\u3063\u304b\u308a\u5fd8\u308c\u3066\u305f(\u7206\uff09<\/p>\n<pre>\r\n\r\nmkdir public [Enter]\r\n<\/pre>\n<p>\u4e0a\u306e\u4f8b\u3067\u306f\u81ea\u5206\u306fUSER1\u3068\u3044\u3046\u30e6\u30fc\u30b6\u30fc\u540d\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u308b\u3068\u4eee\u5b9a\u3057,\u3000\/srv\/www\/\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u30fc\u306bsite1\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002\u3000srv\/www\/site1\/pulic\u3092\u3001\u4f5c\u308d\u3046\u3068\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u306e\u30eb\u30fc\u30c8\u3068\u3057\u3066\u3053\u3053\u306bWeb \u69cb\u9020\u3092\u5c55\u958b\u3057\u3066\u4f7f\u3046\u9b42\u80c6\u3067\u3042\u308b\u3002\u30db\u30b9\u30c8\u3067\u304d\u308b\u30b5\u30a4\u30c8\u306f\u4e00\u3064\u3060\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u5834\u5408\u306fsite2, site3\u306a\u3069\u3001\u4efb\u610f\u540d\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u3063\u3066\u5272\u308a\u5f53\u3066\u3066\u3044\u3051\u3070\u3088\u3044\u3002<br \/>\n\u6b21\u306bCONFIG FILE \u3067\u4e0a\u306e\u60c5\u5831\u3092\u3064\u306a\u304e\u5408\u308f\u305b\u308b\u308f\u3051\u3060.<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u306eCONFIG FILE \u306f\u3000\/etc\/nginx\/nginx.conf \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u3053\u308c\u306f\u3059\u3067\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u3002\u3000\u30cd\u30c3\u30c8\u4e0a\u306e\u591a\u304f\u306e\u8aac\u660e\u3067\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u3044\u3058\u308b\u3088\u3046\u306a\u5370\u8c61\u3060\u304c\u3001\u3000\u4eca\u56de\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fnginx.conf \u3092\u898b\u3066\u307f\u308b\u3068\u3001\u307b\u3068\u3093\u3069\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u3066\u30b3\u30e1\u30f3\u30c8\u3092\u629c\u304f\u3068\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u3042\u308b\u3060\u3051\u3067\u3001\u307b\u3068\u3093\u3069\u4f55\u3082\u5b9f\u969b\u306e\u30b3\u30de\u30f3\u30c9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3002\u3000\u305f\u3060\u3001web\u30b5\u30fc\u30d0\u30fc\u3092\u6307\u5b9a\u3057\u3066\u3044\u308bhttp\u30d6\u30ed\u30c3\u30af\u3092\u3088\u304f\u898b\u3066\u307f\u308b\u3068\u3000\u4ee5\u4e0b\u306e\u8a18\u8ff0\u304c\u3042\u308b\u3053\u3068\u306b\u6c17\u4ed8\u304f\u3002<\/p>\n<pre>\r\ninclude \/etc\/nginx\/sites-enabled\/\r\n<\/pre>\n<p>\u3067\u3001\u3053\u306esites-enabled \u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u773a\u3081\u3066\u307f\u308b\u3068\u3001default \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u305f\u308f\u3051\u3060\u304c\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u5b9f\u4f53\u306e\u306a\u3044\u30bd\u30d5\u30c8\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u30dd\u30a4\u30f3\u30bf\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30d5\u30a1\u30a4\u30eb\u306f\/etc\/nginx\/sites-available\/default\u3000\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3060\u3063\u305f\u308a\u3059\u308b\u3002<\/p>\n<p>\u3053\u306esites-available, sites-enabled \u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u30fc\u306fapache2 \u3067\u3082\u304a\u306a\u3058\u307f\u3067\u3001\u30b5\u30a4\u30c8\u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092sites-available \u306e\u307b\u3046\u306b\u3001one site= one file \u5358\u4f4d\u3067\u30bb\u30fc\u30d6\u3057\u3066\u304a\u304d\u3001\u3000\u6709\u52b9\u306b\u3057\u305f\u3044\u30b5\u30a4\u30c8\u306e\u307f\u3001\u30bd\u30d5\u30c8\u30ea\u30f3\u30af\u3067sites-enabled\u306b\u30bd\u30d5\u30c8\u30ea\u30f3\u30af\u3059\u308b\u3001\u3068\u3044\u3046\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u3000&#8221;welcome to nginx&#8221;\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3053\u306edefault \u306e\u4e2d\u306b\u4ee5\u4e0b\u306e\u8a18\u8ff0\u304c\u3042\u308b\u3002<\/p>\n<pre>\r\nroot \/usr\/share\/nginx\/www;\r\nindex index.html index.htm;\r\n<\/pre>\n<p>\u3053\u308c\u306f\u300c\u3053\u306e\u30b5\u30a4\u30c8\u306e\u30eb\u30fc\u30c8\u30da\u30fc\u30b8\u306f\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u306e\/usr\/share\/nginx\/www \u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u3059\u3088\u3001html \u3068htm\u306e\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u3092\u63a2\u3057\u3066\u8868\u793a\u3057\u307e\u3057\u3087\u3046\u306d\u3001\u300d\u3068\u8a00\u3063\u3066\u3044\u308b\u3002\u3000\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u307f\u3066\u307f\u308b\u3068\u3001index.html\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u304a\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u305d\u306e\u4e2d\u8eab\u3092\u307f\u308b\u3068\u3001\u3084\u306f\u308a&#8221;welcom to nginx&#8221;\u3068html \u3067\u66f8\u3044\u3066\u3042\u308b\u308f\u3051\u3060\u3002<br \/>\n\u4eca\u56de\u306f\/srv\/www\/site1\/public\/\u3092\u30eb\u30fc\u30c8\u306b\u3057\u3088\u3046\u3068\u304a\u3082\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5225\u306econfig \u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308a\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092sites-available\u306b\u30bb\u30fc\u30d6\u3057\u3001\u30bd\u30d5\u30c8\u30ea\u30f3\u30af\u3067sites-enable\u306b\u767b\u9332\u3059\u308b\u3068\u3044\u3046\u4f5c\u696d\u3092\u884c\u3046\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092site1\u3068\u3057\u3066\u8a71\u3092\u9032\u3081\u308b\u3002<\/p>\n<pre>\r\nsudo nano \/etc\/nginx\/sites-available\/site1 [Enter]\r\n<\/pre>\n<p>\u5b9f\u969b\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<pre>\r\nserver {\r\naccess_log \/srv\/www\/site1\/logs\/access.log;\r\nerror_log \/srv\/www\/site1\/logs\/error.log;\r\nroot \/srv\/www\/site1\/public\/;\r\nlocation \/ {\r\nindex index.php index.html index.htm;\r\ntry_files $uri $uri\/ \/index.php?$args;\r\n}\r\nlocation ~ \\.php$ {\r\ninclude \/etc\/nginx\/fastcgi_params;\r\nfastcgi_pass unix:\/var\/run\/php5-fpm.sock;\r\nfastcgi_index index.php;\r\nfastcgi_param SCRIPT_FILENAME \/srv\/www\/site1\/public$fastcgi_script_name;\r\n}\r\nlocation \/phpmyadmin {\r\nroot \/usr\/share\/;\r\nindex index.php index.html index.htm;\r\nlocation ~ ^\/phpmyadmin\/(.+\\.php)$ {\r\ntry_files $uri =404;\r\nroot \/usr\/share\/;\r\nfastcgi_pass unix:\/var\/run\/php5-fpm.sock;\r\nfastcgi_index index.php;\r\nfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\ninclude \/etc\/nginx\/fastcgi_params;\r\n}\r\nlocation ~* ^\/phpmyadmin\/(.+\\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {\r\nroot \/usr\/share\/;\r\n}\r\n}\r\nlocation \/phpMyAdmin {\r\nrewrite ^\/* \/phpmyadmin last;\r\n}\r\n}\r\n<\/pre>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30bd\u30d5\u30c8\u30ea\u30f3\u30af\u3059\u308b\u3064\u3044\u3067\u306bdefault\u3092sites-enabled \u304b\u3089\u524a\u9664\uff08\u30ea\u30f3\u30af\u3092\u89e3\u9664\uff09\u3000\u3055\u3089\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u30b9\u30bf\u30fc\u30c8<\/p>\n<pre>\r\nsudo ln -s \/etc\/nginx\/sites-available\/site1 \/etc\/nginx\/sites-enabled\/site1\r\nsudo rm \/etc\/nginx\/sites-enabled\/default\r\nsudo nginx restart\r\n<\/pre>\n<p>\u307e\u3060\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u306f\u30da\u30fc\u30b8\u3092\u3064\u304f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u4f55\u3082\u8868\u793a\u3057\u306a\u3044\u3002\u3000phpinfo()\u3000\u3068\u3044\u3046php\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u30bb\u30fc\u30d6\u3059\u308b\u3002<\/p>\n<pre>\r\nnano \/srv\/www\/site1\/public\/index.php\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u4e00\u884c\u3092\u8a18\u8ff0<\/p>\n<pre>\r\n&lt;php? phpinfo(); ?&gt;\r\n<\/pre>\n<p>ctl-o \u3067\u66f8\u304d\u8fbc\u307f\u3001ctl-x \u3067\u30af\u30ed\u30fc\u30ba<\/p>\n<p>\u30ad\u30fc\u30dc\u30fc\u30c9\u3001\u30e2\u30cb\u30bf\u30fc\u4ed8\u304d\u306eRPi\u306a\u3089\u3001\u3042\u3068\u306f&#8221;localhost&#8221;\u3068\u30d6\u30e9\u30a6\u30b6\u306b\u6253\u3061\u8fbc\u3080\u308f\u3051\u3060\u304c\u3001\u5916\u90e8\u306e\u30de\u30b7\u30f3\u304b\u3089\u306e\u30d6\u30e9\u30a6\u30b6\u30a2\u30af\u30bb\u30b9\u3092\u3059\u308b\u5834\u5408\u306b\u306fIP\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u81ea\u5206\u306e\u74b0\u5883\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u3067bind9\u3068\u3044\u3046DNS\u3092\u3046\u3054\u304b\u3057\u3066\u3044\u308b\u3002\u3053\u3053\u306b192.168.1.97\u3068\u3044\u3046\u30ed\u30fc\u30ab\u30eb\u56fa\u5b9aIP\u3092raspberrypi.home.lan\u3068\u3044\u3046\u30c9\u30e1\u30a4\u30f3\u30cd\u30fc\u30e0\u3068\u3057\u3066\u767b\u9332\u3057\u305f\u3002\u65e9\u901f\u3053\u308c\u3092\u4f7f\u3063\u3066\u3000http:\/\/raspberrypi.home.lan\u3068\u5165\u529b\u3059\u308b\u3068\u4e00\u756a\u4e0a\u306e\u753b\u9762\u304c\u51fa\u3066\u304d\u305f\u3002\u3000\u3055\u3089\u306b http:\/\/raspberrypi.homel.lan\/phpmyadmin \u3068\u5165\u529b\u3057\u3066phpMyadmin\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u51fa\u305f\u3002\u3000\u3053\u306e\u30a2\u30d7\u30ea\u306fPHP\u3067\u52d5\u304f\u306e\u3067\u3001PHP\u306e\u4f5c\u52d5\u78ba\u8a8dOK.\u3000\u3055\u3089\u306b\u3000\u30ed\u30b0\u30a4\u30f3\u3057\u3066mysql \u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3082\u3061\u3083\u3093\u3068\u4f7f\u3048\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u672c\u65e5\u306e\u3068\u3053\u308d\u306f\u7d42\u4e86\u3002\u3000config \u306e\u90e8\u5206\u306b\u3064\u3044\u3066\u306fnginx.org\/document\/ \u306e\u30d3\u30ae\u30ca\u30fc\u30ba\u30ac\u30a4\u30c9\u304c\u975e\u5e38\u306b\u53c2\u8003\u306b\u306a\u3063\u305f\u3002<br \/>\n\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306fserver_name \u306a\u3069\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308b\u306f\u305a\u306a\u306e\u3067\u3001\u4eca\u5f8c\u307c\u3061\u307c\u3061\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3046\u3002\u7406\u5c48\u3068\u3057\u3066\u306f\u3053\u308c\u3067WordPress \u306a\u3069\u306eCMS\u3082\u5c0e\u5165\u53ef\u80fd\u306b\u306a\u3063\u305f\u306f\u305a\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>nginx\u3068\u66f8\u3044\u3066\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\u3068\u8aad\u3080\u305d\u3046\u3067\u3042\u308b\u3002web\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u52d5\u304f\u3053\u3068\u306f\u52ff\u8ad6\u3060\u304c\u3001\u305d\u306e\u4ed6, \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u306fWEB\u306e\u307f\u306a\u3089\u305a\u3001mail\u3082\u6271\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u3000\u4eca\u56deraspberry pi\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002\u3000\u5f90\u3005\u306b\u4f7f\u3044\u65b9\u3092\u899a\u3048\u3066\u3044\u304d\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u79fb\u884c\u3092\u753b\u7b56\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3046\uff08\u72d9\u3044\u306f\u7701\u96fb\u529b\u5316\uff09\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u306fPHP\u304a\u3088\u3073mysql \u3092\u4e00\u7dd2\u306b\u5b9f\u88c5\u3057 Lamp \u3067\u306f\u306a\u304f\u3001LNMP\u3068\u3057\u3066\u52d5\u304b\u3059\u3053\u3068\u3092\u3084\u3063\u3066\u307f\u308b\u3002\u3000Wikipedia\u306e\u89e3\u8aac\u306b\u3088\u308c\u3070\u975e\u540c\u671f\u306e\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u30e2\u30c7\u30eb\u3092\u4f7f\u3063\u3066\u304a\u308a\u3001\u30d7\u30ed\u30bb\u30b9\u30fb\u30b9\u30ec\u30c3\u30c9\u99c6\u52d5\u306eapache\u306a\u3069\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u6bd4\u3079\u308b\u3068\u9ad8\u8ca0\u8377\u306b\u306a\u3063\u3066\u3082\u52d5\u304d\u304c\u920d\u304f\u306a\u3089\u306a\u3044\u3001\u3068\u3044\u3046\u5229\u70b9\u304c\u3042\u308b\u3089\u3057\u3044\u3002\u306a\u3093\u3068\u306a\u304fraspberry pi \u306b\u3074\u3063\u305f\u308a\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u3088\u3046\u306a\u6c17\u304c\u3057\u3066\u304d\u305f\u304c\u3001\u5b9f\u969b\u306f\u5982\u4f55\u306b\u3002 \u5b9f\u88c5\u5f8c\u306e\u30c6\u30b9\u30c8\u753b\u9762\u306f\u4ee5\u4e0b\u3002\u3054\u3089\u3093\u306e\u3068\u304a\u308a\u3001PHP\u304c\u5b9f\u88c5\u3067\u304d\u3001phpmyadmin\u304c\u52d5\u3044\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u8a3c\u62e0\u30b9\u30ca\u30c3\u30d7\u3002 \u3044\u304f\u3064\u304b\u30cd\u30c3\u30c8\u4e0a\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u305f\u304c\u3001\u30e1\u30a4\u30f3\u306f\u3053\u3061\u3089\u306e\u8a18\u8ff0\u306b\u5f93\u3063\u305f\u3002 \u4e0a\u8a18\u30b5\u30a4\u30c8\u306e\u30b3\u30d4\u30fc\u8a18\u8ff0\u306b\u306a\u308b\u306e\u3067\u3069\u3046\u304b\u3068\u3082\u601d\u3046\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u5b9f\u884c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3060\u3051\u7f85\u5217\u3059\u308b\u3068\u4ee5\u4e0b\u306b\u306a\u308b\u3002 \u306a\u304a\u3001\u30d8\u30c3\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u3092\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5165\u529b\u306f\u3059\u3079\u3066ssh\u306b\u3088\u308b\u30ea\u30e2\u30fc\u30c8\u30bf\u30fc\u30df\u30ca\u30eb\u7d4c\u7531\u3060\u3002 mysql-server \u3092\u307e\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb sudo apg-get install mysql-server [Enter] mysql \u306e\u30eb\u30fc\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8981\u6c42\u3055\u308c\u308b\u306e\u3067\u5165\u529b\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3088\u3046\u3002 \u6b21\u306bnginx\u672c\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u3000\u3068\u3053\u308d\u3067\u3001\u30b5\u30a4\u30c8\u306b\u3088\u3063\u3066\u306f\u3001\u300c\u30c7\u30a3\u30b9\u30c8\u30ed\u306b\u3064\u3044\u3066\u304f\u308bnginx\u306f0.6\u3068\u3048\u3089\u304f\u53e4\u3044\u306e\u3067\u30bd\u30fc\u30b9\u3092\u843d\u3068\u3057\u3066\u304d\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3088\u3046\u3001\u300d\u3068\u305d\u306e\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u308b\u3068\u3053\u308d\u304c\u3042\u3063\u305f\u304c\u3001apt-get update; apt-get upgrade \u5f8c\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306f1.2.1\u3067\u3042\u3063\u305f\u3002\u3000\u30bd\u30fc\u30b9\u3092\u307f\u308b\u3068\u3059\u3067\u306b1.51\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u3082\u306e\u3059\u3054\u304f\u53e4\u3044\u3001\u3068\u3044\u3046\u308f\u3051\u3067\u3082\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u54c1\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u3053\u3068\u306b\u3059\u308b\u3002\u3000\u81ea\u5206\u3082\u9f6260\u6b73\u3002\u3044\u3061\u3044\u3061\u51dd\u3063\u3066\u3044\u308b\u6642\u9593\u306f\u3082\u3046\u306a\u3044\u306e\u3067\u6b21\u306b\u6b21\u306b\u3068\u9032\u3080\u306e\u3067\u3042\u308b\u3002 sudo apt-get install nginx [Enter] sudo service nginx start [Enter] sudo apt-get install php5-fpm [Enter] sudo apt-get install php5-imagick [Enter] sudo apt-get install php5-curl [Enter] sudo nano \/etc\/php5\/fpm\/php.ini [Enter] \u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306fnano editor \u304c\u8d77\u52d5\u3059\u308b\u306e\u3067\u3001Ctl-W \u3067\u3001\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u63a2\u3057\u3001\u4fee\u6b63\u3002 &#8220;upload_max_filesize=2M&#8221; =&gt; &#8220;upload_max_filesize=10M&#8221; Dynamic Extentions \u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u3000\u4ee5\u4e0b\u3092\u8ffd\u52a0 extension = imagick.so \u3042\u3068\u306fCtrl-O\u3000\u3067\u30bb\u30fc\u30d6\u3057\u3001Ctrl-x \u3067\u7d42\u4e86\u3002 phpmyadmin\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb sudo apt-get install phpmyadmin [Enter] Web-server selection \u306e\u753b\u9762\u3067Apache \u304b\u3000lighttpd\u304b\u3069\u3061\u3089\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3068\u3001\u3068\u805e\u3044\u3066\u304f\u308b\u304c\u3001\u3069\u3061\u3089\u3067\u3082\u306a\u3044\u306e\u3067\u3001\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3057\u3066\u304a\u304f\u3002\u3000\u6b21\u306e\u753b\u9762\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3002 sudo service php5-fpm restart \u4ee5\u4e0a\u3059\u3079\u3066sudo \u3067\u66ab\u5b9a\u30eb\u30fc\u30c8\u6a29\u9650\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u304c\u3001\u9762\u5012\u3067\u3042\u308c\u3070\u3001sudo su \u3067\u30eb\u30fc\u30c8\u306b\u306a\u308c\u3070\u3001sudo\u306f\u7701\u3051\u308b\u3002 \u3053\u3053\u307e\u3067\u3067\u5fc5\u8981\u306a\u30b5\u30fc\u30d3\u30b9\uff08nginx,mysql,PHP5\uff09\u306f\u3059\u3079\u3066\u5c0e\u5165\u3055\u308c\u305f\u3002\u3000\u3061\u306a\u307f\u306b\u3053\u306e\u72b6\u614b\u3067RPi\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u898b\u308b\u3068&#8221;Welcome to NGinx\u201d\u3068\u3044\u3046\u7c21\u5358\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3001nginx\u304c\u7121\u4e8b\u52d5\u3044\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308b\u3002 \u305f\u3060\u3057\u3001\u3053\u306e\u72b6\u614b\u3067\u306f\u9759\u7684\u306a\u30d5\u30a1\u30a4\u30eb\u3057\u304b\u8868\u793a\u3057\u306a\u3044\u3002\u3000PHP\u30d5\u30a1\u30a4\u30eb\u3092\u8a8d\u8b58\u3055\u305b\u308b\u306b\u306fconfig file \u3092\u3044\u3058\u308b\u5fc5\u8981\u304c\u3042\u308b\u304c\u3001\u305d\u306e\u524d\u306b\u30b5\u30a4\u30c8\u7528\u306e\u30c0\u30a4\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002 \u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b\/srv\u306b\u30d5\u30a9\u30eb\u30c0\u30fc\u30c4\u30ea\u30fc\u3092\u4f5c\u3063\u3066\u3044\u304f. sudo mkdir \/srv\/www [Enter] sudo chown -R USER1:www-data \/srv\/www [Enter] sudo chmod -R 755 \/srv\/www &hellip; <a href=\"https:\/\/www.a2life.info\/w\/?p=1247\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,3,18],"tags":[40,39],"class_list":["post-1247","post","type-post","status-publish","format-standard","hentry","category-php","category-web-making","category-18","tag-raspberry-pi","tag-rpi"],"_links":{"self":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/1247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1247"}],"version-history":[{"count":17,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions"}],"predecessor-version":[{"id":1255,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions\/1255"}],"wp:attachment":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}