{"id":43,"date":"2020-06-10T21:51:16","date_gmt":"2020-06-10T12:51:16","guid":{"rendered":"http:\/\/www.wiseitservice.com\/wordpress\/?p=43"},"modified":"2021-01-16T20:43:42","modified_gmt":"2021-01-16T11:43:42","slug":"eccubesatup","status":"publish","type":"post","link":"https:\/\/www.wiseitservice.co.jp\/?p=43","title":{"rendered":"EC-CUBE\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">CentOS 7 \u3092\u30d9\u30fc\u30b9\u306bEC-CUBE\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u624b\u9806\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002<br>\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3067\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>EC-CUBE<\/strong><strong>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u30b3\u30de\u30f3\u30c9\u4e00\u89a7<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfSecureLinux\u306e\u7121\u52b9\u5316<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo su<br>cd \/etc\/selinux<br>vi config<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u7b87\u6240\u3092disabled\u306b\u5909\u66f4\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5909\u66f4\u524d\uff1aSELINUX=<strong>enforcing<\/strong><br>\u5909\u66f4\u5f8c\uff1aSELINUX=<strong>disabled<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cf\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u306a\u3044\u70ba\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u3092\u8a2d\u5b9a\u3059\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">swapon -s<br>dd if=\/dev\/zero of=\/swapfile bs=1024 count=1048576<br>mkswap \/swapfile<br>swapon \/swapfile<br>swapon -s<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cf\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u7684\u306b\u4eee\u60f3\u30e1\u30e2\u30ea\u3092\u5229\u7528\u3059\u308b\u69d8\u306b\u8a2d\u5b9a\u3059\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>vi \/etc\/fstab<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u3092\u6700\u7d42\u884c\u306b\u8ffd\u8a18<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/swapfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; none&nbsp;&nbsp;&nbsp; swap&nbsp;&nbsp;&nbsp; sw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cf\u518d\u8d77\u52d5\u3059\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">reboot<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfWeb\uff08Apache\uff09\u30b5\u30fc\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yum install httpd mod_ssl<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3059\u308b\u306b\u306f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">rpm -qa | grep -i httpd<br>\u3068\u5165\u529b\u3057<br>httpd-tools-2.4.6-89.el7.centos.1.x86_64<br>httpd-2.4.6-89.el7.centos.1.x86_64<br>\u306e2\u3064\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfMariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yum install mariadb mariadb-server<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3059\u308b\u306b\u306f<br>rpm -qa | grep -i mariadb<br>\u3068\u5165\u529b\u3057<br>mariadb-libs-5.5.60-1.el7_5.x86_64<br>mariadb-5.5.60-1.el7_5.x86_64<br>mariadb-server-5.5.60-1.el7_5.x86_64<br>\u306e3\u3064\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfMariaDB\u30b5\u30fc\u30d0\u306e\u30b5\u30fc\u30d3\u30b9\u8d77\u52d5\u3068\u8d77\u52d5\u6642\u306e\u81ea\u52d5\u5b9f\u884c\u3092\u6709\u52b9\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>systemctl start mariadb.service<\/strong><br><strong>systemctl enable mariadb.service<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfMariaDB\u306e\u521d\u671f\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\/usr\/bin\/mysql_secure_installation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfEC-CUBE\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>mysql -u root -p<\/strong><br><strong>create database eccube_db character set = utf8;<\/strong><br><strong>grant all privileges on eccube_db.* to eccube_db_user@localhost identified by &#8216;eccube_db_2020&#8217;;<\/strong><br><strong>flush privileges;<\/strong><br><strong>use mysql;<\/strong><br><strong>select * from db where user = &#8216;eccube_db_user&#8217;\\G<\/strong><br><strong>exit<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfPHP7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e96\u5099<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5fc5\u8981\u306a\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u767b\u9332\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yum install epel-release<\/strong><br><strong>rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfPHP\u74b0\u5883\u306e\u6574\u5099<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yum install &#8211;enablerepo=remi,remi-php73 php php-devel php-pdo php-gd php-xml php-mcrypt php-mysql php-phar php-mbstring php-zlib php-ctype php-session php-json php-xml php-libxml php-openssl php-zip php-curl php-fileinfo php-intl<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">rpm -qa | grep php<br>php-gd-7.3.8-1.el7.remi.x86_64<br>php-7.3.8-1.el7.remi.x86_64<br>php-common-7.3.8-1.el7.remi.x86_64<br>php-pecl-zip-1.15.4-1.el7.remi.7.3.x86_64<br>php-mysqlnd-7.3.8-1.el7.remi.x86_64<br>php-devel-7.3.8-1.el7.remi.x86_64<br>php-mbstring-7.3.8-1.el7.remi.x86_64<br>php-pecl-mcrypt-1.0.2-2.el7.remi.7.3.x86_64<br>php-pdo-7.3.8-1.el7.remi.x86_64<br>php-json-7.3.8-1.el7.remi.x86_64<br>php-cli-7.3.8-1.el7.remi.x86_64<br>php-xml-7.3.8-1.el7.remi.x86_64<br>php-intl-7.3.8-1.el7.remi.x86_64<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cf\u3053\u3053\u3067ec-cube\u306e\u30d5\u30a1\u30a4\u30eb\u3092Win-SCP\u3092\u5229\u7528\u3057\u8ee2\u9001\u3059\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cf\u8ee2\u9001\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3059\u308b\u30c4\u30fc\u30eb\uff08unzip\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yum install unzip<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cf\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u3001Web\u516c\u958b\u3059\u308b\u305f\u3081\u306e\u6240\u5b9a\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5\u3055\u305b\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cd \/home\/centos<\/strong><br><strong>unzip .\/eccube-4.0.2.zip<\/strong><br><strong>cd \/var\/www\/<\/strong><br><strong>rmdir html<\/strong><br><strong>mv \/home\/centos\/eccube-4.0.2 html<\/strong><br><strong>chmod 755 html<\/strong><br><strong>chown \u2013Rf apache:apache html<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cf\/var\/www\/html\/.htaccess\u306e\u4fee\u6b63<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cd \/var\/www\/html\/<\/strong><br><strong>vi .htaccess<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u884c\u76ee\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DirectoryIndex index.php index.html .ht<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># DirectoryIndex index.php index.html .ht<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cf\u30b3\u30f3\u30d5\u30a3\u30b0\uff08\/etc\/httpd\/conf\/httpd.conf\uff09\u306e\u4e0b\u8a18\u5185\u5bb9\u3092\u4fee\u6b63<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cd \/etc\/httpd\/conf<\/strong><br><strong>cp -p httpd.conf httpd.conf.20200101<\/strong><br><strong>vi httpd.conf<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff1c\u30b5\u30f3\u30d7\u30eb\u753b\u50cf\uff1e<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"677\" height=\"495\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/001.png\" alt=\"\" class=\"wp-image-44\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/001.png 677w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/001-300x219.png 300w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/001-624x456.png 624w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;Directory &#8220;\/var\/www\/html&#8221;&gt;<br>&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks<br>&nbsp;&nbsp;&nbsp; #####################<br>&nbsp;&nbsp;&nbsp; # Order\u6a5f\u80fd\u3068Rewrite\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3059\u308b<br>&nbsp;&nbsp;&nbsp; #AllowOverride None<br>&nbsp;&nbsp;&nbsp; <strong>AllowOverride Limit FileInfo Options<\/strong><br>&nbsp;&nbsp;&nbsp; #####################<br>&nbsp;&nbsp;&nbsp; Require all granted<br>&lt;\/Directory&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfhttpd\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u81ea\u52d5\u8d77\u52d5\u306b\u8a2d\u5b9a\u3057\u3001\u3055\u3089\u306b\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>systemctl enable httpd.service<\/strong><br><strong>systemctl restart httpd.service<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25cfWeb\u30d6\u30e9\u30a6\u30b6\u7d4c\u7531\u3067\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">http:\/\/[IP\u30a2\u30c9\u30ec\u30b9]\/<br>&nbsp;&nbsp;&nbsp;&nbsp; \u53c8\u306f<br>http:\/\/[IP\u30a2\u30c9\u30ec\u30b9]\/install.php<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"418\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/002.png\" alt=\"\" class=\"wp-image-45\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/002.png 478w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/002-300x262.png 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"311\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/003.png\" alt=\"\" class=\"wp-image-46\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/003.png 478w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/003-300x195.png 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"469\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/004.png\" alt=\"\" class=\"wp-image-47\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/004.png 478w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/004-300x294.png 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"465\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/005.png\" alt=\"\" class=\"wp-image-48\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/005.png 478w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/005-300x292.png 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"296\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/006.png\" alt=\"\" class=\"wp-image-49\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/006.png 478w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/006-300x186.png 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"265\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/007.png\" alt=\"\" class=\"wp-image-50\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/007.png 478w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/007-300x166.png 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"371\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/008.png\" alt=\"\" class=\"wp-image-51\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/008.png 478w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/008-300x233.png 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"518\" src=\"http:\/\/www.wiseitservice.com\/wordpress\/wp-content\/uploads\/2020\/06\/009.png\" alt=\"\" class=\"wp-image-52\" srcset=\"https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/009.png 478w, https:\/\/www.wiseitservice.co.jp\/wp-content\/uploads\/2020\/06\/009-277x300.png 277w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 7 \u3092\u30d9\u30fc\u30b9\u306bEC-CUBE\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u624b\u9806\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3067\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u3002 EC-CUBE\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u30b3\u30de\u30f3\u30c9\u4e00\u89a7 \u25cfSecureLinux\u306e\u7121\u52b9\u5316 sudo sucd \/etc [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[22],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-tech","tag-ec-cubelinux"],"_links":{"self":[{"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":3,"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiseitservice.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}