{"id":209,"date":"2017-02-26T13:41:06","date_gmt":"2017-02-26T04:41:06","guid":{"rendered":"http:\/\/medicalfields.jp\/blog\/?p=209"},"modified":"2017-03-23T01:36:13","modified_gmt":"2017-03-22T16:36:13","slug":"centos7%e3%81%abapachewordpress%e3%81%ae%e3%81%bf%e3%82%92%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/medicalfields.jp\/blog\/apache\/centos7%e3%81%abapachewordpress%e3%81%ae%e3%81%bf%e3%82%92%e6%a7%8b%e7%af%89\/","title":{"rendered":"CentOS7\u306bapache(WordPress\u306e\u307f)\u3092\u69cb\u7bc9"},"content":{"rendered":"<p>\u3068\u308a\u3042\u3048\u305aCentOS7\u306bWEB\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u3059\u308b<\/p>\n<p>\u3093\u3067MariaDB\u306f\u5225\u30b5\u30fc\u30d0\u30fc\u306b\u3057\u3066\u3001\u8ca0\u8377\u3092\u5206\u6563\uff01\u3063\u3066\u69cb\u9020<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #000080;\">ServerWEB1[Apache+PHP]<\/span><br \/>\n<span style=\"color: #000080;\"> \uff5c<\/span><br \/>\n<span style=\"color: #000080;\"> \u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fc\u30af \u30fc ServerSQL[MariaDB Slave]<\/span><br \/>\n<span style=\"color: #000080;\"> \uff5c<\/span><br \/>\n<span style=\"color: #000080;\"> ServerSQL[MariaDB Master]<\/span><\/p>\n<p>\u3063\u3066\u3044\u3046\u69cb\u9020\u3067\u3044\u304f<\/p>\n<p>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306f\u898b\u9001\u308a\u3067\u3059\uff08\u305d\u3093\u306a\u306b\u8ca0\u62c5\u304b\u304b\u3089\u306a\u3044\u3060\u308d\u3046\u3057\uff12\uff14\u30b3\u30a2\u307e\u3067\uff11\u5206\u3050\u3089\u3044\u3067\u62e1\u5f35\u3067\u304d\u308b\u304b\u3089\uff09<\/p>\n<h5>\u3084\u3063\u305f\u3053\u3068<\/h5>\n<p>Conoha\u3067ServerWEB1\u306e\u30b5\u30fc\u30d0\u30fc\u4f5c\u6210<\/p>\n<p>SSH\u3067\u30ed\u30b0\u30a4\u30f3<\/p>\n<pre>yum install httpd\r\nfirewall-cmd --add-port=80\/tcp --zone=public --permanent\r\nfirewall-cmd --add-port=443\/tcp --zone=public --permanent\r\nyum -y install php\r\nsystemctl start httpd.service\r\nsystemctl enable httpd.service\r\n<\/pre>\n<p>\u3093\u3067Wordpress\u3092<\/p>\n<p>DocumentRoot &#8220;\/var\/www\/html&#8221;<\/p>\n<p>\u306b\u30b3\u30d4\u30fc<\/p>\n<p>\u3059\u308b\u3068<\/p>\n<p><em>\u304a\u4f7f\u3044\u306e\u30b5\u30fc\u30d0\u30fc\u306e PHP \u3067\u306f WordPress \u306b\u5fc5\u8981\u306a MySQL \u62e1\u5f35\u3092\u5229\u7528\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/em><\/p>\n<p>\u3060\u3068<\/p>\n<pre class=\"code-pre \"><code>yum -y install php-mysql<\/code><\/pre>\n<p>\u5165\u308c\u3066<\/p>\n<p>vi \/etc\/php.ini<\/p>\n<p>\u306b\u884c\u3063\u3066<\/p>\n<p>extension=mysql.so\u306e\u8ffd\u52a0<\/p>\n<p>systemctl restart httpd.service<\/p>\n<p>\u3067\u518d\u8d77\u52d5\u3057\u305f\u3089\u52d5\u3044\u3066\u308b\u306f\u305a<\/p>\n<h3>\u3053\u3053\u3067MySQL(Maria)\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff01<\/h3>\n<p>MariaDB<\/p>\n<p>yum -y install mariadb mariadb-server<br \/>\nsystemctl enable mariadb.service<br \/>\nsystemctl start mariadb.service<\/p>\n<pre>firewall-cmd --add-port=3306\/tcp --zone=public --permanent<\/pre>\n<p>mysql_secure_installation<\/p>\n<p>\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a<\/p>\n<p>\u3068\u308a\u3042\u3048\u305aLocal\u304b\u3089\u306e\u307f\u3060\u3051\u3069\u305d\u308c\u3060\u3068\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u304b\u3089<\/p>\n<p>mysql -u root -p<\/p>\n<p>\u3067SQL\u306e\u30b3\u30de\u30f3\u30c9\u306e\u753b\u9762\u306b\u5165\u3063\u3066<\/p>\n<pre>grant all privileges on *.* to name@'%' identified by 'password' with grant option<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3067Admin\u30e6\u30fc\u30b6\u30fc\u4f5c\u3063\u305f\u3002\u3053\u308c\u3067Wordpress\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059<\/p>\n<p>\u306a\u3093\u3084\u304b\u3093\u3084\u3067\u305d\u306e\u307e\u307eduplicator\u306einstall.php\u3067\u5fa9\u5143\u3082\u3059\u3093\u306a\u308a\u51fa\u6765\u305f\uff08\u30d5\u30a9\u30eb\u30c0\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092777\u306b\u3059\u308b\u5fc5\u8981\u306f\u3042\u3063\u305f\u3051\u3069\uff09<\/p>\n<p>\u305d\u306e\u5f8cWordpress\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u52d5\u3044\u305f\u30fc\u3063\u3066\u306a\u3063\u305f\u3051\u3069\u4ed6\u306e\u30da\u30fc\u30b8\u884c\u304f\u3068Not Found\u3068\u8a00\u308f\u308c\u308b\u3002<\/p>\n<p>\u3067\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u623b\u3059\u3068\u8868\u793a\u3055\u308c\u308b<\/p>\n<h4><\/h4>\n<p>\u5b9f\u306fhttpd.conf\u306e\u8a2d\u5b9a\u306b\u4e0d\u5099\u304c\u3042\u3063\u305f\u3002<br \/>\n&lt;Directory \u201c\/var\/www\/html\u201d&gt;\u3000\uff5e\u3000&lt;\/Directory&gt;\u306e\u4e2d\u3067AllowOverride\u304cNone\u306e\u307e\u307e\u3060\u3063\u305f\u3002<br \/>\n\u3053\u306e\u305f\u3081\u3001.htaccess\u306e\u8a2d\u5b9a\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3060\u3002<br \/>\n\u305d\u3053\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u305f\u3089\u6b63\u5e38\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>AllowOverride None<br \/>\n\u2193<br \/>\nAllowOverride All<\/p>\n<p>&lt;Directory &#8220;path\/to\/your\/document\/root&#8221;&gt;<br \/>\n# &#8230;.<\/p>\n<p>AllowOverride None<\/p>\n<p># &#8230;.<\/p>\n<p>&lt;\/Directory&gt;<\/p>\n<p>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3082\u3067\u304d\u305f\u3057Wordpress\u52d5\u3044\u305f\u30fc\u3063\u3066\u306a\u3063\u305f\u3051\u3069\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u6709\u52b9\u30da\u30fc\u30b8\u306b\u884c\u304f\u3068\u4f55\u6545\u304b\u771f\u3063\u767d\u306b\u306a\u308b<\/p>\n<p>\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u6709\u52b9\u306b\u3059\u308b\u3068<\/p>\n<p>PHP Fatal error: Call to undefined function mb_convert_kana() in &#8230;<\/p>\n<p>\u3060\u3063\u3066<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5<br \/>\nyum -y install php-mbstring<\/p>\n<p>\u3055\u3089\u306bjetPack\u3092\u4f7f\u3046\u3068\u30a8\u30e9\u30fc<br \/>\nFatal error: Class &#8216;DOMDocument&#8217; not found in<br \/>\nyum -y install php-xml<\/p>\n<p>\u3067OK<\/p>\n<p>\u306a\u3093\u304b\u8abf\u5b50\u60aa\u305d\u3046\u306a\u3089\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u6709\u52b9\u306b\u3059\u308b\u3068\u539f\u56e0\u304c\u308f\u304b\u308b<\/p>\n<p>wp-config.php<br \/>\n\u306b<br \/>\ndefine(&#8216;WP_DEBUG&#8217;, true);\u3092\u8ffd\u52a0\u3059\u308b\u3068\u826f\u3044<\/p>\n<h5><strong>\u5de5\u4e8b\u5b8c\u4e86\u3067\u3059\uff01<\/strong><\/h5>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3068\u308a\u3042\u3048\u305aCentOS7\u306bWEB\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u3059\u308b \u3093\u3067MariaDB\u306f\u5225\u30b5\u30fc\u30d0\u30fc\u306b\u3057\u3066\u3001\u8ca0\u8377\u3092\u5206\u6563\uff01\u3063\u3066\u69cb\u9020 ServerWEB1[Apache+PHP] \uff5c \u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fc\u30af \u30fc ServerSQL[Maria &hellip; <a href=\"https:\/\/medicalfields.jp\/blog\/apache\/centos7%e3%81%abapachewordpress%e3%81%ae%e3%81%bf%e3%82%92%e6%a7%8b%e7%af%89\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">CentOS7\u306bapache(WordPress\u306e\u307f)\u3092\u69cb\u7bc9<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[10],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6kJO0-3n","_links":{"self":[{"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/posts\/209"}],"collection":[{"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":10,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/posts\/209\/revisions\/233"}],"wp:attachment":[{"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}