{"id":108,"date":"2022-08-04T09:48:32","date_gmt":"2022-08-04T00:48:32","guid":{"rendered":"https:\/\/global-hack.com\/blog\/?p=108"},"modified":"2022-08-16T03:49:46","modified_gmt":"2022-08-15T18:49:46","slug":"%e3%80%90ubuntu20-04%e3%80%91phpmyadmin%e3%81%ae%e7%b0%a1%e5%8d%98%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e5%bc%b7%e5%8c%96%ef%bc%93%e3%81%a4%e3%81%ae%e3%82%b9%e3%83%86%e3%83%83","status":"publish","type":"post","link":"https:\/\/global-hack.com\/blog\/archives\/108","title":{"rendered":"\u3010Ubuntu20.04\u3011phpMyAdmin\u306e\u7c21\u5358\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\uff13\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u3010Apache2\u3011"},"content":{"rendered":"<h3>phpMyAdmin\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u306e\u305f\u3081\u306b\u3084\u308b\u3053\u3068\u6982\u8981<\/h3>\n<p>\u4eca\u56de\u306f<a href=\"https:\/\/aws.amazon.com\/jp\/lightsail\/\" rel=\"nofollow noopener\" target=\"_blank\">AWS\u306eLightsail<\/a>\u306e<a href=\"https:\/\/releases.ubuntu.com\/20.04\/\" target=\"_blank\" rel=\"nofollow noopener\">ubuntu20.04<\/a>\u5185(<a href=\"https:\/\/downloads.apache.org\/httpd\/Announcement2.4.html\" target=\"_blank\" rel=\"nofollow noopener\">Apache2.4.41<\/a>)\u3067<a href=\"https:\/\/www.phpmyadmin.net\/\" target=\"_blank\" rel=\"nofollow noopener\">phpMyAdmin5.0.2<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u884c\u3046\u57fa\u672c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\uff13\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u6cbf\u3063\u3066\u69cb\u7bc9\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>phpMyAdmin\u30da\u30fc\u30b8\u3078\u306eBasic\u8a8d\u8a3c\u306b\u3088\u308b\u4fdd\u8b77<\/li>\n<li>http\u3067\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650<\/li>\n<li>\u7b2c\u4e09\u8005\u306b\u63a8\u6e2c\u3055\u308c\u306b\u304f\u3044URL\u3078\u306e\u5909\u66f4<\/li>\n<\/ol>\n<h4>phpMyAdmin\u30da\u30fc\u30b8\u3078\u30a2\u30af\u30bb\u30b9\u3057\u305f\u969b\u306b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u50ac\u4fc3\u3059\u308bBasic\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b<\/h4>\n<p>Basic\u8a8d\u8a3c\u3068\u306f\u3001web\u30b5\u30a4\u30c8\u3078\u306e\u7c21\u6613\u7684\u306a\u5236\u9650\u3092\u304b\u3051\u308b\u6280\u8853\u306e\u4e00\u3064\u3067\u3059\u3002\u3042\u304f\u307e\u3067\u7c21\u6613\u7684\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u4e00\u3064\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5168\u3066\u304c\u89e3\u6c7a\u3059\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u7c21\u6613\u7684\u3067\u3042\u3063\u3066\u3082\u3001\u4eca\u56de\u306e3\u30b9\u30c6\u30c3\u30d7\u306e\u3088\u3046\u306b\u8907\u6570\u306e\u5de5\u7a0b\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u60aa\u610f\u3042\u308b\u30cf\u30c3\u30ab\u30fc\u305f\u3061\u306e\u30af\u30e9\u30c3\u30ad\u30f3\u30b0\u3092\u7169\u308f\u305b\u308b\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/08\/basic_auth.png\" alt=\"\u30b5\u30a4\u30c8\u63a5\u7d9a\u6642\u306eBasic(\u30d9\u30fc\u30b7\u30c3\u30af)\u8a8d\u8a3c\u306e\u30b5\u30f3\u30d7\u30eb\" width=\"438\" height=\"353\" class=\"alignnone size-full wp-image-109\" \/><\/p>\n<p>\u4e0a\u306e\u753b\u50cf\u306e\u3088\u3046\u306a\u30d5\u30a9\u30fc\u30e0\u304cweb\u30b5\u30a4\u30c8\u63a5\u7d9a\u6642\u306b\u8868\u793a\u3055\u308c\u308b\u306e\u304cBasic\u8a8d\u8a3c\u3068\u3044\u3046\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a2\u30a6\u30c8\u306e\u554f\u984c\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5e73\u6587\u3068\u3044\u3063\u305f\u8106\u5f31\u6027\u304c\u61f8\u5ff5\u3055\u308c\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306e\u30b9\u30c6\u30c3\u30d72\u30683\u3001phpmyadmin\u81ea\u4f53\u306e\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3088\u308b\u8a8d\u8a3c\u3001\u3068\u3053\u308c\u3089\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u5f53\u8a72\u8106\u5f31\u6027\u3092\u5c11\u3057\u3067\u3082\u6291\u5236\u3057\u3066\u304f\u308c\u308b\u3082\u306e\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h5>phpMyAdmin\u306econf\u30d5\u30a1\u30a4\u30eb<\/h5>\n<p>phpmyadmin.conf\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ cd \/etc\/apache2\/conf-available\/<\/code><\/pre>\n<\/div>\n<p><span>phpmyadmin.conf\u3092\u958b\u304d\u307e\u3059\u3002nano\u3067\u3082vi\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo vim <span>phpmyadmin.conf<\/span><\/code><\/pre>\n<\/div>\n<p>\u4e0b\u8a18\u306e <span style=\"color: #ff0000;\"><strong>AllowOverride All <\/strong><\/span>\u90e8\u5206\u3092\u4ed8\u3051\u8db3\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>&lt;Directory \/usr\/share\/phpmyadmin\/&gt;\r\n AddDefaultCharset UTF-8\r\n<span style=\"color: #ff0000;\"> AllowOverride All<\/span>\r\n &lt;IfModule mod_authz_core.c&gt;\r\n  &lt;RequireAny&gt;\r\n   Require all granted\r\n  &lt;\/RequireAny&gt;\r\n &lt;\/IfModule&gt;\r\n&lt;\/Directory&gt;<\/code><\/pre>\n<\/div>\n<h5>.htaccess\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3059\u308b<\/h5>\n<p>\u5f53\u8a72\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3059\u308b\u5834\u6240\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ cd \/usr\/share\/phpmyadmin\/<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo vim <span>.htaccess<\/span><\/code><\/pre>\n<\/div>\n<p>\u66f8\u304d\u8fbc\u3080\u5185\u5bb9\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>AuthType Basic\r\nAuthName \"Restricted Files\"\r\nAuthUserFile \/etc\/phpmyadmin\/.htpasswd\r\nRequire valid-user<\/code><\/pre>\n<\/div>\n<p>\/etc\/phpmyadmin\/.htpasswd \u3053\u3053\u304c\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u7f6e\u304f\u4f4d\u7f6e\u306b\u306a\u308a\u307e\u3059\u3002\u66f8\u304d\u7d42\u308f\u3063\u305f\u3089vim\u306a\u3089\u3070\u3001\u300cesc\u300d\u62bc\u3057\u3066\u300c:wq\u300d\u3067\u4fdd\u5b58\u3057\u9589\u3058\u3089\u308c\u307e\u3059\u3002<\/p>\n<h5>Basic\u8a8d\u8a3c\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b<\/h5>\n<p>\u307e\u305a\u3001.htpasswd\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u3092\u7528\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ cd \/etc\r\n$ sudo mkdir phpmyadmin<\/code><\/pre>\n<\/div>\n<p>\u4e0b\u8a18\u306e\u8981\u9818\u3067\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo htpasswd -c \/etc\/phpmyadmin\/.htpasswd \u3053\u3053\u306b\u4efb\u610f\u306e\u30e6\u30fc\u30b6\u30fc\u540d<\/code><\/pre>\n<\/div>\n<p>\u4f8b\u3048\u3070\u300cgh-master\u300d\u3068\u3044\u3046\u30e6\u30fc\u30b6\u30fc\u540d\u306b\u3057\u305f\u3044\u3068\u3059\u308b\u306a\u3089\u3070\u3001<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo htpasswd -c \/etc\/phpmyadmin\/.htpasswd gh-master<\/code><\/pre>\n<\/div>\n<p>\u3068\u3044\u3046\u5177\u5408\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u3092\u6c42\u3081\u3089\u308c\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3054\u81ea\u8eab\u3067\u6c7a\u3081\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002\u5165\u529b\u5f8c\u3001\u78ba\u8a8d\u306e\u305f\u3081\u306b\u3082\u3046\u4e00\u5ea6\u5165\u529b\u3057\u3066\u304f\u308c\u3068\u4fc3\u3055\u308c\u308b\u306e\u3067\u3001\u540c\u3058\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\/etc\/phpmyadmin\/.htpasswd\u306e\u4e2d\u306b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u8a66\u3057\u306b\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ less \/etc\/phpmyadmin\/.htpasswd<\/code><\/pre>\n<\/div>\n<p>\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30cf\u30c3\u30b7\u30e5\u5316\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u300cesc\u300d\u62bc\u3057\u3066\u300c:q\u300d\u3067\u629c\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u3057\u305fBasic\u8a8d\u8a3c\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067apache\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo service apache2 restart<\/code><\/pre>\n<\/div>\n<p>\u6700\u521d\u306e\u65b9\u3067\u7d39\u4ecb\u3057\u305f\u753b\u50cf\u306e\u3088\u3046\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u308b\u8868\u793a\u304c\u51fa\u3066\u3044\u308c\u3070\u5b8c\u6210\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3066\u30b9\u30c6\u30c3\u30d71\u300cphpMyAdmin\u30da\u30fc\u30b8\u3078\u306eBasic\u8a8d\u8a3c\u306b\u3088\u308b\u4fdd\u8b77\u300d\u306f\u5b8c\u4e86\u3002\u4eca\u5ea6\u306f\u30b9\u30c6\u30c3\u30d72\u3078\u9032\u307f\u307e\u3059\u3002<\/p>\n<h4>http:\/\/\u301c\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650\u3059\u308b<\/h4>\n<p>\u4eca\u56de\u8a3c\u660e\u66f8\u306f\u767a\u884c\u3057\u307e\u305b\u3093\u3002\u57fa\u672c\u7ba1\u7406\u8005\u306e\u307f\u95b2\u89a7\u3059\u308b\u524d\u63d0\u3067\u3059\u306e\u3067\u3001http\u3067\u30a2\u30af\u30bb\u30b9\u3055\u305b\u306a\u3044\u3053\u3068\u304c\u76ee\u7684\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30c6\u30c3\u30d71\u3067\u3082\u524d\u8ff0\u3057\u305fphpmyadmin.conf\u30d5\u30a1\u30a4\u30eb\u3092\u5f04\u308a\u307e\u3059\u306e\u3067\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u4e2d\u306b\u5165\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo vim \/etc\/apache2\/conf-available\/phpmyadmin.conf<\/code><\/pre>\n<\/div>\n<p>\u4e0b\u8a18\u306e <strong><span style=\"color: #ff0000;\">SSLRequireSSL<\/span><\/strong> \u90e8\u5206\u3092\u52a0\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>&lt;Directory \/usr\/share\/phpmyadmin\/&gt;\r\n AddDefaultCharset UTF-8\r\n AllowOverride All\r\n <strong><span style=\"color: #ff0000;\">SSLRequireSSL<\/span><\/strong>\r\n &lt;IfModule mod_authz_core.c&gt;\r\n  &lt;RequireAny&gt;\r\n   Require all granted\r\n  &lt;\/RequireAny&gt;\r\n &lt;\/IfModule&gt;\r\n&lt;\/Directory&gt;<\/code><\/pre>\n<\/div>\n<p>Apache\u518d\u8d77\u52d5<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo service apache2 restart<\/code><\/pre>\n<\/div>\n<h5>http:\/\/\u3068https:\/\/\u3067\u5b9f\u969b\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u78ba\u8a8d\u3059\u308b<\/h5>\n<p><strong>https<\/strong>\u3067\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/08\/https_phpmyadmin.png\" alt=\"https\u3067phpmyadmin\u30da\u30fc\u30b8\u3078\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408\" width=\"710\" height=\"541\" class=\"alignnone size-full wp-image-110\" srcset=\"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/08\/https_phpmyadmin.png 710w, https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/08\/https_phpmyadmin-80x60.png 80w\" sizes=\"(max-width: 710px) 100vw, 710px\" \/><\/p>\n<p><strong>http<\/strong>\u3067\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/08\/http_phpmyadmin.png\" alt=\"http\u3067phpmyadmin\u30da\u30fc\u30b8\u3078\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408\" width=\"687\" height=\"486\" class=\"alignnone size-full wp-image-111\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u30b9\u30c6\u30c3\u30d72\u306e\u300chttp\u3067\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u300d\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u5b8c\u4e86\u3067\u3059\uff01<\/p>\n<p>\u6b21\u306f\u6700\u5f8c\u306e\u30b9\u30c6\u30c3\u30d73\u3078\uff01<\/p>\n<h4>phpMyAdmin\u30da\u30fc\u30b8\u3078\u306eURL\u3092\u7b2c\u4e09\u8005\u306b\u63a8\u6e2c\u3055\u308c\u306b\u304f\u3044URL\u3078\u5909\u66f4\u3059\u308b<\/h4>\n<p>http:\/\/~\/phpmyadmin\u3068\u306a\u308b\u3068\u7c21\u5358\u306b\u63a8\u6e2c\u304c\u3064\u3044\u3066\u3057\u307e\u3044\u3001\u60aa\u610f\u306e\u3042\u308b\u30cf\u30c3\u30ab\u30fc\u306b\u72d9\u308f\u308c\u304b\u306d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u5148\u3092\u5909\u66f4\u3057\u3066\u5c11\u3057\u3067\u3082\u30ea\u30b9\u30af\u3092\u6e1b\u3089\u305d\u3046\u3068\u3044\u3046\u306e\u304c\u4eca\u56de\u306e\u8a66\u307f\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u65e9\u901f\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u524d\u8ff0\u3057\u3066\u304d\u305f\u4f8b\u306econf\u30d5\u30a1\u30a4\u30eb\u3092\u307e\u305f\u5f04\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo vim \/etc\/apache2\/conf-available\/phpmyadmin.conf\r\n<\/code><\/pre>\n<\/div>\n<p>\u4e0b\u8a18\u306e <strong><span style=\"color: #ff0000;\">Alias \/\u3053\u3053\u306b\u304a\u597d\u304d\u306a\u610f\u5473\u4e0d\u660e\u306a\u6587\u5b57\u5217\u3092\u5165\u308c\u308b \/usr\/share\/phpmyadmin<\/span><\/strong> \u90e8\u5206\u3092\u8ffd\u52a0\u3057\u3001\u305d\u306e\u4e0a\u306b\uff12\u884c\u3092<strong><span style=\"color: #0000ff;\">\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8<\/span><\/strong>\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code><strong><span style=\"color: #0000ff;\"># Alias \/phpmyadmin \/usr\/share\/phpmyadmin<\/span><\/strong>\r\n<strong><span style=\"color: #0000ff;\"># Alias \/phpMyAdmin \/usr\/share\/phpmyadmin<\/span><\/strong>\r\n<strong><span style=\"color: #ff0000;\">Alias \/\u3053\u3053\u306b\u304a\u597d\u304d\u306a\u610f\u5473\u4e0d\u660e\u306a\u6587\u5b57\u5217\u3092\u5165\u308c\u308b \/usr\/share\/phpmyadmin<\/span><\/strong>\r\n&lt;Directory \/usr\/share\/phpmyadmin\/&gt;\r\n AddDefaultCharset UTF-8\r\n AllowOverride All\r\n SSLRequireSSL\r\n &lt;IfModule mod_authz_core.c&gt;\r\n  &lt;RequireAny&gt;\r\n   Require all granted\r\n  &lt;\/RequireAny&gt;\r\n &lt;\/IfModule&gt;\r\n&lt;\/Directory&gt;<\/code><\/pre>\n<\/div>\n<p>\u300c\u3053\u3053\u306b\u304a\u597d\u304d\u306a\u610f\u5473\u4e0d\u660e\u306a\u6587\u5b57\u5217\u3092\u5165\u308c\u308b\u300d\u3061\u3087\u3063\u3068\u66f8\u3044\u3066\u3044\u3066\u4fef\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u8981\u306f<span style=\"color: #ff0000;\"><strong>\u7b2c\u4e09\u8005\u306b\u63a8\u6e2c\u3055\u308c\u306b\u304f\u3044\u6587\u5b57\u5217<\/strong><\/span>\u3092\u5165\u308c\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code><strong><span style=\"color: #0000ff;\"># Alias \/phpmyadmin \/usr\/share\/phpmyadmin<\/span><\/strong>\r\n<strong><span style=\"color: #0000ff;\"># Alias \/phpMyAdmin \/usr\/share\/phpmyadmin<\/span><\/strong>\r\n<strong><span style=\"color: #ff0000;\">Alias \/gh-923rjdj3msdpofi0qwek-phpmyadmin \/usr\/share\/phpmyadmin<\/span><\/strong>\r\n&lt;Directory \/usr\/share\/phpmyadmin\/&gt;\r\n AddDefaultCharset UTF-8\r\n AllowOverride All\r\n SSLRequireSSL\r\n &lt;IfModule mod_authz_core.c&gt;\r\n  &lt;RequireAny&gt;\r\n   Require all granted\r\n  &lt;\/RequireAny&gt;\r\n &lt;\/IfModule&gt;\r\n&lt;\/Directory&gt;<\/code><\/pre>\n<\/div>\n<p>\u3068\u3057\u305f\u5834\u5408\u306f\u3001\u300c<strong><span style=\"color: #ff0000;\">https:\/\/xxx.xxx.xxx.xxx\/gh-923rjdj3msdpofi0qwek-phpmyadmin<\/span><\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308c\u3070phpMyAdmin\u306e\u30da\u30fc\u30b8\u304c\u958b\u3051\u308b\u3068\u3044\u3063\u305f\u5177\u5408\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u304c\u3001\u3069\u3053\u304b\u3089\u304b\u30b3\u30d4\u30da\u3067\u5f15\u3063\u5f35\u3063\u3066\u304d\u305f\u5f53\u8a72\u30a8\u30a4\u30ea\u30a2\u30b9\u306e\u4e00\u884c\u3092\u5909\u66f4\u3057\u3066\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u300c\/usr\/share\/phpmyadmin\u300d\u306e\u90e8\u5206\u304c\u300c\/usr\/share\/phpMyAdmin\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u4e8c\u3064\u3068\u3082\u5225\u7269\u306b\u306a\u308b\u306e\u3067\u3001\u3054\u81ea\u8eab\u306e\u30b5\u30fc\u30d0\u8a2d\u5b9a\u306b\u5408\u308f\u305b\u305f\u30d1\u30b9\u306b\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3055\u3066\u3001\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306bApache\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo service apache2 restart<\/code><\/pre>\n<\/div>\n<p>\u3054\u81ea\u8eab\u3067\u4ed8\u3051\u305f\u6587\u5b57\u5217\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u958b\u3051\u308c\u3070\u30b9\u30c6\u30c3\u30d73\u300c\u7b2c\u4e09\u8005\u306b\u63a8\u6e2c\u3055\u308c\u306b\u304f\u3044URL\u3078\u306e\u5909\u66f4\u300d\u30df\u30c3\u30b7\u30e7\u30f3\u5b8c\u4e86\u3067\u3059\uff01<\/p>\n<h4>phpMyAdmin\u3092\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408<\/h4>\n<p>\u4e0b\u8a18\u8a18\u4e8b\u306e\u3088\u3046\u306bphpMyAdmin\u306b\u4e0d\u5177\u5408\u304c\u751f\u3058\u305f\u3001\u4f7f\u7528\u3057\u3066\u3044\u308bPHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5408\u308f\u305b\u3066phpMyAdmin\u3092\u5207\u308a\u66ff\u3048\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u3044\u3001\u306a\u3069phpMyAdmin\u3092\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u4f7f\u7528\u3057\u306a\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5236\u9650\u3059\u308b\u3068\u304d\u306fconf\u30d5\u30a1\u30a4\u30eb\u306b\u5f53\u8a72\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u300cRequire all denied\u300d\u52a0\u3048\u3066\u304a\u304f\u65b9\u304c\u826f\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"m2UmISvKmK\"><p><a href=\"https:\/\/global-hack.com\/blog\/archives\/116\">PHP8.1.x\u3068phpMyAdmin5.1.x\u7d44\u307f\u5408\u308f\u305b\u6642\u306e\u8868\u793a\u30d0\u30b0\u3010Ubuntu20.04\u3011<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;PHP8.1.x\u3068phpMyAdmin5.1.x\u7d44\u307f\u5408\u308f\u305b\u6642\u306e\u8868\u793a\u30d0\u30b0\u3010Ubuntu20.04\u3011&#8221; &#8212; Global Hack \u30a8\u30f3\u30b8\u30cb\u30a2\u5099\u5fd8\u9332\" src=\"https:\/\/global-hack.com\/blog\/archives\/116\/embed#?secret=RbebokHtSR#?secret=m2UmISvKmK\" data-secret=\"m2UmISvKmK\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>&lt;Directory \"\/usr\/share\/phpmyadmin\/\"&gt;\r\nRequire all denied\r\n&lt;\/Directory&gt;<\/code><\/pre>\n<\/div>\n<h3>3\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u5b8c\u4e86\u5f8c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u66f4\u65b0\u3082\u5fd8\u308c\u305a\u306b<\/h3>\n<p>phpMyAdmin\u306b\u9650\u3089\u305a\u306e\u8a71\u3067\u3059\u304c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3053\u307e\u3081\u306b\u66f4\u65b0\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u305d\u308c\u306a\u308a\u306b\u3057\u3063\u304b\u308a\u3057\u305f\u4f01\u696d\u3067\u3059\u3068\u69cb\u6210\u7ba1\u7406\u3082\u5fb9\u5e95\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u500b\u4eba\u3084\u96f6\u7d30\u4f01\u696d\u3067\u3059\u3068\u758e\u304b\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002\u305f\u3060\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u307e\u307e\u4f7f\u7528\u3057\u7d9a\u3051\u308b\u306e\u306f\u975e\u5e38\u306b\u5371\u967a\u3067\u3059\u306e\u3067\u3001\u5b9a\u671f\u7684\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\uff06\u66f4\u65b0\u3059\u308b\u7656\u3092\u3064\u3051\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff08\u3068\u66f8\u3044\u3066\u3044\u3066\u4eca\u81ea\u5206\u306b\u8a00\u3044\u805e\u304b\u305b\u3066\u3044\u307e\u3059\ud83d\udca6\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>phpMyAdmin\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u306e\u305f\u3081\u306b\u3084\u308b\u3053\u3068\u6982\u8981 \u4eca\u56de\u306fAWS\u306eLightsail\u306eubuntu20.04\u5185(Apache2.4.41)\u3067phpMyAdmin5.0.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u884c\u3046\u57fa\u672c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u4e0b\u8a18\u306e <a class=\"mh-excerpt-more\" href=\"https:\/\/global-hack.com\/blog\/archives\/108\" title=\"\u3010Ubuntu20.04\u3011phpMyAdmin\u306e\u7c21\u5358\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\uff13\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u3010Apache2\u3011\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":112,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,21,63,29,61,56,15],"tags":[62,58,59],"class_list":{"0":"post-108","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-linux","9":"category-mariadb","10":"category-mysql","11":"category-phpmyadmin","12":"category-ubuntu20-04","13":"category-15","14":"tag-basic","15":"tag-lightsail","16":"tag-ubuntu"},"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/08\/phpmyadmin_logo.png","_links":{"self":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":0,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}