{"id":1756,"date":"2024-01-04T15:00:15","date_gmt":"2024-01-04T06:00:15","guid":{"rendered":"https:\/\/www.miraiserver.ne.jp\/column\/?p=1756"},"modified":"2025-08-18T17:30:29","modified_gmt":"2025-08-18T08:30:29","slug":"about_lamp_installation_method","status":"publish","type":"post","link":"https:\/\/www.miraiserver.ne.jp\/column\/about_lamp_installation_method\/","title":{"rendered":"LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3010Ubuntu20.04 LTS\u3001Ubuntu 22.04 LTS\u3011\u3000"},"content":{"rendered":"<h2><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4522 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3010Ubuntu20.04-LTS\u3001Ubuntu-22.04-LTS\u3011-1.webp\" alt=\"\" width=\"900\" height=\"500\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3010Ubuntu20.04-LTS\u3001Ubuntu-22.04-LTS\u3011-1.webp 900w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3010Ubuntu20.04-LTS\u3001Ubuntu-22.04-LTS\u3011-1-300x167.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3010Ubuntu20.04-LTS\u3001Ubuntu-22.04-LTS\u3011-1-640x356.webp 640w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3010Ubuntu20.04-LTS\u3001Ubuntu-22.04-LTS\u3011-1-768x427.webp 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/h2>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">LAMP\u74b0\u5883\u3068\u306f\u3001Linux\u3001Apache\u3001MySQL\u3001PHP\u3092\u4f7f\u7528\u3057\u305f\u4e3b\u6d41\u306eWeb\u958b\u767a\u74b0\u5883\u3067\u3059\u3002<\/span><\/p>\n<p>\u5168\u3066\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001LAMP\u74b0\u5883\u306e\u7279\u5fb4\u3084\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8\u3001LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u69cb\u7bc9\u624b\u9806\u306f\u3001<strong>Ubuntu20.04<\/strong> \u304a\u3088\u3073 <strong>Ubuntu22.04<\/strong> \u306e2\u3064\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e\u624b\u9806\u3092\u89e3\u8aac\u3044\u305f\u3057\u307e\u3059\u3002<\/span><\/p>\n<p>Ubuntu 20.04\u3067\u306f\u3001tasksel\u30b3\u30de\u30f3\u30c9\u3092\u3064\u304b\u3063\u3066\u3001\u4e00\u5ea6\u306bLAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u304c\u3001Ubuntu 22.04\u3067\u306ftasksel\u306e\u30bf\u30b9\u30af\u30ea\u30b9\u30c8\u304b\u3089\u3001lamp-server\u304c\u9664\u5916\u3055\u308c\u3066\u304a\u308a\u30011\u3064\u305a\u3064\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u304a\u624b\u6301\u3061\u306eUbuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3042\u308f\u305b\u305f\u69cb\u7bc9\u65b9\u6cd5\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"well2\" style=\"text-align: center;\">\n<p><strong>Linux<\/strong>\u3092<strong>VPS<\/strong>\u3067\u5229\u7528\u3059\u308b\u306a\u3089<strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<br \/>\n<\/span><\/strong><strong><span style=\"color: #ff0000;\">\uff3c2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\uff0f<\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/strong><\/p>\n<\/div>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#LAMP\"><span class=\"toc_number toc_depth_1\">1<\/span> LAMP\u74b0\u5883\u3068\u306f<\/a><ul><li><a href=\"#Web\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u7d44\u307f\u5408\u308f\u305b\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u5883<\/a><\/li><li><a href=\"#LAMP-2\"><span class=\"toc_number toc_depth_2\">1.2<\/span> LAMP\u74b0\u5883\u306e\u30e1\u30ea\u30c3\u30c8<\/a><\/li><li><a href=\"#LAMP-3\"><span class=\"toc_number toc_depth_2\">1.3<\/span> LAMP\u74b0\u5883\u306e\u30c7\u30e1\u30ea\u30c3\u30c8<\/a><\/li><\/ul><\/li><li><a href=\"#UbuntuLAMP\"><span class=\"toc_number toc_depth_1\">2<\/span> Ubuntu\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806<\/a><ul><li><a href=\"#Ubuntu\"><span class=\"toc_number toc_depth_2\">2.1<\/span> Ubuntu\u74b0\u5883\u306e\u524d\u63d0\u6761\u4ef6<\/a><\/li><\/ul><\/li><li><a href=\"#Ubuntu_2004_LTSLAMP\"><span class=\"toc_number toc_depth_1\">3<\/span> Ubuntu 20.04 LTS\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806<\/a><ul><li><a href=\"#1\"><span class=\"toc_number toc_depth_2\">3.1<\/span> \u624b\u98061. \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/a><\/li><li><a href=\"#2_tasksel\"><span class=\"toc_number toc_depth_2\">3.2<\/span> \u624b\u98062. tasksel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#3_LAMP\"><span class=\"toc_number toc_depth_2\">3.3<\/span> \u624b\u98063. LAMP\u74b0\u5883\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#4\"><span class=\"toc_number toc_depth_2\">3.4<\/span> \u624b\u98064. \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u52d5\u4f5c\u78ba\u8a8d<\/a><\/li><\/ul><\/li><li><a href=\"#Ubuntu_2204_LTSLAMP\"><span class=\"toc_number toc_depth_1\">4<\/span> Ubuntu 22.04 LTS\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806<\/a><ul><li><a href=\"#1-2\"><span class=\"toc_number toc_depth_2\">4.1<\/span> \u624b\u98061. \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/a><\/li><li><a href=\"#2_Apache\"><span class=\"toc_number toc_depth_2\">4.2<\/span> \u624b\u98062. Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#3_MySQL\"><span class=\"toc_number toc_depth_2\">4.3<\/span> \u624b\u98063. MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#4_PHP\"><span class=\"toc_number toc_depth_2\">4.4<\/span> \u624b\u98064. PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#5_ApacheMySQL\"><span class=\"toc_number toc_depth_2\">4.5<\/span> \u624b\u98065. Apache\u3068MySQL\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/a><\/li><li><a href=\"#6_PHP\"><span class=\"toc_number toc_depth_2\">4.6<\/span> \u624b\u98066. PHP\u306e\u52d5\u4f5c\u78ba\u8a8d<\/a><\/li><\/ul><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">5<\/span> \u307e\u3068\u3081<\/a><\/li><li><a href=\"#LAMP-4\"><span class=\"toc_number toc_depth_1\">6<\/span> LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/a><\/li><\/ul><\/div>\n<h2 class=\"styled_h2\"><span id=\"LAMP\">LAMP\u74b0\u5883\u3068\u306f<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"Web\">\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u7d44\u307f\u5408\u308f\u305b\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u5883<\/span><\/h3>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">LAMP\u74b0\u5883\u3068\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u5883\u306e\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u982d\u6587\u5b57\u3092\u3068\u3063\u305f\u3082\u306e\u3067\u3059\u3002<\/span><\/p>\n<p><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30fbL<\/span><\/strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">inux\uff08OS\uff09<\/span><\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_linux\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/08\/Linux\u3068\u306f\u3002\u7279\u5fb4\u3084\u30e1\u30ea\u30c3\u30c8\u306a\u3069\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\uff01.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2022.08.18<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_linux\/\">Linux\u3068\u306f\u3002\u7279\u5fb4\u3084\u30e1\u30ea\u30c3\u30c8\u306a\u3069\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\uff01<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3092\u52d5\u304b\u3059\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044OS\uff08\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\uff09\u3002\r\n\r\n\u4ee3\u8868\u7684\u306aOS\u306bWindows\u3084Mac OS\u304c\u3042\u308a\u3001\u3053\u308c\u3089\u3092\u3054\u5b58...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<p><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30fbA<\/span><\/strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">pache\uff08Web\u30b5\u30fc\u30d0\u30fc\uff09<\/span><\/p>\n<p><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.winserver.ne.jp\/column\/about_apache\/\" target=\"_blank\" rel=\"noopener\">Winserver\uff1aApache\u3068\u306f\u3002Web\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u3068\u3057\u3066\u306e\u7279\u5fb4\u3084\u5c06\u6765\u6027\u3092\u89e3\u8aac<\/a><\/span><\/p>\n<p><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30fbM<\/span><\/strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">ySQL\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff09<\/span><\/p>\n<p><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.winserver.ne.jp\/column\/about_mysql\/\" target=\"_blank\" rel=\"noopener\">Winserver\uff1aMySQL\u3068\u306f\u3002\u7279\u5fb4\u3084\u5f37\u307f\u3001\u7121\u511f\u7248\u3068\u6709\u511f\u7248\u306e\u9078\u3073\u65b9\u3092\u89e3\u8aac<\/a><\/span><\/p>\n<p><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30fbP<\/span><\/strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">HP\uff08\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\uff09<\/span><\/p>\n<p><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.winserver.ne.jp\/column\/php_versionup\/\" target=\"_blank\" rel=\"noopener\">Winserver\uff1aPHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306b\u3064\u3044\u3066\u3002\u624b\u9806\u3084\u6ce8\u610f\u70b9\u3092\u89e3\u8aac<\/a><\/span><\/p>\n<p>\u3053\u308c\u3089\u306f\u3059\u3079\u3066\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u30b3\u30b9\u30c8\u3092\u6291\u3048\u3066\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u591a\u304f\u306eWeb\u74b0\u5883\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"LAMP-2\">LAMP\u74b0\u5883\u306e\u30e1\u30ea\u30c3\u30c8<\/span><\/h3>\n<p>LAMP\u74b0\u5883\u306f\u3059\u3079\u3066\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u7121\u511f\u3067\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u30b3\u30b9\u30c8\u304c\u304b\u304b\u3089\u306a\u3044<\/span>\u3053\u3068\u304c\u3042\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u5b66\u7fd2\u76ee\u7684<\/span><\/strong>\u3067\u4f7f\u7528\u3059\u308b\u306b\u3082\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u6539\u5909\u3082\u81ea\u7531\u306b\u884c\u3048\u3001\u6c4e\u7528\u6027\u3082\u9ad8\u304f\u3055\u307e\u3056\u307e\u306a\u30b7\u30b9\u30c6\u30e0\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"LAMP-3\">LAMP\u74b0\u5883\u306e\u30c7\u30e1\u30ea\u30c3\u30c8<\/span><\/h3>\n<p>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30c7\u30e1\u30ea\u30c3\u30c8\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u958b\u767a\u5143\u304b\u3089\u306e\u30b5\u30dd\u30fc\u30c8\u304c\u5f97\u3089\u308c\u306a\u3044\u70b9\u304c\u3042\u3052\u3089\u308c\u3001LAMP\u74b0\u5883\u306b\u3082\u3053\u308c\u304c\u8a72\u5f53\u3057\u307e\u3059<\/span>\u3002<\/p>\n<p>\u307e\u305f\u3001\u6280\u8853\u7684\u306b\u3084\u3084\u53e4\u3044\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u3084\u904b\u7528\u9762\u3067\u306e\u30ea\u30b9\u30af\u306e\u5bfe\u5fdc\u304c\u6c42\u3081\u3089\u308c\u307e\u3059<\/span>\u3002<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008080;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"UbuntuLAMP\">Ubuntu\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806<\/span><\/h2>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">Ubuntu20.04 \u304a\u3088\u3073 Ubuntu22.04 \u306e2\u3064\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e\u624b\u9806\u3092\u89e3\u8aac\u3044\u305f\u3057\u307e\u3059\u3002<\/span><\/strong><\/span><\/p>\n<p>Ubunto 20.04\u3067\u306f\u3001tasksel\u30b3\u30de\u30f3\u30c9\u3092\u3064\u304b\u3063\u3066\u3001\u4e00\u5ea6\u306bLAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u304c\u3001Ubuntu 22.04\u3067\u306ftasksel\u306e\u30bf\u30b9\u30af\u30ea\u30b9\u30c8\u304b\u3089\u3001lamp-server\u304c\u9664\u5916\u3055\u308c\u3066\u304a\u308a\u30011\u3064\u305a\u3064\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u304a\u624b\u6301\u3061\u306eUbuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3042\u308f\u305b\u305f\u69cb\u7bc9\u65b9\u6cd5\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"Ubuntu\">Ubuntu\u74b0\u5883\u306e\u524d\u63d0\u6761\u4ef6<\/span><\/h3>\n<p>\u4eca\u56de\u306f\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u306b\u69cb\u7bc9\u3055\u308c\u305fUbuntu\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30b9\u30da\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>CPU\uff1a2vCPU<\/li>\n<li>Memory\uff1a4GB<\/li>\n<li>Disk\uff1a50GB\u30fbUbuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1a20.04.6LTS\u3001 22.04.2 LTS<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6a19\u8a18\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u969b\u306b\u5165\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u592a\u5b57\u3001\u88dc\u8db3\u306e\u5185\u5bb9\u3092\u9752\u5b57\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u4eca\u56de\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>\u7ba1\u7406\u8005\u6a29\u9650<\/strong><\/span>\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>root\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u901a\u5e38\u30e6\u30fc\u30b6\u30fc\uff08\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001testuser\uff09\u3092sudo\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">#<strong> usermod -aG sudo testuser<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 class=\"styled_h2\"><span id=\"Ubuntu_2004_LTSLAMP\">Ubuntu 20.04 LTS\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806<\/span><\/h2>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001Ubuntu\u306e20.04\u4e0a\u306bLAMP\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>20.04 LTS\u306e\u5834\u5408\u306f\u3001tasksel\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u69cb\u7bc9\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"1\">\u624b\u98061. \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/span><\/h3>\n<p>\u6700\u521d\u306b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\">$ sudo apt update<br \/>\n$ sudo apt upgrade<\/p>\n<h3 class=\"styled_h3\"><span id=\"2_tasksel\">\u624b\u98062. tasksel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>tasksel\u306f\u3001\u4e8b\u524d\u306b\u5b9a\u7fa9\u3055\u308c\u305f\u8907\u6570\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u5ea6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001tasksel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo apt install tasksel<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4524\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf2.webp\" alt=\"\" width=\"602\" height=\"197\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf2.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf2-300x98.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/>\u7d9a\u884c\u3057\u307e\u3059\u304b\uff1f\u3068\u805e\u304b\u308c\u305f\u3089\u3001\u300cY\u300d\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u4e8b\u524d\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u300c-y\u300d\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u805e\u304b\u308c\u305a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>tasksel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001tasksel\u3067\u4e8b\u524d\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u300clamp-server\u300d\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001tasksel\u3067LAMP\u74b0\u5883\u306e\u69cb\u7bc9\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u5ea6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo tasksel <span style=\"color: #ff0000;\">&#8212;<\/span>list-tasks <span style=\"color: #ff0000;\">(\u203b\u2014\u306f-2\u56de\u91cd\u306d\u308b)<\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4525\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf3.webp\" alt=\"\" width=\"474\" height=\"238\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf3.webp 474w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf3-300x151.webp 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/p>\n<h3 class=\"styled_h3\"><span id=\"3_LAMP\">\u624b\u98063. LAMP\u74b0\u5883\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>tasksel\u3067\u3001lamp-server\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo tasksel install lamp-server<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u753b\u9762\u304c\u5207\u308a\u66ff\u308f\u308a\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4526\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf4-493x360.webp\" alt=\"\" width=\"493\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf4-493x360.webp 493w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf4-300x219.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf4.webp 602w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/p>\n<h3 class=\"styled_h3\"><span id=\"4\">\u624b\u98064. \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u52d5\u4f5c\u78ba\u8a8d<\/span><\/h3>\n<p>lamp-server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u300cApache\u300d\u300cMySQL\u300d\u300cPHP\u300d\u304c\u3059\u3079\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001Apache\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b5\u30fc\u30d3\u30b9\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3001\u300cActive\u300d\u3068\u306a\u3063\u3066\u3044\u308c\u3070\u3001Apache\u304c\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo service apache2 status<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4527\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf5.webp\" alt=\"\" width=\"602\" height=\"275\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf5.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf5-300x137.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067URL\u300chttp:\/\/localhost\u300d\u3068\u5165\u529b\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4528\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf6.webp\" alt=\"\" width=\"606\" height=\"257\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf6.webp 606w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf6-300x127.webp 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<p>\u6b21\u306b\u3001MySQL\u304c\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>MySQL\u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002<\/p>\n<p>\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>mysql <span style=\"color: #ff0000;\">&#8212;<\/span>version <\/strong><strong>\u00a0<span style=\"color: #ff0000;\">(\u203b\u2014\u306f-2\u56de\u91cd\u306d\u308b)<\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4529\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf7.webp\" alt=\"\" width=\"602\" height=\"39\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf7.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf7-300x19.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u3042\u308f\u305b\u3066\u3001MySQL\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u3092\u5f37\u5316\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3082\u5b9f\u884c\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"><strong>$ sudo mysql_secure_installation<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u3053\u3068\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>root\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a<\/li>\n<li>\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u4ee5\u5916\u304b\u3089\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306aroot\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u524a\u9664<\/li>\n<li>\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u524a\u9664<\/li>\n<li>test\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304a\u3088\u3073test_\u3067\u59cb\u307e\u308b\u540d\u524d\u3092\u6301\u3064\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306e\u524a\u9664<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u6700\u5f8c\u306b\u3001PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>php -v<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4530\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf8.webp\" alt=\"\" width=\"602\" height=\"77\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf8.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf8-300x38.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>Apache\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u5b9f\u969b\u306bPHP\u304c\u52d5\u4f5c\u3059\u308b\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3001\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\">$ sudo vi \/var\/www\/html\/test.php<br \/>\n<strong><span style=\"color: #0000ff;\">\u203btest.php\u306e\u5185\u5bb9<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">&lt;?php echo phpinfo(); ?&gt;<\/span><\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4542\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf21.webp\" alt=\"\" width=\"602\" height=\"93\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf21.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf21-300x46.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/>\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u30d6\u30e9\u30a6\u30b6\u3067URL\u300chttp:\/\/localhost\/test.php\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>Apache\u3068PHP\u306e\u9023\u643a\u304c\u3046\u307e\u304f\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u4ee5\u4e0b\u306ePHP\u306e\u60c5\u5831\u304c\u8a18\u8f09\u3055\u308c\u305f\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4531\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf10.webp\" alt=\"\" width=\"606\" height=\"196\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf10.webp 606w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf10-300x97.webp 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001Ubuntu 20.04 LTS\u306e\u5834\u5408\u306f\u3001tasksel\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306bLAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008080;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"Ubuntu_2204_LTSLAMP\">Ubuntu 22.04 LTS\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806<\/span><\/h2>\n<p>Ubunto 20.04\u3067\u306f\u3001tasksel\u30b3\u30de\u30f3\u30c9\u3092\u3064\u304b\u3063\u3066\u3001\u4e00\u5ea6\u306bLAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001Ubuntu 22.04\u3067\u306ftasksel\u306e\u30bf\u30b9\u30af\u30ea\u30b9\u30c8\u304b\u3089\u3001lamp-server\u304c\u9664\u5916\u3055\u308c\u3066\u304a\u308a\u3001tasksel\u3092\u4f7f\u7528\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4532\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf11.webp\" alt=\"\" width=\"602\" height=\"351\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf11.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf11-300x175.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/>\u305d\u306e\u305f\u3081\u30011\u3064\u305a\u3064\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6d41\u308c\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"1-2\">\u624b\u98061. \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/span><\/h3>\n<p>\u6700\u521d\u306b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\">$ sudo apt update<br \/>\n$ sudo apt upgrade<\/p>\n<h3 class=\"styled_h3\"><span id=\"2_Apache\">\u624b\u98062. Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>\u6700\u521d\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo apt install apache2<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7d9a\u884c\u3057\u307e\u3059\u304b\uff1f\u3068\u805e\u304b\u308c\u305f\u3089\u3001\u300cY\u300d\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u4e8b\u524d\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u300c-y\u300d\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u805e\u304b\u308c\u305a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u53ef\u80fd\u3067\u3059\u3002<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4533\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf12.webp\" alt=\"\" width=\"602\" height=\"260\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf12.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf12-300x130.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u304b\u3089\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067URL\u300chttp:\/\/localhost\u300d\u3068\u5165\u529b\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4534\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf13.webp\" alt=\"\" width=\"606\" height=\"284\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf13.webp 606w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf13-300x141.webp 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<h3 class=\"styled_h3\"><span id=\"3_MySQL\">\u624b\u98063. MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>MySQL\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo apt install mysql-server<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7d9a\u884c\u3057\u307e\u3059\u304b\uff1f\u3068\u805e\u304b\u308c\u305f\u3089\u3001\u300cY\u300d\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u4e8b\u524d\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u300c-y\u300d\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u805e\u304b\u308c\u305a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u53ef\u80fd\u3067\u3059\u3002<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4535\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf14.webp\" alt=\"\" width=\"602\" height=\"321\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf14.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf14-300x160.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>MySQL\u304c\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>mysql <span style=\"color: #ff0000;\">&#8212;<\/span>version <span style=\"color: #ff0000;\">(\u203b\u2014\u306f-2\u56de\u91cd\u306d\u308b)<\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3042\u308f\u305b\u3066\u3001MySQL\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u3092\u5f37\u5316\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3082\u5b9f\u884c\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo mysql_secure_installation<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 class=\"styled_h3\"><span id=\"4_PHP\">\u624b\u98064. PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>\u6700\u5f8c\u306bPHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067PHP\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001PHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo apt install php libapache2-mod-php php-mysql<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7d9a\u884c\u3057\u307e\u3059\u304b\uff1f\u3068\u805e\u304b\u308c\u305f\u3089\u3001\u300cY\u300d\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u4e8b\u524d\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u300c-y\u300d\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u805e\u304b\u308c\u305a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u53ef\u80fd\u3067\u3059\u3002<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4537\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf16.webp\" alt=\"\" width=\"602\" height=\"257\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf16.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf16-300x128.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>PHP\u304c\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>php -v<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4538\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf17.webp\" alt=\"\" width=\"602\" height=\"109\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf17.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf17-300x54.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6210\u529f\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001Apache\u3068PHP\u3092\u9023\u643a\u3055\u305b\u308b\u305f\u3081\u3001\u4e00\u5ea6Apache\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$<strong> sudo systemctl restart apache2<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 class=\"styled_h3\"><span id=\"5_ApacheMySQL\">\u624b\u98065. Apache\u3068MySQL\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/span><\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u76f4\u5f8c\u306f\u3069\u3061\u3089\u3082\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u304c\u3001Ubuntu\u3092\u8d77\u52d5\u3057\u305f\u76f4\u5f8c\u306f\u3001\u505c\u6b62\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Ubuntu\u3092\u8d77\u52d5\u3057\u305f\u969b\u306b\u81ea\u52d5\u7684\u306bApache\u3001MySQL\u3082\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>Apache\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo systemctl enable apache2<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4539\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf18.webp\" alt=\"\" width=\"602\" height=\"85\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf18.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf18-300x42.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>MySQL\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">$ <strong>sudo systemctl enable mysql<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4540\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf19.webp\" alt=\"\" width=\"602\" height=\"87\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf19.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf19-300x43.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<h3 class=\"styled_h3\"><span id=\"6_PHP\">\u624b\u98066. PHP\u306e\u52d5\u4f5c\u78ba\u8a8d<\/span><\/h3>\n<p>\u5ff5\u306e\u305f\u3081\u3001Apache\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u5b9f\u969b\u306bPHP\u304c\u52d5\u4f5c\u3059\u308b\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3001\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\">$ sudo vi \/var\/www\/html\/test.php<br \/>\n<span style=\"color: #0000ff;\"><strong>\u203btest.php\u306e\u5185\u5bb9<\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong>&lt;?php echo phpinfo(); ?&gt;<\/strong><\/span><\/p>\n<p>\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u30d6\u30e9\u30a6\u30b6\u3067URL\u300chttp:\/\/localhost\/test.php\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u5148\u307b\u3069\u3068\u540c\u69d8\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4541\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf20.webp\" alt=\"\" width=\"606\" height=\"228\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf20.webp 606w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/\u753b\u50cf20-300x113.webp 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/>\u4ee5\u4e0a\u3067\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"i\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001<strong>Ubuntu20.04<\/strong> \u304a\u3088\u3073<strong> Ubuntu22.04<\/strong> \u4e0a\u306bLAMP\u74b0\u5883\uff08Linux\u3001Apache\u3001MySQL\u3001PHP\uff09\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Web\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3059\u306a\u3089\u3001\u3053\u306e\u74b0\u5883\u3092\u81ea\u5206\u3067\u69cb\u7bc9\u3057\u3066Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u6280\u8853\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u81ea\u5206\u3067Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u308b\u4eba\u3082\u3001\u3053\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066\u5b9f\u884c\u3059\u308c\u3070\u7c21\u5358\u306b\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u7121\u6599\u3067\u74b0\u5883\u3092\u69cb\u7bc9\u3067\u304d\u308b\u306e\u3067\u3001\u4eca\u56de\u3054\u7d39\u4ecb\u3057\u305f\u624b\u9806\u3092\u53c2\u8003\u306b\u305c\u3072\u69cb\u7bc9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044<\/span>\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"LAMP-4\">LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/h2>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong><\/a>\u306f\u3001\u30a2\u30b7\u30b9\u30c8\u30a2\u30c3\u30d7\u682a\u5f0f\u4f1a\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3001<strong>Unix\u7cfb\u30b5\u30fc\u30d0\u30fc<\/strong>\u306b\u7279\u5316\u3057\u305f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS<\/strong><\/a>\u3067\u306f\u3001<strong>\u9ad8\u901f\u51e6\u7406\u304c\u53ef\u80fd\u306aSSD<\/strong>\u3092<strong>\u5168\u30d7\u30e9\u30f3\u306b\u642d\u8f09<\/strong>\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">OS\u306f\u3001<b>Ubuntu<\/b>\u3084<b>Debian<\/b>\u3001<b>AlmaLinux<\/b>\u306a\u3069\u306e\u8c4a\u5bcc\u306a\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u304b\u3089\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><strong>2\u9031\u9593\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb<\/strong><\/a>\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">\u25bc\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u25bc<\/a><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-111 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"336\" height=\"280\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png 336w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a-300x250.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30d7\u30e9\u30f3\u306e\u9078\u629e\u3067\u304a\u56f0\u308a\u306e\u5834\u5408\u306f\u3001\u305c\u3072\u4e00\u5ea6\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/formmail.html?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener noreferrer\">\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089<\/a><\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/miraiserver_vps\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/08\/VPS\u306b\u7533\u8fbc\u307f\u3001SSH\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3010\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3011-2.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.08.03<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/miraiserver_vps\/\">VPS\u306b\u7533\u8fbc\u307f\u3001SSH\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3010\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3011<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\u30aa\u30f3\u30e9\u30a4\u30f3\u30d3\u30b8\u30cd\u30b9\u3084Web\u30b5\u30a4\u30c8\u306e\u904b\u55b6\u3092\u59cb\u3081\u308b\u969b\u306b\u306f\u3001\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e\u4e2d\u304b\u3089\u81ea\u5206\u306e\u7528\u9014\u306b\u5408\u3063\u305f\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u3002...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n","protected":false},"excerpt":{"rendered":"LAMP\u74b0\u5883\u3068\u306f\u3001Linux\u3001Apache\u3001MySQL\u3001PHP\u3092\u4f7f\u7528\u3057\u305f\u4e3b\u6d41\u306eWeb\u958b\u767a\u74b0\u5883\u3067\u3059\u3002 \u5168\u3066\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001LAMP\u74b0\u5883\u306e\u7279\u5fb4\u3084\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8\u3001LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u69cb\u7bc9\u624b\u9806\u306f\u3001Ubuntu20.04 \u304a\u3088\u3073 Ubuntu22.04 \u306e2\u3064\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e\u624b\u9806\u3092\u89e3\u8aac\u3044\u305f\u3057\u307e\u3059\u3002 Ubuntu 20.04\u3067\u306f\u3001tasksel\u30b3\u30de\u30f3\u30c9\u3092\u3064\u304b\u3063\u3066\u3001\u4e00\u5ea6\u306bLAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u304c\u3001Ubuntu 22.04\u3067\u306ftasksel\u306e\u30bf\u30b9\u30af\u30ea\u30b9\u30c8\u304b\u3089\u3001lamp-server\u304c\u9664\u5916\u3055\u308c\u3066\u304a\u308a\u30011\u3064\u305a\u3064\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u304a\u624b\u6301\u3061\u306eUbuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3042\u308f\u305b\u305f\u69cb\u7bc9\u65b9\u6cd5\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 Linux\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089 \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc \uff3c2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\uff0f VPS\u3092\u4f7f\u3063\u3066\u307f\u308b \u76ee\u6b211 LAMP\u74b0\u5883\u3068\u306f1.1 \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u7d44\u307f\u5408\u308f\u305b\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u58831.2 LAMP\u74b0\u5883\u306e\u30e1\u30ea\u30c3\u30c81.3 LAMP\u74b0\u5883\u306e\u30c7\u30e1\u30ea\u30c3\u30c82 Ubuntu\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u98062.1 Ubuntu\u74b0\u5883\u306e\u524d\u63d0\u6761\u4ef63 Ubuntu 20.04 LTS\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u98063.1 \u624b\u98061. \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c93.2 \u624b\u98062. tasksel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb3.3 \u624b\u98063. LAMP\u74b0\u5883\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb3.4 \u624b\u98064. \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u52d5\u4f5c\u78ba\u8a8d4 Ubuntu 22.04 LTS\u306bLAMP\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u98064.1 \u624b\u98061. \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c94.2 \u624b\u98062. Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb4.3 \u624b\u98063. MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb4.4 \u624b\u98064. PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb4.5 \u624b\u98065. Apache\u3068MySQL\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a4.6 \u624b\u98066. PHP\u306e\u52d5\u4f5c\u78ba\u8a8d5 \u307e\u3068\u30816 LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc LAMP\u74b0\u5883\u3068\u306f \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u7d44\u307f\u5408\u308f\u305b\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u5883 LAMP\u74b0\u5883\u3068\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u5883\u306e\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u982d\u6587\u5b57\u3092\u3068\u3063\u305f\u3082\u306e\u3067\u3059\u3002 \u30fbLinux\uff08OS\uff09 \u30fbApache\uff08Web\u30b5\u30fc\u30d0\u30fc\uff09 [&hellip;]","protected":false},"author":1,"featured_media":4522,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,190],"tags":[22,67,164,173,177,248,250,256],"_links":{"self":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1756"}],"collection":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/comments?post=1756"}],"version-history":[{"count":18,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1756\/revisions"}],"predecessor-version":[{"id":4543,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1756\/revisions\/4543"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media\/4522"}],"wp:attachment":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media?parent=1756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/categories?post=1756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/tags?post=1756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}