{"id":5510,"date":"2019-07-13T16:36:39","date_gmt":"2019-07-13T07:36:39","guid":{"rendered":"https:\/\/east19-mikas.com\/?p=5510"},"modified":"2024-08-17T15:00:09","modified_gmt":"2024-08-17T06:00:09","slug":"cms%e3%81%ae%e3%82%b3%e3%83%94%e3%83%bc","status":"publish","type":"post","link":"https:\/\/east19-mikas.com\/mpat\/?p=5510","title":{"rendered":"CMS\u306e\u30b3\u30d4\u30fc"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">baserCMS\u3092\u5225\u306e\u30b5\u30a4\u30c8\u306b\u30b3\u30d4\u30fc\u3059\u308b<\/h2>\n\n\n\n<p>WordPress\u3068\u9055\u3063\u3066\u3001baserCMS\u306fCakePHP\u4e0a\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308bCMS\u3067\u3059\u306e\u3067\u3001\u5c11\u3057\u691c\u8a0e\u3092\u7d9a\u3051\u3066\u3044\u307e\u3057\u305f\u3002<br>\u57fa\u672c\u7684\u306b\u306f\u3001WordPress\u540c\u69d8\u3001\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u306e\u30b3\u30d4\u30fc\u3068\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30a4\u30c8\u306e\u30b3\u30d4\u30fc\u304c\u51fa\u6765\u308b\u4e8b\u304c\u5206\u304b\u308a\u307e\u3057\u305f<br>\u3057\u304b\u3057\u3001\u6761\u4ef6\u304c\u8272\u3005\u3068\u6709\u308a\u307e\u3057\u305f<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30d4\u30fc\u3059\u308b\u524d\u63d0\u6761\u4ef6<\/h3>\n\n\n\n<p>LAMP\u74b0\u5883\u3001\u7279\u306bMySQL\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u540c\u3058\u3067\u6709\u308b\u3053\u3068\u3002<br>\u5177\u4f53\u7684\u306b\u306f\u3001MySQL8.0\u304b\u3089\u3001MySQL5.7\u306bSQL\u30c7\u30fc\u30bf\u30fc\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u5931\u6557\u3057\u307e\u3059<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30d4\u30fc\u3059\u308b\u4f5c\u696d\u5185\u5bb9<\/h3>\n\n\n\n<p>\uff11\uff09\u30b3\u30d4\u30fc\u5143\u304b\u3089MySQL\u306e\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u3001\u305d\u306eSQL\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u5148\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059<br>\uff12\uff09\u30b3\u30d4\u30fc\u5143\u306ebasercms\u306e\u30d5\u30a9\u30eb\u30c0\u3092zip\u30d5\u30a1\u30a4\u30eb\u306b\u5727\u7e2e\u3057\u307e\u3059<br>\uff13\uff09zip\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u5148\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u79fb\u52d5\u3057\u307e\u3059<br>\uff14\uff09\u79fb\u52d5\u3057\u305fzip\u30d5\u30a1\u30a4\u30eb\u306f\u89e3\u51cd\u5f8c\u3001\u30aa\u30fc\u30ca\u30fc\u3092Apache\uff08\u5177\u4f53\u7684\u306b\u306fdaemon\uff09\u306b\u5909\u66f4\u3057\u307e\u3059<br>\uff15\uff09\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u63a5\u7d9a\u30e6\u30fc\u30b6\u30fc\u306e\u5909\u66f4<br>\uff16\uff09URL\u3092\u30b3\u30d4\u30fc\u5148\u306b\u5408\u308f\u305b\u308b<\/p>\n\n\n\n<p>\u306a\u304a\u3001basercms\u306f\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u306b\u306fURL\u60c5\u5831\u306f\u5165\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001URL\u7f6e\u63db\u4f5c\u696d\u306f\u4e0d\u8981\u3067\u3059\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5177\u4f53\u5185\u5bb9\u306f\u6b21\u306e\u901a\u308a\u3067\u3059<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u30b3\u30d4\u30fc\u5143\u3067\u306e\u4f5c\u696d<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">SQL\u30d5\u30a1\u30a4\u30eb\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\n# <span id=\"yelo\">cd \/home\/user_name\/<\/span>\n# <span id=\"yelo\">mysqldump -h localhost -u root -p --add-drop-table basercms &gt; basercms.sql<\/span>\nEnter password:              &lt;=== \u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057Enter\u3092\u62bc\u3057\u307e\u3059\n# <span id=\"yelo\">ll<\/span>\n\u5408\u8a08 1504\n-rw-r--r--. 1 root root 1532285  4\u6708 26 20:45 basercms.sql\n# <span style=\"background: #0f0;\">&nbsp;<\/span>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0\u306e\u5727\u7e2e\n# <span id=\"yelo\">cd \/usr\/local\/apache2\/htdocs\/<\/span>\n# <span id=\"yelo\">zip -r basercms.zip basercms<\/span>\n# <span id=\"yelo\">mv basercms.zip \/home\/user_name\/<\/span>\n# <span id=\"yelo\">cd \/home\/user_name\/<\/span>\n# <span id=\"yelo\">ll<\/span>\n-rw-r--r--. 1 root root  41034846  7\u6708 12 14:24 basercms.zip\n<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f5c\u696d\u3057\u3066\u3044\u308bPC\u3067\u306e\u4f5c\u696d<\/h4>\n\n\n\n<p>WinSCR\u3092\u8d77\u52d5\u3057\u3001\u30b3\u30d4\u30fc\u5143\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<br>\u63a5\u7d9a\u5f8c\u3001\u30b3\u30d4\u30fc\u5143\u304b\u3089\u3001basercms.sql\u3068basercms.zip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u696dPC\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br>\u3053\u308c\u3089\u306e2\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u3001\u30b3\u30d4\u30fc\u5148\u306e\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u30b3\u30d4\u30fc\u5148\u3067\u306e\u4f5c\u696d\u3067\u3059<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3001SQL\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\n# <span id=\"yelo\">cd \/home\/user_name\/<\/span>\n# <span id=\"yelo\">mysql -u root -p<\/span>\nEnter password:           <span id=\"gylo\">&lt;===\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057Enter\u3092\u62bc\u3057\u307e\u3059<\/span>\nmysql &gt; <span id=\"yelo\">create database if not exists basercms;<\/span>\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql &gt; <span id=\"yelo\">quit;<\/span>\nBye\n# <span id=\"yelo\">mysql -u root -p basercms  &lt; basercms.sql<\/span>\nEnter password:        <span id=\"gylo\">&lt;=== \u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057Enter\u3092\u62bc\u3057\u307e\u3059<\/span>\n# <span style=\"background: #0f0;\">&nbsp;<\/span>\nbaseercms\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u5c55\u958b\u3057\u307e\u3059\n# <span id=\"yelo\">mv basercms.zip \/usr\/local\/apache2\/htdocs\/<\/span>\n# <span id=\"yelo\">cd \/usr\/local\/apache2\/htdocs\/<\/span>\n# <span id=\"yelo\">unzip basercms.zip<\/span>\n# <span id=\"yelo\">chown -R daemon:daemon basercms<\/span>\n# <span id=\"yelo\">cd .\/basercms\/app\/Config<\/span>\n# <span id=\"yelo\">vi database.php<\/span>\n11\u30fb12\u884c\u76ee\u300123\u30fb24\u884c\u76ee\u3092\u30b3\u30d4\u30fc\u5148\u306b\u5408\u308f\u305b\u308b\n        'login' =&gt; 'root',\n        'password' =&gt; 'password',\n# <span id=\"yelo\">vi install.php<\/span>\n7\u884c\u76ee\nConfigure::write('BcEnv.siteUrl', 'https:\/\/url_name\/basercms\/');\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u30b3\u30d4\u30fc\u5148\u306e\u30b5\u30a4\u30c8\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3055\u305b\u3001\u30b3\u30d4\u30fc\u5143\u3068\u540c\u3058\u30b5\u30a4\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<br>\u6b63\u5e38\u306b\u30b3\u30d4\u30fc\u5143\u3068\u540c\u3058\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u30b3\u30d4\u30fc\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\uff01<br>\u82e5\u3057\u3001\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u306f\u3001\u4e0a\u8a18\u306e\u8aac\u660e\u5185\u5bb9\u901a\u308a\u306b\u3001\u51fa\u6765\u3066\u3044\u308b\u304b\u78ba\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>baserCMS\u3092\u5225\u306e\u30b5\u30a4\u30c8\u306b\u30b3\u30d4\u30fc\u3059\u308b WordPress\u3068\u9055\u3063\u3066\u3001baserCMS\u306fCakePHP\u4e0a\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308bCMS\u3067\u3059\u306e\u3067\u3001\u5c11\u3057\u691c\u8a0e\u3092\u7d9a\u3051\u3066\u3044\u307e\u3057\u305f\u3002\u57fa\u672c\u7684\u306b\u306f\u3001WordPress\u540c\u69d8\u3001\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u306e\u30b3\u30d4\u30fc\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8061,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[],"class_list":["post-5510","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/5510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5510"}],"version-history":[{"count":1,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/5510\/revisions"}],"predecessor-version":[{"id":8504,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/5510\/revisions\/8504"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/media\/8061"}],"wp:attachment":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}