{"id":7144,"date":"2020-01-30T11:15:28","date_gmt":"2020-01-30T02:15:28","guid":{"rendered":"http:\/\/www.k-in.co.jp\/niwakan\/?p=7144"},"modified":"2021-11-18T09:15:43","modified_gmt":"2021-11-18T00:15:43","slug":"macports%e3%81%a7web-server%ef%bc%9aconfig-file%e7%b7%a8%e9%9b%86%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2020\/01\/7144\/","title":{"rendered":"MacPorts\u3067Web Server\uff1aconfig file\u7de8\u96c6\u7de8"},"content":{"rendered":"<p><a href=\"https:\/\/www.k-in.co.jp\/niwakan\/2020\/01\/24\/macports%e3%81%a7web-server\/\">\u524d\u306e\u8a18\u4e8b<\/a>\u304c\u9577\u304f\u306a\u308a\u904e\u304e\u305f\u306e\u3067\u3001\u5206\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u3053\u3067\u306fConfig file\u306e\u5909\u66f4\u70b9\uff08diff\u306e\u51fa\u529b\u7d50\u679c\uff09\u306e\u307f\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u3082\u5909\u66f4\u306b\u4f34\u3044\u4fee\u6b63\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h4>\/opt\/local\/etc\/apache2\/httpd.conf\u306e\u7de8\u96c6<\/h4>\n<p>\u8a72\u5f53\u7b87\u6240\u3092\u4fee\u6b63\u304a\u3088\u3073\u8ffd\u52a0<\/p>\n<pre class=\"lang:default decode:true \" title=\"httpd.conf\u3068orig\u3068\u306ediff\">\r\n84,86c84,86\r\n< #LoadModule file_cache_module lib\/apache2\/modules\/mod_file_cache.so\r\n< #LoadModule cache_module lib\/apache2\/modules\/mod_cache.so\r\n< #LoadModule cache_disk_module lib\/apache2\/modules\/mod_cache_disk.so\r\n---\r\n> LoadModule file_cache_module lib\/apache2\/modules\/mod_file_cache.so\r\n> LoadModule cache_module lib\/apache2\/modules\/mod_cache.so\r\n> LoadModule cache_disk_module lib\/apache2\/modules\/mod_cache_disk.so\r\n88c88\r\n< #LoadModule socache_shmcb_module lib\/apache2\/modules\/mod_socache_shmcb.so\r\n---\r\n> LoadModule socache_shmcb_module lib\/apache2\/modules\/mod_socache_shmcb.so\r\n144c144\r\n< #LoadModule ssl_module lib\/apache2\/modules\/mod_ssl.so\r\n---\r\n> LoadModule ssl_module lib\/apache2\/modules\/mod_ssl.so\r\n168c168,169\r\n< #LoadModule rewrite_module lib\/apache2\/modules\/mod_rewrite.so\r\n---\r\n> LoadModule rewrite_module lib\/apache2\/modules\/mod_rewrite.so\r\n> LoadModule php7_module lib\/apache2\/modules\/mod_php74.so\r\n201c202,203\r\n< ServerAdmin you@example.com\r\n---\r\n> #ServerAdmin you@example.com\r\n> ServerAdmin\tsupport@k-in.co.jp\r\n210c212\r\n< #ServerName www.example.com:80\r\n---\r\n> ServerName\twww2.lo.k-in.co.jp\r\n219c221\r\n<     Require all denied\r\n---\r\n>     Require all granted\r\n255c257\r\n<     AllowOverride None\r\n---\r\n> \tAllowOverride\tAll\r\n268c270\r\n<     DirectoryIndex index.html\r\n---\r\n>     DirectoryIndex index.html index.php\r\n433a436\r\n> \r\n516c519\r\n< #Include etc\/apache2\/extra\/httpd-ssl.conf\r\n---\r\n> Include etc\/apache2\/extra\/httpd-ssl.conf\r\n526a530\r\n> Include\tetc\/apache2\/extra\/mod_php74.conf\r\n\r\n<\/pre>\n<h4>MariaDB10.2\u306e\u8a2d\u5b9a<\/h4>\n<p>\/opt\/local\/etc\/mariadb-10.2\/my.cnf\u3092\u66f8\u304d\u63db\u3048\u308b<br \/>\ndefault\u306e\u307e\u307e\u3060\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u304d\u306a\u3044<br \/>\nmy-medium.cnf\u306f\/opt\/local\/share\/mariadb-10.2\/support-files\u306b\u3042\u3063\u305f\uff08large\u3084small\u3082\u3042\u3063\u305f\u304c\u771f\u3093\u4e2d\u3092\u9078\u3076\uff09<\/p>\n<pre class=\"lang:default decode:true \" title=\"my.conf\" >\r\n2c2\r\n< !include \/opt\/local\/etc\/mariadb-10.2\/macports-default.cnf\r\n---\r\n> !include \/opt\/local\/etc\/mariadb-10.2\/my-medium.cnf\r\n<\/pre>\n<p>\/opt\/local\/etc\/mariadb-10.2\/my-medium.cnf\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true \" >\r\n\u307e\u3060\u89e6\u3063\u3066\u3044\u307e\u305b\u3093\u3002\r\n<\/pre>\n<h4>2020.01.28<\/h4>\n<p>\u6295\u7a3f\u3092\u5206\u3051\u305f\u6642\u70b9\u3067\u306e\u5185\u5bb9\u3092\u8868\u793a\u3002<\/p>\n<h4>2020.01.31<\/h4>\n<p>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u5909\u66f4\u3059\u308b\u3068\u30da\u30fc\u30b8\u306e\u8868\u793a\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u305f\u3002<br \/>\nrewrite_module\u304c\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u4fee\u6b63\u3002<\/p>\n<h4>2020.02.01<\/h4>\n<p>apachectl -t\u3067config file\u306e\u30c1\u30a7\u30c3\u30af\u3092\u3057\u305f\u3068\u3053\u308d<\/p>\n<pre class=\"lang:default decode:true \" title=\"apachectl -t\" >\r\nAH00526: Syntax error on line 92 of \/opt\/local\/etc\/apache2\/extra\/httpd-ssl.conf:\r\nSSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).\r\n<\/pre>\n<p>ssl_module\u306e\u8d77\u52d5\u306b\u3001socache_shmcb_module\u304c\u5fc5\u8981\u3089\u3057\u304b\u3063\u305f\u306e\u3067\u3001\u8a72\u5f53\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u4fee\u6b63\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u306e\u8a18\u4e8b\u304c\u9577\u304f\u306a\u308a\u904e\u304e\u305f\u306e\u3067\u3001\u5206\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u3053\u3053\u3067\u306fConfig file\u306e\u5909\u66f4\u70b9\uff08diff\u306e\u51fa\u529b\u7d50\u679c\uff09\u306e\u307f\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002 \u3053\u3061\u3089\u3082\u5909\u66f4\u306b\u4f34\u3044\u4fee\u6b63\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[115],"tags":[159,39,38,148,24],"class_list":["post-7144","post","type-post","status-publish","format-standard","hentry","category-software","tag-apache","tag-mysql","tag-php","tag-server","tag-system"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/7144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/comments?post=7144"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/7144\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=7144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=7144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=7144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}