{"id":10507,"date":"2021-05-13T11:04:18","date_gmt":"2021-05-13T02:04:18","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=10507"},"modified":"2021-07-04T21:16:53","modified_gmt":"2021-07-04T12:16:53","slug":"post-10507","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2021\/05\/13\/post-10507.html","title":{"rendered":"Termux\u3067NGINX+php-fpm+mariadb\u3092\u52d5\u304b\u3059\u5177\u4f53\u7684\u306a\u8a2d\u5b9a\u4f8b"},"content":{"rendered":"\n
\n\"\u3058\u3083\u3093\u304f\u306f\u3063\u304f\"\n<\/div><\/div><\/div>
\u3058\u3083\u3093\u304f\u306f\u3063\u304f<\/div><\/div>
<\/svg><\/div>
\n

\u4eca\u65e5\u3082Termux\u3068WordPress\u89e6\u3063\u3066\u3044\u304f\u3088\u301c\uff01<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\n\n\n

<\/svg><\/div>
\n

\u4eca\u65e5\u306f\u4f55\u3059\u308b\u3093\u3067\u3059\u304b\u301c\uff1f<\/p>\n<\/div><\/div><\/div><\/div><\/div>

\n\"\u3074\u30fc\"\n<\/div><\/div><\/div>
\u3074\u30fc<\/div><\/div><\/div><\/div><\/div>\n\n\n\n
\n\"\u3058\u3083\u3093\u304f\u306f\u3063\u304f\"\n<\/div><\/div><\/div>
\u3058\u3083\u3093\u304f\u306f\u3063\u304f<\/div><\/div>
<\/svg><\/div>
\n

\u4e00\u6642\u7684\u306bPixel3\u304b\u3089UmidigiF2\u3078\u30b9\u30de\u30db\u30b5\u30fc\u30d0\u3092\u79fb\u52d5\u3057\u3088\u3046\u3068\u601d\u3063\u3066\u8a2d\u5b9a\u3092\u7e8f\u3081\u3066\u304a\u3044\u305f\uff01<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\n\n\n

<\/svg><\/div>
\n

\u8a2d\u5b9a\u306e\u5099\u5fd8\u9332\u3067\u3059\u306d\uff01<\/p>\n<\/div><\/div><\/div><\/div><\/div>

\n\"\u3074\u30fc\"\n<\/div><\/div><\/div>
\u3074\u30fc<\/div><\/div><\/div><\/div><\/div>\n\n\n\n

\u3055\u3066\u3001\u6700\u8fd1\u8a18\u4e8b\u3092\u30b5\u30dc\u308a\u304c\u3061\u3067\u3057\u305f\u304c\u30b3\u30e1\u30f3\u30c8\u306b\u3066\u3001\u300cTermux\u3067WordPress\u3092\u52d5\u304b\u3059\u5177\u4f53\u7684\u306a\u8a2d\u5b9a\u4f8b\u300d\u304c\u898b\u305f\u3044\u3068\u3054\u610f\u898b\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u81ea\u5206\u306e\u30e1\u30e2\u304c\u3066\u3089\u7e8f\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\u307e\u305a\u306fUmidigiF2\u306e\u96fb\u6c60\u4ea4\u63db<\/h3>\n\n\n\n

\u30a2\u30ea\u30a8\u30af\uff1aUmidigiF2 \u30d0\u30c3\u30c6\u30ea\u30fc\uff08\u8cfc\u5165\u6642\u306f1,283\u5186\uff09<\/p>Link<\/a><\/cite><\/blockquote>\n\n\n\n

UmidigiF2\u306e\u96fb\u6c60\u304c\u81a8\u3089\u3093\u3067\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u30a2\u30ea\u30a8\u30af\u3067\u8cb7\u3063\u305fUmidigiF2\u306e\u96fb\u6c60\u306b\u4ea4\u63db\u3057\u307e\u3059\u3002\u88cf\u84cb\u306f\u7c98\u7740\u30c6\u30fc\u30d7\u3067\u8cbc\u308a\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u30ab\u30fc\u30c9\u3068\u304b\u30d4\u30c3\u30af\u3067\u5206\u96e2\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

NFC\u3084\u30ab\u30e1\u30e9\u90e8\u5206\u304c\u30d7\u30e9\u30b9\u30c6\u30a3\u30c3\u30af\u90e8\u54c1\u3067\u56fa\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5468\u308a\u306e\u30cd\u30b8\uff11\uff11\u672c\u3092\u5916\u3057\u3066\u30d0\u30c3\u30c6\u30ea\u30fc\u30b3\u30cd\u30af\u30bf\u3092\u5916\u305b\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u30d0\u30c3\u30c6\u30ea\u30fc\u306e\u88cf\u306f\u900f\u660e\u306a\u30d5\u30a3\u30eb\u30e0\u3067\u5265\u304c\u305b\u308b\u3088\u3046\u5de5\u592b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3088\u304f\u5207\u308c\u308b\u30c6\u30fc\u30d7\u3068\u304b\u306f\u4f7f\u308f\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u4ea4\u63db\u81ea\u4f53\u306fPixel3\u3068\u304b\u3068\u6bd4\u3079\u308b\u3068\u975e\u5e38\u306b\u697d\u3067\u3059\u306d\u3002\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306f\u826f\u3044\u3067\u3059\u3002\u3042\u3068\u306f\u4e21\u9762\u30c6\u30fc\u30d7\u3092\u8cbc\u308a\u76f4\u3057\u3066\u88cf\u30d5\u30bf\u3092\u56fa\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n

\u3000\u3055\u3066\u3068\u3001\u3067\u306f\u9762\u5012\u306a\u8a2d\u5b9a\u307e\u3068\u3081\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

Termux\u3092\u5165\u308c\u3066\u30a2\u30d7\u30ea\u3092\u8a2d\u5b9a<\/h3>\n\n\n\n

Termux\u306b\u3064\u3044\u3066\u306f\u3001Google Play Store\u304b\u3089\u5165\u308c\u307e\u3059\u3002root\u5316\u3057\u3066\u3044\u306a\u304f\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u304c\u3001\u30dd\u30fc\u30c8\u5236\u9650\u304c\u3042\u308b\u306e\u30671024\u30dd\u30fc\u30c8\u4ee5\u4e0a\u3067\u306a\u3044\u3068WEB\u30b5\u30fc\u30d0\u306f\u516c\u958b\u3067\u304d\u306a\u3044\u4ed5\u69d8\u3067\u3059\u3002<\/p>\n\n\n\n

Termux\uff1aGoogle Play Store<\/p>URL<\/a><\/cite><\/blockquote>\n\n\n\n

\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u8a2d\u5b9a\u3057\u305f\u307b\u3046\u304c\u697d\u306a\u306e\u3067\u3001\u6700\u4f4e\u9650SSH\u3092\u5165\u308c\u3066\u8d77\u52d5\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

pkg update \npkg install openssh\nsshd\npasswd<\/code><\/pre>\n\n\n\n

\u3042\u3068\u306f\u30ea\u30e2\u30fc\u30c8\u304b\u3089SSH\u63a5\u7d9a\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u9762\u5012\u3067\u306a\u3051\u308c\u3070SSH\u9375\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u3044\u3066\u3082OK\u3067\u3059\u3002<\/p>\n\n\n\n

ssh termux_host_ip<\/em> -p 8022<\/code><\/pre>\n\n\n\n

\u4ed6\u3001\u30a2\u30d7\u30eaNGINX+php-fpm+mariadb\u3082\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

pkg install nginx php-fpm mariadb<\/code><\/pre>\n\n\n\n

\u3069\u3093\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5165\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

dpkg -l | egrep 'nginx|php|mariadb'<\/code><\/pre>\n\n\n\n

\u73fe\u6642\u70b9\u30012021\/05\/11\u3000\u6642\u70b9\u3067\u306f\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306a\u308a\u307e\u3057\u305f<\/p>\n\n\n\n

$ dpkg -l | egrep 'nginx|php|mariadb'\nii  mariadb                    2:10.5.8       aarch64      A drop-in replacement for mysql server\nii  nginx                      1.20.0         aarch64      Lightweight HTTP server\nii  php                        8.0.6          aarch64      Server-side, HTML-embedded scripting language\nii  php-fpm                    8.0.6          aarch64      FastCGI Process Manager for PHP<\/code><\/pre>\n\n\n\n

2020\/10\u9803\u306f\u3001PHP\u304c7.4.x\u3060\u3063\u305f\u306e\u3067ver8\u7cfb\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002PHP8\u306e\u65b0\u6a5f\u80fd\u306f\u3053\u3053<\/a>\u53c2\u7167\u3002<\/p>\n\n\n\n

PHP7\u304c\u826f\u3044\u5834\u5408\u306f\u3001\u3053\u3053<\/a>\u306bdebfile\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002Wordpress\u3092\u52d5\u304b\u3059\u5834\u5408\u306fPHP7.4.12\u306e\u307b\u3046\u304c\u7121\u96e3\u304b\u3082\u3002\u3042\u3068\u3067\u691c\u8a3c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n

\u3000\u203b\u8ffd\u8a18<\/p>\n\n\n\n

\u4e0a\u8a18\u306edebfile \u3060\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u52d5\u4f5c\u3057\u306a\u3044\u3088\u3046\u3067\u3057\u305f\u306e\u3067\u3001\u30d3\u30eb\u30c9\u3057\u306a\u304a\u3057\u307e\u3057\u305f\u3002\u3053\u3053<\/a>\u53c2\u7167<\/p>\n\n\n\n

NGINX\u306e\u8a2d\u5b9a<\/h3>\n\n\n\n

\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306bWEB\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8ROOT\u3092\u4f5c\u308a\u307e\u3059\u3002\u3069\u3053\u3067\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001termux\u306e$HOME\u306b\u4f5c\u308a\u307e\u3059\u3002\u81ea\u5206\u306e\u5834\u5408\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eWEB ROOT\uff08htdocs_default\uff09\u3068\u3001hack.gpl.jp\u3000\u30c9\u30e1\u30a4\u30f3\u306eWEB ROOT\uff08htdocs_nginx\uff09\u3092\u5206\u96e2\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

$ echo $HOME\n\/data\/data\/com.termux\/files\/home\n$ cd\n$pwd\n\/data\/data\/com.termux\/files\/home\n$ mkdir htdocs_nginx\n$ mkdir htdocs_default<\/code><\/pre>\n\n\n\n

\u3042\u3068\u3001SSL\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3057\u3066\u304a\u304f\u306e\u3067\u305d\u308c\u5c02\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u4f5c\u3063\u3066\u304a\u304d\u307e\u3059\u3002SSL\u95a2\u9023\u306f\u4ee5\u4e0b\u3092\u53c2\u7167<\/p>\n\n\n\n

Termux\u30cd\u30a4\u30c6\u30a3\u30d6\u74b0\u5883\u3067acme-nginx\u3092\u4f7f\u3044\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u8a3c\u660e\u66f8\u3092\u81ea\u52d5\u53d6\u5f97\uff01<\/p>LINK<\/a><\/cite><\/blockquote>\n\n\n\n

$ cd\n$ mkdir -p ssl\/gpl.jp\/ \n$ tree ssl\nssl\n\u2514\u2500\u2500 gpl.jp<\/code><\/pre>\n\n\n\n

NGINX\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002conf.d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5206\u96e2\u3057\u3066\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u306e\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u4f5c\u3063\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ cd\n$ cd ..\/usr\/etc\/nginx\/\n$ mkdir conf.d<\/code><\/pre>\n\n\n\n

\u30aa\u30ea\u30b8\u30ca\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304d\u307e\u3059\u3002UNIX\u7cfb\u3067\u306fDiff\u53d6\u3063\u305f\u308a\u3057\u3066\u78ba\u8a8d\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u6d88\u3059\u3088\u308a\u5f85\u907f\u3059\u308b\u7656\u3092\u3064\u3051\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u7121\u96e3\u3067\u3059\u3002\u81ea\u5206\u306e\u5834\u5408\u306f\u3001_org\u3000\u304c\u5143\u3042\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u3068\u3044\u3046\u610f\u5473\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

$ cp -p nginx.conf nginx.conf_org<\/code><\/pre>\n\n\n\n

\u4eca\u56de\u306e\u8a2d\u5b9a\u4f8b\u3067\u306f\u3001root\u5316\u3057\u3066\u3042\u308b\u7aef\u672b\u306a\u306e\u3067\u3001\u30dd\u30fc\u30c8\u306f80\u3068443\u306b\u3057\u3066\u3044\u307e\u3059\u3002root\u5316\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u7a0b\u3088\u304f\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002
nginx.conf\u3000\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002user\u306f\u3001termux\u3092\u5165\u308c\u305f\u74b0\u5883\u306b\u3088\u3063\u3066\u9055\u3044\u307e\u3059\u306e\u3067 whoami\u3084id\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

user  u0_a143;\nworker_processes  auto;\nworker_rlimit_nofile 4096;\n\nerror_log  \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/error.log;\n#error_log  logs\/error.log  notice;\n#error_log  logs\/error.log  info;\n\n#pid        logs\/nginx.pid;\n\n\nevents {\n    use epoll;\n    multi_accept on;\n    worker_connections  1024;\n}\n\n\nhttp {\n    include       mime.types;\n    default_type text\/plain;\n\n    charset            utf-8;\n    sendfile           on;\n    tcp_nopush         on;\n    tcp_nodelay        on;\n    server_tokens      off;\n    keepalive_requests 100;\n    keepalive_timeout  3;\n\n    server_names_hash_bucket_size 64;\n    types_hash_max_size 2048;\n    client_body_buffer_size 64k;\n    client_body_temp_path \/data\/data\/com.termux\/files\/home\/htdocs_default\/tmp\/client_body_temp 1 2;\n\t\n    log_format  main  '$remote_addr - $remote_user [$time_local] \"$request\" '\n                      '$status $body_bytes_sent \"$http_referer\" '\n                      '\"$http_user_agent\" \"$http_x_forwarded_for\"';\n\n    access_log  \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/access.log  main;\n\n    gzip  on;\n    gzip_vary       on;\n    gzip_proxied    any;\n    gzip_comp_level 6;\n    gzip_types      text\/plain text\/css text\/xml text\/javascript\n                    application\/json application\/javascript application\/x-javascript\n                    application\/xml application\/rss+xml application\/atom+xml\n                    image\/svg+xml image\/x-icon;\n\n    ssl_session_timeout 30m;\n    ssl_session_cache   shared:SSL:10m;\n    ssl_session_tickets off;\n    ssl_protocols TLSv1.2 TLSv1.3;\n    ssl_prefer_server_ciphers on;\n    ssl_dhparam \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/dhparam.pem;\n    ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256;\n\n    fastcgi_buffers         8 64k;\n    fastcgi_buffer_size     64k;\n    fastcgi_connect_timeout 60;\n    fastcgi_send_timeout    60;\n    fastcgi_read_timeout    300;\n\n    proxy_connect_timeout 60;\n    proxy_send_timeout    60;\n    proxy_read_timeout    120;\n    proxy_http_version    1.1;\n    proxy_cache_bypass    $http_upgrade;\n    proxy_set_header      Upgrade            $http_upgrade;\n    proxy_set_header      Connection         \"upgrade\";\n    proxy_set_header      Host               $host;\n    proxy_set_header      X-Real-IP          $remote_addr;\n    proxy_set_header      X-Forwarded-Host   $host;\n    proxy_set_header      X-Forwarded-Server $host;\n    proxy_set_header      X-Forwarded-For    $proxy_add_x_forwarded_for;\n    proxy_set_header      X-Forwarded-Proto  $scheme;\n    #proxy_set_header      X-Forwarded-Port   $server_port;\n    proxy_set_header      X-Forwarded-Port   443;\n    proxy_temp_path       \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/tmp;\n\t\n    ## cache_path\u306b\u3064\u3044\u3066\u306f\u5225\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3059\u308b\n    include \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/cache_path.conf;\n\t\t\n    server {\n        listen *:80 default_server;\n        server_name  _;\n\t\troot   \/data\/data\/com.termux\/files\/home\/htdocs_default;\n\n\t\tcharset utf-8;\n\n\t\taccess_log  \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/host.access.log  combined;\n\t\terror_log  \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/host.error.log warn;\n\n\t    index index.html;\n\t    include \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/common.conf;\n\n\t}\n\n\tinclude \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/hack.gpl.jp.conf;\n\tinclude \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/gpl.jp.conf;\n\t\n}<\/code><\/pre>\n\n\n\n

SSL\u306edhparam\u306f\u3001\u4ee5\u4e0b\u3067\u51fa\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3053\u306e\u610f\u5473\u306b\u3064\u3044\u3066\u306f\u3053\u3053\u53c2\u7167<\/a>\u3002<\/p>\n\n\n\n

openssl dhparam -out \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/dhparam.pem 2048<\/code><\/pre>\n\n\n\n

\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

conf.d\/cache_path.conf
conf.d\/common.conf
conf.d\/hack.gpl.jp.conf
conf.d\/gpl.jp.conf<\/p><\/blockquote>\n\n\n\n

\u307e\u305a\u3001cache_path.conf \u306e\u8a2d\u5b9a\u3067\u3059\u3002\u30ad\u30e3\u30c3\u30b7\u30e5\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

mkdir -p \/data\/data\/com.termux\/files\/home\/cache\/hackgpljp\nmkdir -p \/data\/data\/com.termux\/files\/home\/cache\/proxy.gpljp\nmkdir -p \/data\/data\/com.termux\/files\/home\/cache\/wwwgpljp<\/code><\/pre>\n\n\n\n

cache_path.conf<\/p>\n\n\n\n

location ~ \/. {\n\n## php-fpm\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f5c\u308b\u6642\nfastcgi_cache_path \/data\/data\/com.termux\/files\/home\/cache\/hackgpljp levels=1:2 keys_zone=gpljp:30m inactive=600m max_size=10g;\n## proxy\u7d4c\u7531\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f5c\u308b\u6642\nproxy_cache_path \/data\/data\/com.termux\/files\/home\/cache\/proxy.gpljp levels=1:2 keys_zone=proxy_gpljp:30m inactive=600m max_size=10g;\n\n# www.gpl.jp or gpl.jp\nfastcgi_cache_path \/data\/data\/com.termux\/files\/home\/cache\/wwwgpljp levels=1:2 keys_zone=wwwgpljp:18m inactive=5m max_size=10g;<\/code><\/pre>\n\n\n\n

common.conf\u3000\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n\n\n\n

## .htpasswd\u3068\u304b . \u304b\u3089\u59cb\u307e\u308b\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f404\u3067\u5fdc\u7b54\n## 403\u3060\u3068\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u306e\u304c\u5916\u304b\u3089\u308f\u304b\u3063\u3066\u3057\u307e\u3046\nlocation ~ \/. {\n    return 404;\n}\n \n## \u30d5\u30a1\u30a4\u30eb\u304c\u7121\u304f\u3066\u3082\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u51fa\u3055\u306a\u3044\nlocation ~ \/(favicon.ico|apple-touch-icon-*) {\n    log_not_found  off;\n    access_log  off;\n}<\/code><\/pre>\n\n\n\n

\u3053\u306e\u30b5\u30a4\u30c8\u306e\u30e1\u30a4\u30f3\u8a2d\u5b9a hack.gpl.jp.conf \u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n\n\n\n

server {\n    listen      80;\n    server_name jh.gpl.jp hack.gpl.jp hack.gpl.jp;\n\n    root   \/data\/data\/com.termux\/files\/home\/htdocs_nginx;\n\n    access_log  \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/hackgpljp.access.log  combined;\n    error_log  \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/hackgpljp.error.log warn;\n\n    client_max_body_size 20M;\n    ## \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u8a2d\u5b9a\uff1a\u6709\u52b9 -> 0 \u7121\u52b9 -> 1\n    set $do_not_cache 0;\n    ## \u30ad\u30fc\u30be\u30fc\u30f3\u540d\n    set $keys_zone gpljp;\n\t\n    include \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/common.conf;\n    include \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/hackgpljp_wp.conf;\n    include \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/add_header.conf;\n}\n \nserver {\n     listen      443 ssl http2;\n     server_name jh.gpl.jp hack.gpl.jp hack.gpl.jp;\n     root   \/data\/data\/com.termux\/files\/home\/htdocs_nginx;\n\n     access_log  \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/ssl_hackgpljp.access.log  combined;\n     error_log  \/data\/data\/com.termux\/files\/usr\/var\/log\/nginx\/ssl_hackgpljp.error.log warn;\n\n     client_max_body_size 20M;\n     ## \u30b5\u30a4\u30c8\u306eSSL\u8a3c\u660e\u66f8\n     ssl_certificate     \/data\/data\/com.termux\/files\/home\/ssl\/gpl.jp\/gpl.jp.crt;\n     ssl_certificate_key \/data\/data\/com.termux\/files\/home\/ssl\/gpl.jp\/gpl.jp.key;\n\n     ## \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u8a2d\u5b9a\uff1a\u6709\u52b9 -> 0 \u7121\u52b9 -> 1\n     set $do_not_cache 0;\n\n     ## \u30ad\u30fc\u30be\u30fc\u30f3\u540d\n     set $keys_zone gpljp;\n\n     ## \u5fc5\u8981\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\n     include \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/common.conf;\n     include \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/hackgpljp_wp.conf;\n     include \/data\/data\/com.termux\/files\/usr\/etc\/nginx\/conf.d\/add_header.conf;\n}<\/code><\/pre>\n\n\n\n

\u3053\u3053\u3067\u3001\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u3066\u3044\u308b\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n\n\n\n

conf.d\/hackgpljp_wp.conf
conf.d\/add_header.conf<\/p><\/blockquote>\n\n\n\n

hackgpljp_wp.conf<\/p>\n\n\n\n

index index.php index.html;\nerror_page 404 \/index.php?error=404;\n \n# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~ \/. {\n    deny all;\n}\n \n# Deny access to any files with a .php extension in the uploads directory\n# Works in sub-directory installs and also in multisite network\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~* \/(?:uploads|files)\/.*.php$ {\n    deny all;\n}\n\nset $is_mobile '';\n \n## \u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u7528\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f5c\u308b\u70ba\u306e\u5224\u5b9a\u51e6\u7406\n## WordPress\u6a19\u6e96\u306e wp_is_mobile() \u95a2\u6570\u3068\u540c\u3058\u5224\u5b9a\u51e6\u7406\nif ($http_user_agent ~* '(Mobile|Android|Silk\/|Kindle|BlackBerry|OperasMini|OperasMobi)') {\n    set $is_mobile 'mobile.';\n}\n\nset $do_not_cache 0;\n\n## GET \u30e1\u30bd\u30c3\u30c9\u4ee5\u5916\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f5c\u6210\u3057\u306a\u3044\nif ($request_method != GET) {\n    set $do_not_cache 1;\n}\n\nif ($query_string != \"\") {\n\tset $do_not_cache 1;\n} \n\n## \u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u6b32\u3057\u304f\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306f\u9664\u5916\nif ($request_uri ~* '\/(wp-admin\/|wp-login.php|wp-cron.php|xmlrpc.php|wp-json\/|??feed|wp-json|sitemap.xml)') {\n    set $do_not_cache 1;\n}\n \n## \u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u306e\u30e6\u30fc\u30b6\u30fc\u7b49\u3001Cookie \u3092\u6301\u3063\u3066\u3044\u305f\u3089\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u308f\u306a\u3044\nif ($http_cookie ~* 'comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in') {\n    set $do_not_cache 1;\n}\n \n## \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u7b49\u306f\u30d6\u30e9\u30a6\u30b6\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u52b9\u304b\u305b\u308b (60\u65e5)\nlocation ~* .(jpg|jpeg|gif|png|css|js|swf|ico|pdf|svg|eot|ttf|woff)$ {\n    expires 60d;\n    add_header Cache-Control \"public, no-transform\";\n    access_log off;\n}\n \n## \u30ea\u30af\u30a8\u30b9\u30c8\u306f index.php \u306b\u6295\u3052\u308b\nlocation \/ {\n    try_files $uri $uri\/ \/index.php?$args;\n}\n \n## Nginx\u3068PHP-FPM\u306f\u30bd\u30b1\u30c3\u30c8\u3067\u7e4b\u3050\n## HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u306b\u3088\u3063\u3066\u5404\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u671f\u9650\u3092\u5236\u5fa1\u3059\u308b\nlocation ~ .php {\n \n    try_files $uri \/index.php;\n \n    include fastcgi_params;\n    fastcgi_pass  unix:\/data\/data\/com.termux\/files\/usr\/var\/run\/php-fpm.sock;\n    fastcgi_param SCRIPT_FILENAME  \/data\/data\/com.termux\/files\/home\/htdocs_nginx$fastcgi_script_name;\n \n    fastcgi_no_cache     $do_not_cache;\n    fastcgi_cache_bypass $do_not_cache;\n    fastcgi_cache        $keys_zone;\n    fastcgi_cache_key    $is_mobile$scheme:\/\/$host$request_uri;\n    fastcgi_cache_valid  200 5m;\n    fastcgi_cache_valid  301 302 1h;\n    fastcgi_cache_valid  404 1m;\n    fastcgi_cache_valid  any 1s;\n \n    fastcgi_hide_header X-Powered-By;\n}<\/code><\/pre>\n\n\n\n

add_header.conf \u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n\n\n\n

add_header Strict-Transport-Security \"max-age=15552000\"; \nadd_header X-XSS-Protection \"1; mode=block\";\nadd_header X-Frame-Options SAMEORIGIN;\n\nadd_header X-Content-Type-Options nosniff;\nadd_header Content-Security-Policy \"default-src * 'self' data: 'unsafe-inline' 'unsafe-eval' ;\";\nadd_header Referrer-Policy strict-origin always;\nadd_header Permissions-Policy \"fullscreen=() geolocation=()\";\nadd_header X-hacker \"Hello. :-)\";<\/code><\/pre>\n\n\n\n

PHP\u306e\u8a2d\u5b9a<\/h3>\n\n\n\n

WordPress\u3092\u52d5\u304b\u3059\u306a\u3089\u3001\u5c11\u3057PHP\u306e\u4e0a\u9650\u3092\u4e0a\u3052\u3066\u304a\u304f\u307b\u3046\u304c\u7121\u96e3\u3067\u3059\u3002termux\u30d1\u30c3\u30b1\u30fc\u30b8\u306ePHP\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u306e\u3067\u3001php.ini\u306f\u4ee5\u4e0b\u306b\u4f5c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

vi \/data\/data\/com.termux\/files\/usr\/lib\/php.ini<\/code><\/pre>\n\n\n\n
[PHP]\nupload_max_filesize = 64M\npost_max_size = 64M\nmemory_limit = 128M\n\n[mail function]\nsendmail_path = \"\/data\/data\/com.termux\/files\/usr\/bin\/msmtp -C \/data\/data\/com.termux\/files\/home\/.msmtprc -t\"<\/code><\/pre>\n\n\n\n

ini\u3067\u6307\u5b9a\u3057\u3066\u3042\u308b\u3001php\u304b\u3089\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u8a2d\u5b9a\u306f\u3001msmtp\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u4ee5\u4e0b\u3092\u53c2\u7167\u3002<\/p>\n\n\n\n

Termux\u304b\u3089\u30e1\u30fc\u30eb\u3092\u9001\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\uff1f<\/p>https:\/\/hack.gpl.jp\/2020\/09\/30\/termux-smtp-client\/<\/cite><\/blockquote>\n\n\n\n

NGINX+php-fpm\u306e\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n\n\n\n

\u305f\u304f\u3055\u3093\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u3066\u3001\u308f\u304b\u308a\u8f9b\u3044\u304b\u3082\u3067\u3059\u306d\u3002\u3046\u307e\u304f\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u52d5\u4f5c\u78ba\u8a8d\u3067\u3059\u3002<\/p>\n\n\n\n

sudo nginx<\/code><\/pre>\n\n\n\n

root\u5316\u3057\u3066\u3042\u308b\u5834\u5408\u306f\u3001nginx\u306froot \u3067\u52d5\u4f5c\u3055\u305b\u306a\u3044\u3068\u30dd\u30fc\u30c880,443\u306b\u30d0\u30a4\u30f3\u30c9\u3067\u304d\u307e\u305b\u3093\u30021024\u4ee5\u4e0a\u3067\u3042\u308c\u3070termux\u306e\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u8d77\u52d5\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n

\u3000\u8d77\u52d5\u6642\u306b\u4f55\u304b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u3089\u305d\u306e\u5bfe\u5fdc\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

mariaDB\u306e\u8a2d\u5b9a<\/h3>\n\n\n\n

\u5192\u982d\u3067mariaDB\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u521d\u671f\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u306f\u4ee5\u4e0b\u3067\u3044\u3051\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n

Termux Wiki : MariaDB<\/p>https:\/\/wiki.termux.com\/wiki\/MariaDB<\/a><\/cite><\/blockquote>\n\n\n\n

mysql\u306b\u63a5\u7d9a\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u3067\u306f\u306a\u304ftermux\u306e\u30b9\u30de\u30db\u672c\u4f53\u304b\u3089\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u3060\u3068\u3001\u6a29\u9650\u304c\u3089\u307f\u3067termux\u30e6\u30fc\u30b6\u3067mysql\u63a5\u7d9a\u3001use mysql; \u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n

mariadb \u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ mysqld_safe &<\/code><\/pre>\n\n\n\n

\u4ee5\u4e0b\u306f\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u3067\u306f\u306a\u304ftermux\u306e\u30b9\u30de\u30db\u672c\u4f53\u304b\u3089\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n

mysql -u $(whoami)<\/code><\/pre>\n\n\n\n

\u30ea\u30e2\u30fc\u30c8\u304b\u3089DB Tool\u3092\u4f7f\u3044\u305f\u3044\u306e\u3067\u6a29\u9650\u3092\u3064\u3051\u3066\u304a\u304d\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8IP<\/strong>\u3084\u3001password<\/strong>\u306a\u3069\u306f\u7a0b\u3088\u304f\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n

use mysql;\nset password for 'root'@'localhost' = password('YOUR_ROOT_PASSWORD_HERE<\/span>');\nGRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1<\/span>.%' IDENTIFIED BY 'YOUR_ROOT_PASSWORD_HERE<\/span>';\nflush privileges;\nquit;<\/code><\/pre>\n\n\n\n

\u30ea\u30e2\u30fc\u30c8\u306eGUI\u30c4\u30fc\u30eb\u304b\u3089\u63a5\u7d9a\u30c6\u30b9\u30c8\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001mac\u306eTablePlus\u3068\u3044\u3046\u30c4\u30fc\u30eb\u306e\u753b\u9762\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

termux\u306essh\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u306a\u3093\u3067\u3082\u826f\u3044\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u7121\u6307\u5b9a\u3067\u3059\u3002<\/p>\n\n\n\n

\u3042\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306echaracter-set\u3092\u6307\u5b9a\u3057\u3066\u304a\u304d\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

vi \/data\/data\/com.termux\/files\/usr\/etc\/my.cnf.d\/server.cnf<\/code><\/pre>\n\n\n\n
$ cd\n[client]\ndefault-character-set = utf8mb4\n[mysqld]\ncharacter-set-server = utf8mb4<\/code><\/pre>\n\n\n\n

utf8mb4\u306f\u6587\u5b57\u30921\u301c4byte\u3067\u53d6\u308a\u6271\u3046\u306e\u3067\u3001\u3053\u3063\u3061\u304c\u3088\u308d\u3057\u3044\u304b\u3068\u3002<\/p>\n\n\n\n

mariadb\u3092\u518d\u8d77\u52d5\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ ps axu | grep mariadb\n\u3000\u203bPID\u3092\u78ba\u8a8d\n$ kill 30563\n$ mysqld_safe&<\/code><\/pre>\n\n\n\n

WordPress\u3092\u52d5\u304b\u3057\u3066\u307f\u308b<\/h3>\n\n\n\n

\u307b\u3069\u3088\u304fDB\u3092\u4f5c\u6210\u3057\u3066\u3001WEB ROOT\u306bWordpress\u3092\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ cd\n$ wget https:\/\/ja.wordpress.org\/wordpress-5.7.1-ja.zip\n$ unzip wordpress-5.7.1-ja.zip\n$ mv wordpress\/* htdocs_nginx\/\n\u301c\u7701\u7565\u301c<\/code><\/pre>\n\n\n\n

\u4ee5\u4e0b\u3001\u7701\u7565\u3002PHP8\u74b0\u5883\u3067\u306eWordPress\u52d5\u4f5c\u78ba\u8a8d\u306f\u4f55\u304b\u6c17\u304c\u3064\u3051\u3070\u30cd\u30bf\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u307e\u3068\u3081<\/h3>\n\n\n\n

\u4eca\u56de\u3001\u306a\u3093\u3068\u306a\u304f\u308f\u304b\u3063\u305f\u306e\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u30fb\u73fe\u72b6\u306e\u8a2d\u5b9a\u3060\u3068\u30b3\u30e1\u30f3\u30c8\u6295\u7a3f\u304c\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044
\u30fb\u30b8\u30a7\u30c3\u30c8\u30d1\u30c3\u30af\u306e\u3044\u3044\u306d\u3000\u3082\u52d5\u304f\u6642\u3068\u52d5\u304b\u306a\u3044\u6642\u304c\u3042\u308b
\u30fbTermux\u306ePHP\u30d1\u30c3\u30b1\u30fc\u30b8\u304c8\u306b\u306a\u3063\u3066\u3044\u305f
\u30fbWordPress\u304cPHP8\u3067\u554f\u984c\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b
\u30fb\u3068\u308a\u3042\u3048\u305a\u3001wp5.7.1\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u4f55\u3082\u306a\u3044\u72b6\u614b\u3067\u3042\u308c\u3070\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u308b
\u30fb\u4eca\u3001\u4f7f\u3063\u3066\u3044\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u3092\u5168\u90e8\u7a81\u3063\u8fbc\u3093\u3067\u307f\u3066\u78ba\u8a8d\u3057\u3066\u307f\u308b<\/p>\n\n\n\n

\u3042\u3068\u304c\u304d<\/h3>\n\n\n\n

\u30b5\u30fc\u30d0\u8a2d\u5b9a\u3068\u304b\u3001\u307b\u3093\u3068\u30c0\u30eb\u3044\u3067\u3059\u306d\u30fc\uff01\u3000\u6700\u8fd1\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3082\uff11\u304b\u3089\u4f5c\u308b\u6a5f\u4f1a\u306a\u3093\u3066\u3060\u3044\u3076\u6e1b\u3063\u3066\u304d\u3066\u3044\u308b\u3093\u3067\u3001\u3053\u3046\u3044\u3046\u8a2d\u5b9a\u3068\u304b\u3081\u3093\u3069\u304f\u3055\u3044\u306a\u30fc\u3063\u3066\u611f\u3058\u307e\u3057\u305f\u3002AWS\u3082GCC\u3082\u3001\u305a\u3044\u3076\u3093\u697d\u3067\u304d\u308b\u74b0\u5883\u304c\u6574\u3063\u3066\u3044\u308b\u304b\u3089\u305d\u3046\u611f\u3058\u308b\u308f\u3051\u3067\u3002\u306a\u3093\u3067\u3082\u30ea\u30e2\u30fc\u30c8\u3067\u304d\u308b\u3001\u826f\u3044\u6642\u4ee3\u3067\u3059\u306d\u3002<\/p>\n\n\n\n

\u8457\u8005\u306b\u30e1\u30c3\u30bb\u30fc\u30b8<\/h3>\n\n\n\n \n\n\n

\u9593\u9055\u3044\u306e\u3054\u6307\u6458\u306a\u3069\u3001\u30b3\u30e1\u30f3\u30c8\u3058\u3083\u306a\u304f\u3066\u3001\u500b\u4eba\u7684\u306b\u3084\u308a\u3068\u308a\u3057\u305f\u3044\u5834\u5408\u306f\u3053\u3061\u3089\u304b\u3089<\/a>\u3069\u3046\u305e\u3002\u304a\u8fd4\u4e8b\u304c\u9045\u304f\u306a\u308b\u3068\u304d\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3054\u4e86\u627f\u3092\u3002<\/p>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

NGINX\u306e\u8a2d\u5b9a
\n\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306bWEB\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8ROOT\u3092\u4f5c\u308a\u307e\u3059\u3002\u3069\u3053\u3067\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001termux\u306e$HOME\u306b\u4f5c\u308a\u307e\u3059\u3002\u81ea\u5206\u306e\u5834\u5408\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eWEB ROOT\uff08htdocs_default\uff09\u3068\u3001hack.gpl.jp\u3000\u30c9\u30e1\u30a4\u30f3\u306eWEB ROOT\uff08htdocs_nginx\uff09\u3092\u5206\u96e2\u3057\u3066\u3044\u307e\u3059\u3002
\n\u3042\u3068\u3001SSL\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3057\u3066\u304a\u304f\u306e\u3067\u305d\u308c\u5c02\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u4f5c\u3063\u3066\u304a\u304d\u307e\u3059\u3002SSL\u95a2\u9023\u306f\u4ee5\u4e0b\u3092\u53c2\u7167<\/p>\n","protected":false},"author":1,"featured_media":10521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[8,47,83],"tags":[],"acf":[],"uagb_featured_image_src":{"full":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/05\/termux_nginx_php-fpm_mariadb.png",800,800,false],"thumbnail":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/05\/termux_nginx_php-fpm_mariadb.png",96,96,false],"medium":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/05\/termux_nginx_php-fpm_mariadb.png",800,800,false],"medium_large":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/05\/termux_nginx_php-fpm_mariadb-768x768.png",768,768,true],"large":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/05\/termux_nginx_php-fpm_mariadb.png",800,800,false],"1536x1536":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/05\/termux_nginx_php-fpm_mariadb.png",800,800,false],"2048x2048":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/05\/termux_nginx_php-fpm_mariadb.png",800,800,false],"post-thumbnail":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/05\/termux_nginx_php-fpm_mariadb.png",800,800,false]},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"NGINX\u306e\u8a2d\u5b9a \u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306bWEB\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8ROOT\u3092\u4f5c\u308a\u307e\u3059\u3002\u3069\u3053\u3067\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001ter…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/10507"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=10507"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/10507\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media\/10521"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=10507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=10507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=10507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}