{"id":235,"date":"2023-04-08T05:17:33","date_gmt":"2023-11-10T10:29:48","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/"},"modified":"2025-07-31T21:51:56","modified_gmt":"2025-07-31T12:51:56","slug":"%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/","title":{"rendered":"\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>\u300cLAMP\u300d\u30b9\u30bf\u30c3\u30af\u306f\u3001\u5178\u578b\u7684\u306b\u306f\u5171\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\u3042\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u306a\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30db\u30b9\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\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\u7d44\u307f\u5408\u308f\u3055\u308c\u307e\u3059\u3002\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u306fMariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u683c\u7d0d\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\u3092\u542b\u3080\u4e00\u90e8\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001MySQL\u306e\u4ee3\u66ff\u3068\u3057\u3066MariaDB\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Debian 11 \u30b5\u30fc\u30d0\u30fc\u306b LAMP \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\u3066 MariaDB \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6 (Zentei jouken)<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3046\u305f\u3081\u306b\u306f\u3001Debian 11 \u30b5\u30fc\u30d0\u30fc\u3068\u3001\u975e\u30eb\u30fc\u30c8\u306esudo\u304c\u6709\u52b9\u306a\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3001\u305d\u3057\u3066\u57fa\u672c\u7684\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002Debian 11 \u306e\u521d\u671f\u30b5\u30fc\u30d0\u30fc\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30ac\u30a4\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3053\u308c\u3089\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d71 \u2014 Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u66f4\u65b0<\/h2>\n<p>Apache\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u4e16\u754c\u3067\u6700\u3082\u4eba\u6c17\u306e\u3042\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306e\u4e00\u3064\u3067\u3059\u3002\u5341\u5206\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u6d3b\u767a\u306a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u5b58\u5728\u3057\u3001\u30a6\u30a7\u30d6\u306e\u6b74\u53f2\u306e\u5927\u90e8\u5206\u3067\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u304d\u305f\u305f\u3081\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u306b\u306f\u7d20\u6674\u3089\u3057\u3044\u9078\u629e\u80a2\u3067\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u66f4\u65b0\u304b\u3089\u59cb\u3081\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057\u4eca\u56de\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067sudo\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u521d\u3081\u3066\u306a\u3089\u3070\u3001\u30b7\u30b9\u30c6\u30e0\u30d1\u30c3\u30b1\u30fc\u30b8\u3092apt\u3067\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u7279\u6a29\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\u3092\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>\u305d\u306e\u5f8c\u3001\u4ee5\u4e0b\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\u3088\u3046\u306b\u4fc3\u3057\u307e\u3059\u3002Y\u3068\u5165\u529b\u3057\u3066\u3001ENTER\u30ad\u30fc\u3092\u62bc\u3057\u3066\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\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\u521d\u671f\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\u304a\u3088\u3073\u6709\u52b9\u5316\u3057\u305f\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304cHTTP\u304a\u3088\u3073HTTPS\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Debian 11\u3067\u306f\u3001UFW\u306b\u306f\u30a2\u30d7\u30ea\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u642d\u8f09\u3055\u308c\u3066\u304a\u308a\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306e\u5b8c\u5168\u306a\u30ea\u30b9\u30c8\u3092\u8868\u793a\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> 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>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u4f7f\u7528\u3055\u308c\u308b\u30dd\u30fc\u30c8\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306b\u30ea\u30b9\u30c8\u3055\u308c\u3066\u3044\u308bWWW\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\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>\u300cWWW\u306e\u30d5\u30eb\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092ufw\u30a2\u30d7\u30ea\u60c5\u5831\u3067\u30a4\u30f3\u30b9\u30da\u30af\u30c8\u3059\u308b\u3068\u3001\u51fa\u529b\u306b\u306f\u30dd\u30fc\u30c880\u3068443\u3078\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u300d<\/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>\u6b21\u306b\u3001\u3053\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u306eHTTP\u304a\u3088\u3073HTTPS\u306e\u5165\u529b\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>\u8a08\u753b\u901a\u308a\u306b\u3059\u3079\u3066\u9032\u3093\u3060\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958bIP\u30a2\u30c9\u30ec\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>your_server_ip<\/mark>\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u60c5\u5831\u3084\u30c6\u30b9\u30c8\u306e\u76ee\u7684\u3067\u63d0\u4f9b\u3055\u308c\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306eDebian 11 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\/65647ad6daa94e2bdf7b8b2f\/25-0.png\" alt=\"Debian 11 Apache default\" \/><\/div>\n<p>\u3082\u3057\u30d6\u30e9\u30a6\u30b6\u304c\u3053\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u3044\u308b\u306a\u3089\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\u901a\u3058\u3066\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30b5\u30fc\u30d0\u30fc\u306e\u30d1\u30d6\u30ea\u30c3\u30afIP\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\u3092\u77e5\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u3067\u305d\u308c\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u901a\u5e38\u3001SSH\u7d4c\u7531\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\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\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u3001iproute2\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066IP\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\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\u3063\u3066\u30012\u884c\u307e\u305f\u306f3\u884c\u623b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30a2\u30c9\u30ec\u30b9\u306f\u6b63\u3057\u3044\u3082\u306e\u3067\u3059\u304c\u3001\u304a\u4f7f\u3044\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u304c\u5229\u7528\u53ef\u80fd\u306a\u306e\u306f1\u3064\u3060\u3051\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u65e5\u672c\u8a9e\u3067\u306e\u8a00\u3044\u63db\u3048\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059:<\/p>\n<p>\u5916\u90e8\u306e\u30d1\u30fc\u30c6\u30a3\u306b\u63a5\u89e6\u3057\u3066\u3001\u3042\u306a\u305f\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u3069\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u304b\u3092\u77e5\u308b\u305f\u3081\u306b\u3001curl\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3059\u308b\u306e\u3082\u4ee3\u66ff\u624b\u6cd5\u306e1\u3064\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u7279\u5b9a\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u3042\u306a\u305f\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5c0b\u306d\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\">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>\u597d\u304d\u306a\u65b9\u6cd5\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306eApache\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001Web\u30d6\u30e9\u30a6\u30b6\u306b\u81ea\u5206\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72\uff1aMariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u7ba1\u3057\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>Debian 11\u3067\u306f\u3001\u5f93\u6765MySQL\u30b5\u30fc\u30d0\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\u30b8mysql-server\u304c\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\u3001\u30aa\u30e9\u30af\u30eb\u306b\u3088\u308b\u5143\u3005\u306eMySQL\u30b5\u30fc\u30d0\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30d5\u30a9\u30fc\u30af\u3067\u3042\u308bMariaDB\u3092\u53c2\u7167\u3057\u3066\u304a\u308a\u3001\u73fe\u5728\u306fDebian\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\u3067\u3059\u3002<\/p>\n<p>\u9577\u671f\u7684\u306a\u4e92\u63db\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30e1\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4ee3\u308f\u308a\u306b\u3001MariaDB\u306e\u672c\u5f53\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3042\u308bmariadb-server\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\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\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> 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\u5b8c\u4e86\u3057\u305f\u3089\u3001MariaDB\u306b\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\u306b\u3088\u308a\u3001\u3044\u304f\u3064\u304b\u306e\u5b89\u5168\u3067\u306a\u3044\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u304c\u524a\u9664\u3055\u308c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u5236\u9650\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u958b\u59cb\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\u3001\u4e00\u9023\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u901a\u3058\u3066\u3001MariaDB\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u3044\u304f\u3064\u304b\u306e\u5909\u66f4\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u3067\u304d\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\u308c\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30eb\u30fc\u30c8\u3068\u306f\u7570\u306a\u308b\u3082\u306e\u3067\u3059\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\u306b\u5bfe\u3057\u3066\u5b8c\u5168\u306a\u7279\u6a29\u3092\u6301\u3064\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u3067\u3059\u3002MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3070\u304b\u308a\u3067\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\u3067\u3059\u306e\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\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30eb\u30fc\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u304b\u3069\u3046\u304b\u5c0b\u306d\u307e\u3059\u3002MariaDB\u3067\u306f\u3001\u901a\u5e38\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u3046\u3088\u308a\u3082\u5b89\u5168\u306a\u7279\u5225\u306a\u8a8d\u8a3c\u65b9\u6cd5\u3092\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u306b\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u4eca\u306f\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002N\u3092\u62bc\u3057\u3066\u304b\u3089ENTER\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3053\u304b\u3089\u3001Y\u3092\u62bc\u3057\u3066\u304b\u3089ENTER\u3092\u62bc\u3059\u3068\u3001\u305d\u306e\u5f8c\u306e\u5168\u3066\u306e\u8cea\u554f\u306b\u5bfe\u3057\u3066\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u53d7\u3051\u5165\u308c\u308b\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\u5316\u3055\u308c\u3001\u3055\u3089\u306b\u3053\u308c\u3089\u306e\u65b0\u3057\u3044\u30eb\u30fc\u30eb\u304c\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001MariaDB\u306f\u3059\u3050\u306b\u5909\u66f4\u5185\u5bb9\u3092\u53cd\u6620\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u696d\u304c\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\u969b\u306bsudo\u304c\u4f7f\u7528\u3055\u308c\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u7ba1\u7406\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30e6\u30fc\u30b6\u30fc\u3067\u3042\u308broot\u3068\u3057\u3066MariaDB\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a\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 41 Server version: 10.5.15-MariaDB-0+deb11u1 Debian 11 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>Admin\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u63a5\u7d9a\u3059\u308b\u969b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u6c17\u3065\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u305f\u3081\u3001\u7ba1\u7406\u8005\u7528\u306eMariaDB\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a8d\u8a3c\u65b9\u6cd5\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306f\u306a\u304funix_socket\u3067\u3059\u3002\u6700\u521d\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u61f8\u5ff5\u306e\u3088\u3046\u306b\u601d\u3048\u307e\u3059\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\u306a\u305c\u306a\u3089\u3001root MariaDB\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\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u306e\u307f\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u304b\u3089\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\u30b9root\u30e6\u30fc\u30b6\u30fc\u3067\u63a5\u7d9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\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\u306f\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\u6a29\u9650\u3092\u5236\u9650\u3059\u308b\u306e\u304c\u6700\u5584\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\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>MariaDB\u30b5\u30fc\u30d0\u30fc\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u78ba\u4fdd\u3055\u308c\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 &#8211; PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3042\u306a\u305f\u306f\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\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u305f\u3081\u306bMariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002PHP\u306f\u3001\u6700\u7d42\u30e6\u30fc\u30b6\u30fc\u306b\u52d5\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3092\u51e6\u7406\u3059\u308b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\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\u3092Web\u30b5\u30fc\u30d0\u30fc\u306b\u6e21\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>php\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4ed6\u306b\u3001PHP\u304cMySQL\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u305f\u3068\u3048\u3070MariaDB\uff09\u3068\u901a\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308bPHP\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\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u81ea\u52d5\u7684\u306b\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\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=\"$\"><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.4.30 (cli) (built: Jul 7 2022 15:51:43) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001LAMP\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\u3084\u30d5\u30a9\u30eb\u30c0\u3092\u4fdd\u6301\u3059\u308b\u305f\u3081\u306b\u9069\u5207\u306aApache\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u6700\u5584\u3067\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\u306e\u4f5c\u6210<\/h2>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001Apache Web\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u4eee\u60f3\u30db\u30b9\u30c8\uff08Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306b\u985e\u4f3c\uff09\u3092\u4f5c\u6210\u3057\u3066\u3001\u8a2d\u5b9a\u8a73\u7d30\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u30011\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u8907\u6570\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u30db\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001your_domain\u3068\u3044\u3046\u30c9\u30e1\u30a4\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u72ec\u81ea\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\uff1a\u3082\u3057Silicon Cloud\u3092DNS\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3068\u3057\u3066\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\u306b\u3064\u3044\u3066\u306f\u3001\u5f53\u793e\u306e\u88fd\u54c1\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Apache\u306f \/var\/www\/html \u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u63d0\u4f9b\u3057\u3001\u305d\u308c\u306b\u306f \/etc\/apache2\/sites-available\/000-default.conf \u306b\u542b\u307e\u308c\u308b\u8a2d\u5b9a\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\/var\/www\/html \u306e\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\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\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\u30011\u3064\u306eApache\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u8907\u6570\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\/var\/www\/html \u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u6b8b\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u4ed6\u306e\u30b5\u30a4\u30c8\u306b\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u306b\u63d0\u4f9b\u3055\u308c\u308b\u3088\u3046\u3001\/var\/www \u5185\u306b\u3042\u308b your_domain \u30b5\u30a4\u30c8\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3082\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u30eb\u30fc\u30c8\u30a6\u30a7\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u59cb\u3081\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\">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$USER\u74b0\u5883\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u73fe\u5728\u306e\u30b7\u30b9\u30c6\u30e0\u30e6\u30fc\u30b6\u30fc\u3092\u53c2\u7167\u3059\u308b\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\u3067\u306f\u3001\u304a\u597d\u307f\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\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\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f\u3001nano\u3092\u4f7f\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>\u3053\u308c\u306b\u3088\u308a\u65b0\u3057\u3044\u7a7a\u767d\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\u3067\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u300c\/etc\/apache2\/sites-available\/your_domain\u300d<\/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>\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002nano\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001CTRL + X\u3001Y\u3001\u305d\u3057\u3066ENTER \u3092\u62bc\u3059\u3053\u3068\u3067\u4fdd\u5b58\u3068\u9589\u3058\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306eVirtualHost\u306e\u8a2d\u5b9a\u3067\u306f\u3001Apache\u306b\/var\/www\/your_domain\u3092\u30a6\u30a7\u30d6\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066your_domain\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002\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\u30b7\u30e3\u30fc\u30d7\u8a18\u53f7\uff08#\uff09\u3092\u8ffd\u52a0\u3057\u3066ServerName\u3068ServerAlias\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u524a\u9664\u307e\u305f\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u3001a2ensite\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u6709\u52b9\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> 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\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\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\u305f\u3081\u3001\u3053\u308c\u304c\u5fc5\u8981\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>\u69cb\u6210\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\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=\"$\"><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\u3001\u3053\u308c\u3089\u306e\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u306bApache\u3092\u518d\u8d77\u52d5\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\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\u306b\u3001PHP\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d7\uff15\u2014\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u4e0a\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\u304c\u7528\u610f\u3067\u304d\u305f\u306e\u3067\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\u306ePHP\u306e\u30c6\u30b9\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305a\u3001\u30ab\u30b9\u30bf\u30e0\u306e\u30a6\u30a7\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\u5185\u306binfo.php\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\u3063\u3066\u3001\u7a7a\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u304b\u308c\u307e\u3059\u3002\u6709\u52b9\u306aPHP\u30b3\u30fc\u30c9\u3067\u3042\u308b\u4ee5\u4e0b\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u90e8\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/var\/www\/your_domain\/info.php\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<br \/>\n\u300c\/var\/www\/your_domain\/info.php\u300d<\/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>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c6\u30b9\u30c8\u3059\u308b\u306b\u306f\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u306b\u79fb\u52d5\u3057\u3066\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\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u540d\uff08\u3053\u306e\u5834\u5408\u306finfo.php\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>your_domain<\/mark>\/info.php\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306ePHP\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647ad6daa94e2bdf7b8b2f\/99-0.PNG\" alt=\"Debian 11 default PHP info\" \/><\/div>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u306f\u3001PHP\u306e\u89b3\u70b9\u304b\u3089\u30b5\u30fc\u30d0\u30fc\u306b\u95a2\u3059\u308b\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\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u3042\u306a\u305f\u304c\u3053\u306e\u30da\u30fc\u30b8\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u671f\u5f85\u901a\u308a\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u30da\u30fc\u30b8\u3092\u901a\u3058\u3066\u3001\u3042\u306a\u305f\u306ePHP\u30b5\u30fc\u30d0\u30fc\u306b\u95a2\u3059\u308b\u95a2\u9023\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u305f\u5f8c\u3001PHP\u74b0\u5883\u3068Debian\u30b5\u30fc\u30d0\u30fc\u306b\u95a2\u3059\u308b\u6a5f\u5bc6\u60c5\u5831\u3092\u542b\u3093\u3067\u3044\u308b\u305f\u3081\u3001\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u6700\u5584\u3067\u3059\u3002\u524a\u9664\u3059\u308b\u305f\u3081\u306brm\u30b3\u30de\u30f3\u30c9\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=\"$\"><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>\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u3044\u3064\u3067\u3082\u3053\u306e\u30da\u30fc\u30b8\u3092\u518d\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d76 \u2014 PHP\u304b\u3089\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306e\u30c6\u30b9\u30c8\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09<\/h2>\n<p>PHP\u304cMariaDB\u3068\u63a5\u7d9a\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\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\u3092\u6301\u3064\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\u3057\u3066\u307f\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u3092\u884c\u3046\u524d\u306b\u3001\u9069\u5207\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u65b0\u3057\u3044MariaDB\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>example_database\u3068\u3044\u3046\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u4f8b_user\u3068\u3044\u3046\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u540d\u524d\u306f\u7570\u306a\u308b\u5024\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3082\u3067\u304d\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\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\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;\">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\u5ea6\u306f\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3001\u4f5c\u6210\u3057\u305f\u72ec\u81ea\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b8c\u5168\u306a\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\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\u3059\u308b\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u300cexample_user\u300d\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u300cpassword\u300d\u3068\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5b89\u5168\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u81ea\u5206\u3067\u5909\u66f4\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 <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>\u6b21\u306b\u3001\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u306bexample_database\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6a29\u9650\u3092\u4ed8\u4e0e\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;\">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\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u3001example_user\u30e6\u30fc\u30b6\u30fc\u306fexample_database\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u5b8c\u5168\u306a\u6a29\u9650\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u3084\u5909\u66f4\u306f\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u7279\u6a29\u3092\u30d5\u30e9\u30c3\u30b7\u30e5\u3057\u3066\u3001\u305d\u308c\u3089\u304c\u4fdd\u5b58\u3055\u308c\u3001\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u5229\u7528\u53ef\u80fd\u306b\u306a\u308b\u3053\u3068\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;\">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\u5f93\u3063\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\u3069\u3046\u304b\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u518d\u5ea6\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u5834\u5408\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>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u4e2d\u306b\u3042\u308b -p \u30d5\u30e9\u30b0\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30d5\u30e9\u30b0\u306f\u3001example_user\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\u3088\u3046\u306b\u6c42\u3081\u307e\u3059\u3002MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u5f8c\u3001example_database\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3053\u3068\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>\u3053\u308c\u306b\u3088\u308a\u3001\u6b21\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002 (Kore ni yori, tsugi no shutsuryoku ga eraremasu.)<\/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\u3001\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30c6\u30fc\u30d6\u30eb\u540d\u306ftodo_list\u3067\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\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u633f\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3055\u307e\u3056\u307e\u306a\u5024\u3092\u4f7f\u7528\u3057\u3066\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6570\u56de\u7e70\u308a\u8fd4\u3057\u3001\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u57cb\u3081\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=\"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\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u6b21\u306e\u64cd\u4f5c\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>\u6b21\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\u3089\u3001MariaDB\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u9000\u51fa\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\u3001MariaDB\u306b\u63a5\u7d9a\u3057\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30af\u30a8\u30ea\u3059\u308bPHP\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\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<\/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>\u6b21\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\u3067\u8868\u793a\u3057\u307e\u3059\u3002\u3082\u3057\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u63a5\u7d9a\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092todo_list.php\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3060\u3057\u3001example_user\u3068password\u306e\u5024\u306f\u3054\u81ea\u8eab\u306e\u3082\u306e\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/var\/www\/your_domain\/todo_list.php\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u300c\/var\/www\/your_domain\/todo_list.php\u300d\u3067\u3059\u3002<\/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\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>\u3042\u306a\u305f\u306e\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u307e\u305f\u306f\u30d1\u30d6\u30ea\u30c3\u30afIP\u30a2\u30c9\u30ec\u30b9\u306b\u7d9a\u3044\u3066\/todo_list.php\u3092\u8a2a\u308c\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\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\u3067\u306f\u3001\u30c6\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u633f\u5165\u3057\u305f\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\/65647ad6daa94e2bdf7b8b2f\/148-0.png\" alt=\"Example PHP todo list\" \/><\/div>\n<p>\u305d\u308c\u306f\u3042\u306a\u305f\u306ePHP\u74b0\u5883\u304cMariaDB\u30b5\u30fc\u30d0\u30fc\u3068\u63a5\u7d9a\u3057\u3001\u5bfe\u8a71\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066Apache\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066MariaDB\u3092\u4f7f\u7528\u3057\u3066\u3001PHP\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5404\u8a2a\u554f\u8005\u306b\u63d0\u4f9b\u3059\u308b\u67d4\u8edf\u306a\u57fa\u76e4\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u5373\u5ea7\u306b\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u63a5\u7d9a\u304cHTTPS\u7d4c\u7531\u3067\u5b89\u5168\u306b\u306a\u308b\u3088\u3046\u306b\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u9054\u6210\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\u306b\u304a\u3051\u308b\u4f9d\u5b58\u95a2\u4fc2\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u7ba1\u7406\u306bComposer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u5f53\u793e\u306e\u30ac\u30a4\u30c9\u3092\u8aad\u3080\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u300cLAMP\u300d\u30b9\u30bf\u30c3\u30af\u306f\u3001\u5178\u578b\u7684\u306b\u306f\u5171\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\u3042\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u306a\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30db\u30b9\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u7528\u8a9e\u306f\u3001Linux [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[17,26],"class_list":["post-235","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>\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u30c7\u30d3\u30a2\u30f311\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\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\/\u30c7\u30d3\u30a2\u30f311\u306blinux\u3001apache\u3001mariadb\u3001php\uff08lamp\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002\" \/>\n<meta property=\"og:description\" content=\"\u30c7\u30d3\u30a2\u30f311\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\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\/\u30c7\u30d3\u30a2\u30f311\u306blinux\u3001apache\u3001mariadb\u3001php\uff08lamp\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-10T10:29:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:51:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647ad6daa94e2bdf7b8b2f\/25-0.png\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\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=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"30\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\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/\",\"name\":\"\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-11-10T10:29:48+00:00\",\"dateModified\":\"2025-07-31T12:51:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"description\":\"\u30c7\u30d3\u30a2\u30f311\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\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\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002\"}]},{\"@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\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002 - Blog - Silicon Cloud","description":"\u30c7\u30d3\u30a2\u30f311\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\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\/\u30c7\u30d3\u30a2\u30f311\u306blinux\u3001apache\u3001mariadb\u3001php\uff08lamp\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002","og_description":"\u30c7\u30d3\u30a2\u30f311\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\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\/\u30c7\u30d3\u30a2\u30f311\u306blinux\u3001apache\u3001mariadb\u3001php\uff08lamp\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-10T10:29:48+00:00","article_modified_time":"2025-07-31T12:51:56+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647ad6daa94e2bdf7b8b2f\/25-0.png"}],"author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"30\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/","name":"\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-11-10T10:29:48+00:00","dateModified":"2025-07-31T12:51:56+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"description":"\u30c7\u30d3\u30a2\u30f311\u306bLinuxApacheMariaDBPHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\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\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u30c7\u30d3\u30a2\u30f311\u306bLinux\u3001Apache\u3001MariaDB\u3001PHP\uff08LAMP\uff09\u30b9\u30bf\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002"}]},{"@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\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%87%e3%83%93%e3%82%a2%e3%83%b311%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\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/235","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":38051,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/235\/revisions\/38051"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}