{"id":4695,"date":"2020-04-09T16:27:59","date_gmt":"2020-04-09T07:27:59","guid":{"rendered":"https:\/\/kumapress.com\/?p=4695"},"modified":"2020-04-09T16:46:06","modified_gmt":"2020-04-09T07:46:06","slug":"nextcloud%e3%82%92centos8%e3%81%ab%e5%85%a5%e3%82%8c%e3%81%be%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/kumapress.com\/?p=4695","title":{"rendered":"NextCloud\u3092CentOS8\u306b\u5165\u308c\u307e\u3057\u305f"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u74b0\u5883\u4f5c\u6210<\/h2>\n\n\n<p><span style=\"font-size: 14pt;\"><strong>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u74b0\u5883<\/strong><\/span><\/p>\n<p>CenOS8 \/ Apache2.4(Default) \/ MariaDB \/ Radis \/ PHP7.3 \/ Postfix(Default)<\/p>\n<p>\u203bApache\u306b\u3057\u305f\u306e\u306f\u3001Webmin\u3082\u540c\u5c45\u3055\u305b\u305f\u3044\u306a\u3041\u3068\u306e\u601d\u60d1\u3067(^^;<\/p>\n<p><span style=\"color: #ff0000;\">SELinux\u3092Disabled\u306b\u3057\u306a\u3044\u3068\u3001nextCloud\u7d4c\u7531\u3067\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u8fbc\u307f\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3002<\/span><\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0PHP7.3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/strong><\/p>\n<p>\u203b\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u304c yum \u304b\u3089 dnf \u306b\u304b\u308f\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\uff11\uff09epel\u3068remi\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<br \/># dnf install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm<br \/># dnf install https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm<\/p>\n<p>\u30ea\u30dd\u30ea\u30c8\u30ea\u306f\u3053\u3061\u3089\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059<br \/># ls \/etc\/yum.repos.d\/<\/p>\n<p>\uff12\uff09PHP7.3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/># dnf install dnf-utils<br \/>\u2192\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u201dyum utils\u201d\u3067\u3057\u305f(^^;<\/p>\n<p># dnf module reset php<br \/>\u4f9d\u5b58\u95a2\u4fc2\u304c\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<br \/>\u884c\u3046\u3079\u304d\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\u5b8c\u4e86\u3057\u307e\u3057\u305f!<br \/># dnf module install php:remi-7.3<br \/># dnf update<br \/># php -v<br \/>PHP 7.3.16 (cli) (built: Mar 17 2020 10:18:38) ( NTS )<br \/>Copyright (c) 1997-2018 The PHP Group<br \/>Zend Engine v3.3.16, Copyright (c) 1998-2018 Zend Technologies<br \/>with Zend OPcache v7.3.16, Copyright (c) 1999-2018, by Zend Technologies<br \/># dnf install php-gd php-intl php-pecl-apcu php-mysqlnd php-opcache php-zip<\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0MariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/strong><\/p>\n<p># dnf install mariadb mariadb-server<br \/># systemctl start mariadb.server<br \/># mysql_secure_installation<br \/>\u30d1\u30b9\u30ef\u30fc\u30c9\uff1anx@dmMaria<br \/>Set root password? [Y\/n] Y<br \/>Remove anonymous users? [Y\/n] Y<br \/>Disallow root login remotely? [Y\/n] Y<br \/>Remove test database and access to it? [Y\/n] Y<br \/>Reload privilege tables now? [Y\/n] Y<\/p>\n<p>\u30fb\u6587\u5b57\u30b3\u30fc\u30c9\u8a2d\u5b9a<br \/># vi \/etc\/my.cnf.d\/mariadb-server.cnf<br \/>[mariadb]<br \/>character-set-server = utf8mb4 # \u8ffd\u52a0<\/p>\n<p># vi \/etc\/my.cnf.d\/client.cnf<br \/>[client-mariadb] # \u8ffd\u52a0<br \/>default-character-set = utf8mb4 # \u8ffd\u52a0<\/p>\n<p># systemctl restart mariadb.server<\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0Redis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/strong><\/p>\n<p># dnf install redis<br \/># systemctl enable redis.service<br \/># systemctl start redis.service<\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0Postfix\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/strong><\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\u3060\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\/etc\/postfix\/main.cf<\/p>\n\n\n<h2 class=\"wp-block-heading\">NextCloud\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p><strong><span style=\"font-size: 14pt;\">\u25a0\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/span><\/strong><\/p>\n<p>MariaDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>NextCloud\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u6642\u306bDB\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u304c\u5fc5\u8981\u306a\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002\uff08Default\uff1a3306\uff09<\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u25a0\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30a6\u30a3\u30b6\u30fc\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/span><\/strong><\/p>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u3093\u3067\u3001\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30a6\u30a3\u30b6\u30fc\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\uff11\uff09<a href=\"https:\/\/nextcloud.com\/install\/#\" target=\"_blank\" rel=\"noopener noreferrer\">\u300cGet Nextcloud\u300d<\/a>\u753b\u9762\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\uff12\uff09\u201dDownload for server\u201d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p>\uff13\uff09\u201dWeb Installer\u201d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\uff14\uff09&#8221;1.Right-click hear &#8230;&#8221;\u306ehere\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068&#8221;setup-nextcloud.php&#8221;\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\uff15\uff09&#8221;setup-nextcloud.php&#8221;\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3001\u8d77\u52d5\u3055\u305b\u307e\u3059\u3002<br \/>\u3000\u3000\u203bNextcloud\u5074\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u91cd\u304f\u3063\u3066\u3001\u4f55\u56de\u304bGateway Timeout\u3068\u306a\u308a\u307e\u3059\u304c\u3001\u3081\u3052\u306a\u3044\u3067\u304f\u3060\u3055\u3044(^^;<\/p>\n<p>\uff16\uff09\u4e0b\u8a18\u306e\u60c5\u5831\u3092\u5165\u529b\u3057\u307e\u3059\uff08\u753b\u9762\u30b3\u30d4\u30fc\u5fd8\u308c\u307e\u3057\u305forz\uff09<\/p>\n<p>\u3000\u3000\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u30fcID<br \/>\u3000\u3000\u30d1\u30b9\u30ef\u30fc\u30c9<br \/>\u3000\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d<br \/>\u3000\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u8005\u540d<br \/>\u3000\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<br \/>\u3000\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30db\u30b9\u30c8\u540d\u3068\u30dd\u30fc\u30c8\uff08localhost:3306\uff09<\/p>\n<p>\u3000\u3000\u203b\u3061\u3087\u3063\u3068\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u3002\u3002<\/p>\n<p>\uff17\uff09\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<aside class=\"row veu_insertAds after\"><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 2\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"5379270693\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 1\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"7353370294\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><\/aside>","protected":false},"excerpt":{"rendered":"<p>NextCloud\u3092CentOS8\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30a6\u30a3\u30b6\u30fc\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":4697,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[126],"tags":[161],"class_list":["post-4695","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-memo","tag-nextcloud"],"_links":{"self":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4695"}],"version-history":[{"count":5,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4695\/revisions"}],"predecessor-version":[{"id":4703,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4695\/revisions\/4703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/media\/4697"}],"wp:attachment":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}