{"id":47,"date":"2023-07-11T19:09:40","date_gmt":"2022-10-10T01:58:07","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/"},"modified":"2025-07-31T13:38:58","modified_gmt":"2025-07-31T04:38:58","slug":"debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/","title":{"rendered":"Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>LAMP\u30b9\u30bf\u30c3\u30af\u306f\u3001\u901a\u5e38\u4e00\u7dd2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30b0\u30eb\u30fc\u30d7\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u52d5\u7684\u306a\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u30db\u30b9\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u3053\u306e\u7528\u8a9e\u306f\u3001Linux\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u8868\u3059\u30a2\u30af\u30ed\u30cb\u30e0\u3067\u3042\u308a\u3001Apache\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3068\u5171\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u306fMariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u3001\u52d5\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u306fPHP\u3067\u51e6\u7406\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u901a\u5e38\u3001\u3053\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30b9\u30bf\u30c3\u30af\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066MySQL\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001Debian\u306a\u3069\u306e\u4e00\u90e8\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306fMySQL\u306e\u4ee3\u308f\u308a\u306bMariaDB\u304c\u30c9\u30ed\u30c3\u30d7\u30a4\u30f3\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Debian 10\u30b5\u30fc\u30d0\u30fc\u306bLAMP\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066MariaDB\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001Debian 10 \u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u3001\u975e\u30eb\u30fc\u30c8 sudo \u6709\u52b9\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u57fa\u672c\u7684\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u69cb\u6210\u306f\u3001Debian 10 \u306e\u521d\u671f\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u30ac\u30a4\u30c9\u3092\u4f7f\u3063\u3066\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d71\uff1aApache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u66f4\u65b0<\/h2>\n<p>\u4e16\u754c\u3067\u3082\u6700\u3082\u4eba\u6c17\u306e\u3042\u308bWeb\u30b5\u30fc\u30d0\u30fc\u306e\u4e00\u3064\u3001Apache\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3002\u5341\u5206\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5316\u3055\u308c\u3001\u30a6\u30a7\u30d6\u306e\u6b74\u53f2\u306e\u5927\u90e8\u5206\u3067\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u969b\u306e\u512a\u308c\u305f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u9078\u629e\u80a2\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u5185\u3067\u521d\u3081\u3066sudo\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30b7\u30b9\u30c6\u30e0\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u9069\u5207\u306a\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306e\u624b\u9806\u3067Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> apache2<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002Y\u30ad\u30fc\u3092\u62bc\u3057\u3066ENTER\u30ad\u30fc\u3092\u62bc\u3059\u3053\u3068\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u521d\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u624b\u9806\u306b\u5f93\u3063\u3066UFW\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u6709\u52b9\u5316\u3057\u305f\u3068\u4eee\u5b9a\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304cHTTP\u304a\u3088\u3073HTTPS\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Debian 10\u3067\u306f\u3001UFW\u306b\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u30ed\u30fc\u30c9\u3055\u308c\u3066\u304a\u308a\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u8abf\u6574\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306e\u5b8c\u5168\u306a\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw app list<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>WWW\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u4f7f\u7528\u3055\u308c\u308b\u30dd\u30fc\u30c8\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Available applications: . . . WWW WWW Cache WWW Full WWW Secure . . .<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>WWW\u306e\u30d5\u30eb\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u67fb\u3059\u308b\u3068\u3001\u30dd\u30fc\u30c880\u3068443\u3078\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw app info <span class=\"token string\">&#8220;WWW Full&#8221;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Profile: WWW Full Title: Web Server (HTTP,HTTPS) Description: Web Server (HTTP,HTTPS) Ports: <mark>80<\/mark>,<mark>443\/tcp<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u3001HTTP\u304a\u3088\u3073HTTPS\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token keyword\">in<\/span> <span class=\"token string\">&#8220;WWW Full&#8221;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e88\u5b9a\u901a\u308a\u306b\u9032\u884c\u3057\u305f\u304b\u3069\u3046\u304b\u306f\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958bIP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2a\u308c\u308b\u3053\u3068\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>your_server_ip<\/mark>\r\n<\/code><\/pre>\n<p>\u60c5\u5831\u63d0\u4f9b\u304a\u3088\u3073\u30c6\u30b9\u30c8\u306e\u76ee\u7684\u3067\u8a2d\u3051\u3089\u308c\u305f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eDebian 10 Apache\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65644899daa94e2bdf7ae155\/25-0.png\" alt=\"Debian 10 Apache default\" \/><\/div>\n<p>\u3082\u3057\u3082\u3042\u306a\u305f\u306e\u30d6\u30e9\u30a6\u30b6\u304c\u3053\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u305f\u5834\u5408\u3001\u3042\u306a\u305f\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306f\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u7d4c\u7531\u3057\u3066\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958b IP \u30a2\u30c9\u30ec\u30b9\u3092\u898b\u3064\u3051\u308b\u65b9\u6cd5<\/h3>\n<p>\u3082\u3057\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958bIP\u30a2\u30c9\u30ec\u30b9\u304c\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u3067\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u901a\u5e38\u3001\u3053\u308c\u306fSSH\u7d4c\u7531\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308b\u30a2\u30c9\u30ec\u30b9\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u3053\u308c\u3092\u884c\u3046\u305f\u3081\u306b\u3044\u304f\u3064\u304b\u306e\u7570\u306a\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u3001iproute2\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066IP\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">ip<\/span> addr show eth0 <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> inet <span class=\"token operator\">|<\/span> <span class=\"token function\">awk<\/span> <span class=\"token string\">&#8216;{ print $2; }&#8217;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sed<\/span> <span class=\"token string\">&#8216;s\/\\\/.*$\/\/&#8217;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u30012\u884c\u307e\u305f\u306f3\u884c\u524d\u306b\u623b\u308a\u307e\u3059\u3002\u3059\u3079\u3066\u6b63\u3057\u3044\u30a2\u30c9\u30ec\u30b9\u3067\u3059\u304c\u3001\u304a\u4f7f\u3044\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306f1\u3064\u3057\u304b\u4f7f\u7528\u3067\u304d\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5225\u306e\u65b9\u6cd5\u306f\u3001curl\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u5916\u90e8\u306e\u6a5f\u95a2\u306b\u63a5\u89e6\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u3069\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u6559\u3048\u3066\u3082\u3089\u3046\u3053\u3068\u3067\u3059\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u7279\u5b9a\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u81ea\u5206\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5c0b\u306d\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Debian 10\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067curl\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u6700\u521d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">curl<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u7279\u5b9a\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u81ea\u5206\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5c0b\u306d\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">curl<\/span> http:\/\/icanhazip.com<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3069\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3057\u3066\u3082\u3001Web\u30d6\u30e9\u30a6\u30b6\u306b\u81ea\u5206\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306eApache\u30da\u30fc\u30b8\u3067\u7a3c\u50cd\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72 \u2014 MariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3061\u4e0a\u3052\u305f\u306e\u3067\u3001\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d3\u30a2\u30f310\u3067\u306f\u3001\u5f93\u6765MySQL\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u305f\u30e1\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3042\u308bmysql-server\u306f\u3001default-mysql-server\u306b\u3088\u3063\u3066\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u30e1\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001Oracle\u306b\u3088\u308b\u5143\u306eMySQL\u30b5\u30fc\u30d0\u30fc\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30d5\u30a9\u30fc\u30af\u3067\u3042\u308bMariaDB\u3092\u53c2\u7167\u3057\u3066\u304a\u308a\u3001\u73fe\u5728\u3001\u30c7\u30d3\u30a2\u30f3\u30d9\u30fc\u30b9\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30d5\u30a9\u30eb\u30c8\u306eMySQL\u4e92\u63db\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002<\/p>\n<p>\u9577\u671f\u306e\u4e92\u63db\u6027\u3092\u8003\u3048\u308b\u3068\u3001metapackage\u3092\u4f7f\u7528\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u5b9f\u969b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3042\u308bmariadb-server\u3092\u4f7f\u3063\u3066MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p>MariaDB\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u6b21\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044:<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> mariadb-server<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u4e86\u3057\u305f\u3089\u3001MariaDB\u306b\u306f\u4e8b\u524d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3044\u304f\u3064\u304b\u306e\u5b89\u5168\u3067\u306f\u306a\u3044\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3092\u524a\u9664\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650\u3057\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> mysql_secure_installation<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001MariaDB\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u3044\u304f\u3064\u304b\u306e\u5909\u66f4\u3092\u52a0\u3048\u308b\u305f\u3081\u306e\u4e00\u9023\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u6700\u521d\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u306f\u3001\u73fe\u5728\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30eb\u30fc\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3088\u3046\u306b\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30eb\u30fc\u30c8\u3068\u6df7\u540c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306b\u5b8c\u5168\u306a\u6a29\u9650\u3092\u6301\u3064\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u3067\u3059\u3002\u6700\u8fd1MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3070\u304b\u308a\u3067\u3001\u307e\u3060\u69cb\u6210\u306e\u5909\u66f4\u3092\u884c\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u7a7a\u767d\u306e\u307e\u307e\u3067\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3067ENTER\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30eb\u30fc\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a2d\u5b9a\u3092\u5e0c\u671b\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5c0b\u306d\u307e\u3059\u3002MariaDB\u3067\u306f\u3001\u901a\u5e38\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3088\u308a\u3082\u5b89\u5168\u306a\u7279\u5225\u306a\u8a8d\u8a3c\u65b9\u6cd5\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u4eca\u306f\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002N\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304b\u3089ENTER\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089\u3001\u3059\u3079\u3066\u306e\u5f8c\u7d9a\u306e\u8cea\u554f\u306b\u5bfe\u3057\u3066\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3092\u53d7\u3051\u5165\u308c\u308b\u305f\u3081\u306b\u3001Y\u3092\u62bc\u3057\u3066\u304b\u3089ENTER\u30ad\u30fc\u3092\u62bc\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u3068\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u524a\u9664\u3055\u308c\u3001\u30ea\u30e2\u30fc\u30c8\u30eb\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u304c\u7121\u52b9\u306b\u3055\u308c\u3001\u3053\u308c\u3089\u306e\u65b0\u3057\u3044\u30eb\u30fc\u30eb\u304c\u30ed\u30fc\u30c9\u3055\u308c\u308b\u305f\u3081\u3001MariaDB\u306f\u3059\u3050\u306b\u3042\u306a\u305f\u304c\u884c\u3063\u305f\u5909\u66f4\u3092\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n<p>\u7d42\u308f\u3063\u305f\u3089\u3001MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> mariadb<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u7ba1\u7406\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30e6\u30fc\u30b6\u30fc\u3067\u3042\u308broot\u3067MariaDB\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3055\u308c\u307e\u3059\u3002sudo\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Welcome to the MariaDB monitor. Commands end with ; or \\g. Your MariaDB connection id is 42 Server version: 10.3.36-MariaDB-0+deb10u2 Debian 10 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the current input statement. MariaDB [(none)]&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u7ba1\u7406\u8005\u306eMariaDB\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a8d\u8a3c\u65b9\u6cd5\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306f\u306a\u304f\u3001unix_socket\u3067\u3042\u308b\u305f\u3081\u3001\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u63a5\u7d9a\u3059\u308b\u969b\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u3053\u3068\u306b\u6c17\u3065\u304d\u307e\u3059\u3002\u6700\u521d\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u61f8\u5ff5\u306e\u3088\u3046\u306b\u601d\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u306b\u3088\u308a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306f\u3088\u308a\u5b89\u5168\u306b\u306a\u308a\u307e\u3059\u3002\u30eb\u30fc\u30c8\u306eMariaDB\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u306e\u306f\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u63a5\u7d9a\u3059\u308bsudo\u7279\u6a29\u3092\u6301\u3064\u30b7\u30b9\u30c6\u30e0\u30e6\u30fc\u30b6\u30fc\u307e\u305f\u306f\u540c\u3058\u7279\u6a29\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u306e\u307f\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001PHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u7ba1\u7406\u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u4f7f\u7528\u3057\u3066\u63a5\u7d9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u7279\u306b\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u30db\u30b9\u30c8\u3059\u308b\u4e88\u5b9a\u304c\u3042\u308b\u5834\u5408\u3001\u5404\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5c02\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3001\u7279\u6a29\u3092\u7de9\u3084\u304b\u306b\u3059\u308b\u3053\u3068\u304c\u6700\u5584\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067MariaDB\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u7d42\u4e86\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\"><span class=\"token builtin class-name\">exit<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>MariaDB\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001LAMP\u30b9\u30bf\u30c3\u30af\u306e\u6700\u7d42\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3042\u308bPHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73\uff1aPHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3042\u306a\u305f\u306f\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306bApache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u30fb\u7ba1\u7406\u3059\u308b\u305f\u3081\u306bMariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002PHP\u306f\u3001\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3042\u308a\u3001\u30b3\u30fc\u30c9\u3092\u51e6\u7406\u3057\u3066\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6700\u7d42\u30e6\u30fc\u30b6\u30fc\u306b\u8868\u793a\u3057\u307e\u3059\u3002PHP\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3001\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306bMariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3057\u3001\u51e6\u7406\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306b\u6e21\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>php\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u52a0\u3048\u3066\u3001PHP\u304cMySQL\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u4f8b\uff1aMariaDB\uff09\u3068\u901a\u4fe1\u3059\u308b\u305f\u3081\u306ePHP\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3042\u308bphp-mysql\u304c\u5fc5\u8981\u3067\u3059\u3002\u307e\u305f\u3001Apache\u304cPHP\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306blibapache2-mod-php\u3082\u5fc5\u8981\u3067\u3059\u3002Core PHP\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u81ea\u52d5\u7684\u306b\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> php libapache2-mod-php php-mysql<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">php <span class=\"token parameter variable\">-v<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>PHP 7.3.31-1~deb10u2 (cli) (built: Dec 15 2022 09:39:10) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.31-1~deb10u2, Copyright (c) 1999-2018, by Zend Technologies<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001Apache\u304c\u30d5\u30a1\u30a4\u30eb\u3092\u63d0\u4f9b\u3059\u308b\u65b9\u6cd5\u3092\u5909\u66f4\u3057\u305f\u3044\u3068\u601d\u3046\u3067\u3057\u3087\u3046\u3002\u73fe\u5728\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u5834\u5408\u3001Apache\u306f\u6700\u521d\u306bindex.html\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3057\u307e\u3059\u3002\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u3088\u308a\u3082PHP\u30d5\u30a1\u30a4\u30eb\u3092\u512a\u5148\u3055\u305b\u308b\u3088\u3046\u306b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306b\u6307\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001Apache\u3092\u6700\u521d\u306bindex.php\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066dir.conf\u30d5\u30a1\u30a4\u30eb\u3092\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u30eb\u30fc\u30c8\u6a29\u9650\u3067\u958b\u304d\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001nano\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/apache2\/mods-enabled\/dir.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u306b\u306a\u308a\u307e\u3059\uff1a<\/p>\n<div>\n<p>\u4ee5\u4e0b\u306f\u65e5\u672c\u8a9e\u3067\u306e\u518d\u8868\u73fe\u3067\u3059\uff1a<\/p>\n<p>\u300c\/etc\/apache2\/mods-enabled\/dir.conf\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>&lt;IfModule mod_dir.c&gt;\r\n    DirectoryIndex index.html index.cgi index.pl <mark>index.php<\/mark> index.xhtml index.htm\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001DirectoryIndex\u6307\u5b9a\u306e\u5f8c\u308d\u306bPHP\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u6700\u521d\u306e\u4f4d\u7f6e\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/etc\/apache2\/mods-enabled\/dir.conf\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b<\/div>\n<pre class=\"post-pre\"><code>&lt;IfModule mod_dir.c&gt;\r\n    DirectoryIndex <mark>index.php<\/mark> index.html index.cgi index.pl index.xhtml index.htm\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<p>\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057nano\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001CTRL+X\u3092\u62bc\u3057\u3066\u304b\u3089\u3001Y\u3001ENTER\u3092\u62bc\u3057\u3066\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u3001Apache\u306e\u8a2d\u5b9a\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl reload apache2<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>systemctl status\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001apache2\u30b5\u30fc\u30d3\u30b9\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl status apache2<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Sample Output\">Sample Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u25cf apache2.service &#8211; The Apache HTTP Server Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: Active: active (running) since Fri 2023-01-20 22:21:24 UTC; 2min 12s ago Docs: https:\/\/httpd.apache.org\/docs\/2.4\/ Process: 13076 ExecStart=\/usr\/sbin\/apachectl start (code=exited, status=0\/SUCC Process: 13097 ExecReload=\/usr\/sbin\/apachectl graceful (code=exited, status=0\/ Main PID: 13080 (apache2) Tasks: 6 (limit: 4915) Memory: 13.7M CGroup: \/system.slice\/apache2.service \u251c\u250013080 \/usr\/sbin\/apache2 -k start \u251c\u250013101 \/usr\/sbin\/apache2 -k start \u251c\u250013102 \/usr\/sbin\/apache2 -k start \u251c\u250013103 \/usr\/sbin\/apache2 -k start \u251c\u250013104 \/usr\/sbin\/apache2 -k start \u2514\u250013105 \/usr\/sbin\/apache2 -k start<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001\u3042\u306a\u305f\u306eLAMP\u30b9\u30bf\u30c3\u30af\u306f\u5b8c\u5168\u306b\u7a3c\u50cd\u3057\u3066\u3044\u307e\u3059\u304c\u3001PHP\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u30c6\u30b9\u30c8\u3059\u308b\u524d\u306b\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u3092\u4fdd\u6301\u3059\u308b\u305f\u3081\u306e\u9069\u5207\u306aApache\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u6700\u5584\u3067\u3059\u3002\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u3053\u308c\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d74 &#8211; \u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u305f\u3081\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/h2>\n<p>Apache\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u30011\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u8907\u6570\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u30db\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001\u8a2d\u5b9a\u306e\u8a73\u7d30\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3059\u308b\u305f\u3081\u306e\u4eee\u60f3\u30db\u30b9\u30c8\uff08Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306b\u4f3c\u305f\u3082\u306e\uff09\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001your_domain\u3068\u3044\u3046\u30c9\u30e1\u30a4\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u3054\u81ea\u8eab\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1aDNS\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3068\u3057\u3066Silicon Cloud\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u65b0\u3057\u3044\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u8a2d\u5b9a\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u30dd\u30a4\u30f3\u30c8\u3059\u308b\u65b9\u6cd5\u306e\u8a73\u7d30\u306a\u624b\u9806\u306b\u3064\u3044\u3066\u3001\u5f53\u793e\u306e\u88fd\u54c1\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Apache\u306f\/var\/www\/html\u306b\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u63d0\u4f9b\u3057\u3001\/etc\/apache2\/sites-available\/000-default.conf\u306b\u542b\u307e\u308c\u308b\u8a2d\u5b9a\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001PHP\u74b0\u5883\u306e\u30c6\u30b9\u30c8\u7528\u306b\u65b0\u3057\u3044\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u8907\u6570\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u30921\u3064\u306eApache\u30b5\u30fc\u30d0\u30fc\u3067\u30db\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001your_domain\u30b5\u30a4\u30c8\u306e\u305f\u3081\u306b\/var\/www\u5185\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3082\u4f5c\u6210\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u4ed6\u306e\u30b5\u30a4\u30c8\u3068\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b\/var\/www\/html\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u3042\u306a\u305f\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u30eb\u30fc\u30c8\u30a6\u30a7\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> \/var\/www\/<mark>your_domain<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u73fe\u5728\u306e\u30b7\u30b9\u30c6\u30e0\u30e6\u30fc\u30b6\u30fc\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u306e$USER\u74b0\u5883\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u6a29\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> <span class=\"token environment constant\">$USER<\/span><span class=\"token builtin class-name\">:<\/span><span class=\"token environment constant\">$USER<\/span> \/var\/www\/<mark>your_domain<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u308c\u304b\u3089\u3001\u304a\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u3063\u3066\u3001Apache\u306esites-available\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u65b0\u3057\u3044\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001nano\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/apache2\/sites-available\/<mark>your_domain<\/mark>.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u7a7a\u767d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\u3092\u81ea\u5206\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3068\u5171\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u3042\u306a\u305f\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300c\/etc\/apache2\/sites-available\/your_domain\u300d\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<pre class=\"post-pre\"><code>&lt;VirtualHost *:80&gt;\r\n    ServerName <mark>your_domain<\/mark>\r\n    ServerAlias www.<mark>your_domain<\/mark> \r\n    ServerAdmin webmaster@localhost\r\n    DocumentRoot \/var\/www\/<mark>your_domain<\/mark>\r\n    ErrorLog ${APACHE_LOG_DIR}\/error.log\r\n    CustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n&lt;\/VirtualHost&gt;\r\n<\/code><\/pre>\n<p>\u3053\u306eVirtualHost\u306e\u8a2d\u5b9a\u3067\u306f\u3001Apache\u306b\u5bfe\u3057\u3066\/var\/www\/your_domain\u3092\u30a6\u30a7\u30d6\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001your_domain\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u30c9\u30e1\u30a4\u30f3\u540d\u306a\u3057\u3067Apache\u3092\u30c6\u30b9\u30c8\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u5404\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u884c\u306e\u5148\u982d\u306b#\uff08\u30b7\u30e3\u30fc\u30d7\uff09\u6587\u5b57\u3092\u8ffd\u52a0\u3057\u3066\u3001ServerName\u3068ServerAlias\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u524a\u9664\u307e\u305f\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u696d\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u3001a2ensite\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u6709\u52b9\u5316\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> a2ensite <mark>your_domain<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Apache\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u3092\u304a\u8003\u3048\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306f\u5fc5\u8981\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u3053\u306e\u5834\u5408\u3001Apache\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u304c\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u4e0a\u66f8\u304d\u3057\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002Apache\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u7121\u52b9\u306b\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> a2dissite 000-default<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> apache2ctl configtest<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001Apache\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u3053\u308c\u3089\u306e\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl reload apache2<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001PHP\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306ePHP\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d75 \u30fc Web\u30b5\u30fc\u30d0\u30fc\u3067\u306ePHP\u51e6\u7406\u306e\u30c6\u30b9\u30c8<\/h2>\n<p>\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u3092\u30db\u30b9\u30c8\u3059\u308b\u305f\u3081\u306e\u72ec\u81ea\u306e\u5834\u6240\u3092\u6301\u3063\u305f\u4eca\u3001Apache\u304cPHP\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001PHP\u306e\u30c6\u30b9\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u306e\u30a6\u30a7\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u300cinfo.php\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">nano<\/span> \/var\/www\/<mark>your_domain<\/mark>\/info.php<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u7a7a\u767d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u304b\u308c\u307e\u3059\u3002\u6b21\u306b\u3001\u6709\u52b9\u306aPHP\u30b3\u30fc\u30c9\u3067\u3042\u308b\u4ee5\u4e0b\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<p>\/var\/www\/your_domain\/info.php\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068:<\/p>\n<p>\/\u30d0\u30fc\/WWW\/\u3042\u306a\u305f\u306e_\u30c9\u30e1\u30a4\u30f3\/\u60c5\u5831.php<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>&lt;?php\r\nphpinfo();\r\n<\/code><\/pre>\n<p>\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306a\u6587\u306b\u8a00\u3044\u76f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff1a<br \/>\n\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3092\u958b\u304d\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u307e\u305f\u306fIP\u30a2\u30c9\u30ec\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u305d\u306e\u5f8c\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u540d\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u540d\u306finfo.php\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>your_domain<\/mark>\/info.php\r\n<\/code><\/pre>\n<p>\u3053\u3061\u3089\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306ePHP\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u4f8b\u3067\u3059\u3002 (Kochira ha deforuto no PHP u~ebu pe&#8211;ji no rei desu.)<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65644899daa94e2bdf7ae155\/117-0.PNG\" alt=\"Default PHP info\" \/><\/div>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u306fPHP\u306e\u89b3\u70b9\u304b\u3089\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u95a2\u3059\u308b\u57fa\u672c\u7684\u306a\u60c5\u5831\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30c7\u30d0\u30c3\u30b0\u3084\u8a2d\u5b9a\u304c\u6b63\u3057\u304f\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u30d6\u30e9\u30a6\u30b6\u3067\u3053\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u3044\u308b\u306a\u3089\u3001PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u30da\u30fc\u30b8\u3092\u901a\u3058\u3066PHP\u30b5\u30fc\u30d0\u30fc\u306b\u95a2\u3059\u308b\u95a2\u9023\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u305f\u5f8c\u306f\u3001PHP\u74b0\u5883\u3068Debian\u30b5\u30fc\u30d0\u30fc\u306b\u95a2\u3059\u308b\u6a5f\u5bc6\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u306e\u304c\u30d9\u30b9\u30c8\u3067\u3059\u3002\u524a\u9664\u3059\u308b\u306b\u306f\u300crm\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">rm<\/span> \/var\/www\/<mark>your_domain<\/mark>\/info.php<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5fc5\u8981\u306a\u3089\u3070\u3001\u5f8c\u3067\u518d\u3073\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u3044\u3064\u3067\u3082\u3053\u306e\u30da\u30fc\u30b8\u3092\u518d\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d76 \u2014 PHP\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306e\u30c6\u30b9\u30c8\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09<\/h2>\n<p>PHP\u304cMariaDB\u306b\u63a5\u7d9a\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u30c6\u30b9\u30c8\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3068\u3068\u3082\u306b\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3001PHP\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u305d\u306e\u5185\u5bb9\u3092\u30af\u30a8\u30ea\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u524d\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3001\u9069\u5207\u306b\u69cb\u6210\u3055\u308c\u305f\u65b0\u3057\u3044MariaDB\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001root\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> mariadb<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\">CREATE DATABASE <mark>example_database<\/mark><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3001\u4f5c\u6210\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b8c\u5168\u306a\u7279\u6a29\u3092\u4e0e\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u8a8d\u8a3c\u3055\u308c\u308b\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fcexample_user\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092password\u3068\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u5b89\u5168\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u5165\u308c\u66ff\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\">CREATE <span class=\"token environment constant\">USER<\/span> <span class=\"token string\">&#8216;<mark>example_user<\/mark>&#8216;<\/span>@<span class=\"token string\">&#8216;%&#8217;<\/span> IDENTIFIED BY <span class=\"token string\">&#8216;<mark>password<\/mark>&#8216;<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u306bexample_database\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u8a31\u53ef\u3092\u4e0e\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\">GRANT ALL ON <mark>example_database<\/mark>.* TO <span class=\"token string\">&#8216;<mark>example_user<\/mark>&#8216;<\/span>@<span class=\"token string\">&#8216;%&#8217;<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001example_database \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7ba1\u7406\u6a29\u9650\u3092\u6301\u3064 example_user \u30e6\u30fc\u30b6\u30fc\u306b\u4e0e\u3048\u3089\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u307e\u305f\u306f\u5909\u66f4\u3059\u308b\u3053\u3068\u3092\u30b5\u30fc\u30d0\u30fc\u3067\u9632\u6b62\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u7279\u6a29\u3092\u30d5\u30e9\u30c3\u30b7\u30e5\u3057\u3066\u4fdd\u5b58\u3055\u308c\u3001\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u5229\u7528\u53ef\u80fd\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\">FLUSH PRIVILEGES<span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306b\u7d9a\u3044\u3066\u3001MariaDB\u30b7\u30a7\u30eb\u3092\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\"><span class=\"token builtin class-name\">exit<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u304c\u9069\u5207\u306a\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u518d\u3073\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u4eca\u5ea6\u306f\u30ab\u30b9\u30bf\u30e0\u30e6\u30fc\u30b6\u30fc\u306e\u8cc7\u683c\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mariadb <span class=\"token parameter variable\">-u<\/span> <mark>example_user<\/mark> <span class=\"token parameter variable\">-p<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u5f8c\u3001\u4f8b\u793a\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u4f7f\u7528\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u305f\u3081\u306e\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u300c-p\u300d\u30d5\u30e9\u30b0\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f8b\u793a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\">SHOW DATABASES<span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ | Database | +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ | <mark>example_database<\/mark> | | information_schema | +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ 2 rows in set (0.000 sec)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001todo_list\u3068\u3044\u3046\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002MariaDB\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u3001\u4ee5\u4e0b\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\">CREATE TABLE <mark>example_database<\/mark>.<mark>todo_list<\/mark> <span class=\"token punctuation\">(<\/span><\/li>\n<li data-prefix=\"MariaDB [(none)]&gt;\">item_id INT AUTO_INCREMENT,<\/li>\n<li data-prefix=\"MariaDB [(none)]&gt;\">content VARCHAR<span class=\"token punctuation\">(<\/span><span class=\"token number\">255<\/span><span class=\"token punctuation\">)<\/span>,<\/li>\n<li data-prefix=\"MariaDB [(none)]&gt;\">PRIMARY KEY<span class=\"token punctuation\">(<\/span>item_id<span class=\"token punctuation\">)<\/span><\/li>\n<li data-prefix=\"MariaDB [(none)]&gt;\"><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u3044\u304f\u3064\u304b\u306e\u884c\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f55\u56de\u304b\u7e70\u308a\u8fd4\u3057\u3001\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u7570\u306a\u308b\u5024\u3092\u4f7f\u7528\u3057\u3066\u8a66\u9a13\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\">INSERT INTO <mark>example_database<\/mark>.<mark>todo_list<\/mark> <span class=\"token punctuation\">(<\/span>content<span class=\"token punctuation\">)<\/span> VALUES <span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;<mark>My first important item<\/mark>&#8220;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30fc\u30bf\u304c\u6b63\u5e38\u306b\u30c6\u30fc\u30d6\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\">SELECT * FROM <mark>example_database<\/mark>.<mark>todo_list<\/mark><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ | item_id | content | +&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ | 1 | My first important item | | 2 | My second important item | | 3 | My third important item | | 4 | and this one more thing | +&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ 4 rows in set (0.000 sec)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u6709\u52b9\u306a\u30c7\u30fc\u30bf\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u5f8c\u3001MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u7d42\u4e86\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"MariaDB [(none)]&gt;\"><span class=\"token builtin class-name\">exit<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3067\u306f\u3001MariaDB\u306b\u63a5\u7d9a\u3057\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30af\u30a8\u30ea\u3059\u308b\u305f\u3081\u306ePHP\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u304a\u597d\u307f\u306e\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ab\u30b9\u30bf\u30e0\u306e\u30a6\u30a7\u30d6\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u65b0\u3057\u3044PHP\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u4f8b\u3067\u306fnano\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">nano<\/span> \/var\/www\/<mark>your_domain<\/mark>\/<mark>todo_list.php<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306ePHP\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001MariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3057\u3001todo_list\u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9\u3092\u30af\u30a8\u30ea\u3057\u3066\u3001\u7d50\u679c\u3092\u30ea\u30b9\u30c8\u5f62\u5f0f\u3067\u8868\u793a\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u81ea\u5206\u81ea\u8eab\u306e\u4f8b\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5024\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3092\u5fd8\u308c\u305a\u306b\u3001\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092todo_list.php\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/var\/www\/your_domain\/todo_list.php\u306e\u65e5\u672c\u8a9e\u3067\u306e\u8868\u73fe: \b\u30db\u30b9\u30c8\/\u5c02\u7528\u30c9\u30e1\u30a4\u30f3\/ToDo\u30ea\u30b9\u30c8.php<\/div>\n<pre class=\"post-pre\"><code><span class=\"token php language-php\"><span class=\"token delimiter important\">&lt;?php<\/span>\r\n<span class=\"token variable\">$user<\/span> <span class=\"token operator\">=<\/span> <span class=\"token string double-quoted-string\">\"<mark>example_user<\/mark>\"<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token variable\">$password<\/span> <span class=\"token operator\">=<\/span> <span class=\"token string double-quoted-string\">\"<mark>password<\/mark>\"<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token variable\">$database<\/span> <span class=\"token operator\">=<\/span> <span class=\"token string double-quoted-string\">\"<mark>example_database<\/mark>\"<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token variable\">$table<\/span> <span class=\"token operator\">=<\/span> <span class=\"token string double-quoted-string\">\"<mark>todo_list<\/mark>\"<\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n<span class=\"token keyword\">try<\/span> <span class=\"token punctuation\">{<\/span>\r\n  <span class=\"token variable\">$db<\/span> <span class=\"token operator\">=<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">PDO<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string double-quoted-string\">\"mysql:host=localhost;dbname=<span class=\"token interpolation\"><span class=\"token variable\">$database<\/span><\/span>\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token variable\">$user<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token variable\">$password<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n  <span class=\"token keyword\">echo<\/span> <span class=\"token string double-quoted-string\">\"&lt;h2&gt;TODO&lt;\/h2&gt;&lt;ol&gt;\"<\/span><span class=\"token punctuation\">;<\/span> \r\n  <span class=\"token keyword\">foreach<\/span><span class=\"token punctuation\">(<\/span><span class=\"token variable\">$db<\/span><span class=\"token operator\">-&gt;<\/span><span class=\"token function\">query<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string double-quoted-string\">\"SELECT content FROM <span class=\"token interpolation\"><span class=\"token variable\">$table<\/span><\/span>\"<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">as<\/span> <span class=\"token variable\">$row<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>\r\n    <span class=\"token keyword\">echo<\/span> <span class=\"token string double-quoted-string\">\"&lt;li&gt;\"<\/span> <span class=\"token operator\">.<\/span> <span class=\"token variable\">$row<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string single-quoted-string\">'content'<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">.<\/span> <span class=\"token string double-quoted-string\">\"&lt;\/li&gt;\"<\/span><span class=\"token punctuation\">;<\/span>\r\n  <span class=\"token punctuation\">}<\/span>\r\n  <span class=\"token keyword\">echo<\/span> <span class=\"token string double-quoted-string\">\"&lt;\/ol&gt;\"<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">catch<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">PDOException<\/span> <span class=\"token variable\">$e<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>\r\n    <span class=\"token keyword\">print<\/span> <span class=\"token string double-quoted-string\">\"Error!: \"<\/span> <span class=\"token operator\">.<\/span> <span class=\"token variable\">$e<\/span><span class=\"token operator\">-&gt;<\/span><span class=\"token function\">getMessage<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">.<\/span> <span class=\"token string double-quoted-string\">\"&lt;br\/&gt;\"<\/span><span class=\"token punctuation\">;<\/span>\r\n    <span class=\"token keyword\">die<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span>\r\n<\/span><\/code><\/pre>\n<p>\u7de8\u96c6\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u3053\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u307e\u305f\u306f\u516c\u958bIP\u30a2\u30c9\u30ec\u30b9\u306b \/todo_list.php \u3092\u7d9a\u3051\u3066\u8a2a\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>your_domain<\/mark>\/todo_list.php\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306f\u3001\u8a2d\u7f6e\u3057\u3066\u3044\u308b\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9\u3092\u8a2a\u554f\u8005\u306b\u516c\u958b\u3057\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65644899daa94e2bdf7ae155\/165-0.png\" alt=\"Example PHP todo list\" \/><\/div>\n<p>\u305d\u308c\u306fPHP\u74b0\u5883\u304c\u6e96\u5099\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002MariaDB\u30b5\u30fc\u30d0\u30fc\u3068\u63a5\u7d9a\u3057\u3001\u3084\u308a\u53d6\u308a\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Apache\u3092Web\u30b5\u30fc\u30d0\u30fc\u3001MariaDB\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001\u8a2a\u554f\u8005\u306bPHP\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306e\u67d4\u8edf\u306a\u57fa\u76e4\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306e\u5177\u4f53\u7684\u306a\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u63a5\u7d9a\u3092HTTPS\u7d4c\u7531\u3067\u5b89\u5168\u306b\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u3001Let&#8217;s Encrypt\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306e\u305f\u3081\u306eComposer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u30ac\u30a4\u30c9\u3082\u8aad\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b LAMP\u30b9\u30bf\u30c3\u30af\u306f\u3001\u901a\u5e38\u4e00\u7dd2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30b0\u30eb\u30fc\u30d7\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u52d5\u7684\u306a\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u30db\u30b9\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u3053\u306e\u7528\u8a9e\u306f\u3001Linux\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[17,26],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-17","tag-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Debian 10\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/debian-10\u306blinux\u3001apache\u3001mariadb\u3001php\uff08lamp\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Debian 10\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/debian-10\u306blinux\u3001apache\u3001mariadb\u3001php\uff08lamp\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-10T01:58:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T04:38:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65644899daa94e2bdf7ae155\/25-0.png\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"34\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/\",\"name\":\"Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-10-10T01:58:07+00:00\",\"dateModified\":\"2025-07-31T04:38:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"Debian 10\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Debian 10\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/debian-10\u306blinux\u3001apache\u3001mariadb\u3001php\uff08lamp\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\/","og_locale":"ja_JP","og_type":"article","og_title":"Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5","og_description":"Debian 10\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/debian-10\u306blinux\u3001apache\u3001mariadb\u3001php\uff08lamp\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-10-10T01:58:07+00:00","article_modified_time":"2025-07-31T04:38:58+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65644899daa94e2bdf7ae155\/25-0.png"}],"author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"34\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/","name":"Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-10-10T01:58:07+00:00","dateModified":"2025-07-31T04:38:58+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"Debian 10\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Debian 10\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/debian-10%e3%81%ablinux%e3%80%81apache%e3%80%81mariadb%e3%80%81php%ef%bc%88lamp%ef%bc%89%e3%82%b9%e3%82%bf%e3%83%83%e3%82%af%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":325668,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions\/325668"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}