{"id":14176,"date":"2015-02-08T22:45:32","date_gmt":"2015-02-08T13:45:32","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=14176"},"modified":"2016-06-18T17:12:45","modified_gmt":"2016-06-18T08:12:45","slug":"install-redmine2-5-with-fastcgi-via-apache24-on-freebsd10","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2015\/02\/install-redmine2-5-with-fastcgi-via-apache24-on-freebsd10.html","title":{"rendered":"FreeBSD10\u3067Redmine2.5\u3092Apache2.4+FastCGI\u3067\u52d5\u304b\u3059[\u8ffd\u8a18\u3042\u308a]"},"content":{"rendered":"<p>\u81ea\u5b85\u3067Redmine\u52d5\u304b\u3057\u3066\u307e\u3059\u3002\u5099\u5fd8\u9332\u4ed8\u304d\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u4ee3\u308f\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/08\/installing-redmine-on-freebsd-9-1-with-apache-2-4.html\" rel=\"_RAclick\">FreeBSD 9.1\u306eApache2.4\u306bRedmine\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e748\u670816\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/12\/redmine-by-oneself.html\" rel=\"_RAclick\">\u4e00\u4ebaRedmine : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e7412\u670816\u65e5)<\/em><\/li>\n<\/ul>\n<p>\u306a\u306e\u3067\u3059\u304c\u3001FreeBSD\u3067pkg upgrade -f\u3059\u308b\u305f\u3073\u306b\u3001Redmine\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u56f0\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/11\/repairing-freebsd-10-0.html\" rel=\"_RAclick\">\u307e\u305fFreeBSD10.0(WordPress, Redmine)\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u5fa9\u65e7\u4f5c\u696d : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e7411\u67083\u65e5)<\/em><\/li>\n<\/ul>\n<p>\u683c\u95d8\u306e\u672b\u3001\u89e3\u6c7a\u65b9\u6cd5\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u7d50\u5c40\u3001Redmine\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u4e8b\u3092\u3061\u3083\u3093\u3068\u3084\u308c\u3070\u3001\u52d5\u304f\u3068\u8a00\u3046\u4e8b\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/redmine.jp\/guide\/RedmineInstall\/\" target=\"_blank\">Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u2014 Redmine Guide \u65e5\u672c\u8a9e\u8a33<\/a><\/li>\n<li><a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/HowTo_configure_Apache_to_run_Redmine#For-FreeBSD-and-possibly-others\" target=\"_blank\">HowTo configure Apache to run Redmine &#8211; Redmine<\/a><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13262\" src=\"https:\/\/oichinote.com\/plus\/files\/2014\/11\/20141103redmine.png\" alt=\"Redmine\" width=\"242\" height=\"163\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2014\/11\/20141103redmine.png 242w, https:\/\/oichinote.com\/plus\/files\/2014\/11\/20141103redmine-150x101.png 150w\" sizes=\"auto, (max-width: 242px) 100vw, 242px\" \/><\/p>\n<p>\u5fc5\u8981\u306a\u4e8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/08\/installing-redmine-on-freebsd-9-1-with-apache-2-4.html\" rel=\"_RAclick\">FreeBSD 9.1\u306eApache2.4\u306bRedmine\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e748\u670816\u65e5)<\/em><\/li>\n<\/ul>\n<\/li>\n<li>mod_fcgi\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068mod_fastcgi\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n<ul>\n<li>\u4e0a\u8a18\u306e\u3084\u308a\u65b9\u3060\u3063\u305f\u5834\u5408<\/li>\n<\/ul>\n<\/li>\n<li>Apache24\u306e\u8a2d\u5b9a\n<ul>\n<li>FastCgiServer\u306e\u8a2d\u5b9a<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306f\u3001pkgng\u306b\u79fb\u884c\u6e08\u307f\u3068\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/01\/shift-to-pkgng.html\" rel=\"_RAclick\">FreeBSD\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3092pkgng\u306b\u79fb\u884c : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e741\u670818\u65e5)<\/em><\/li>\n<\/ul>\n[amazonjs asin=\"488337968X\" locale=\"JP\"]\n<h3>1. Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u6b21\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u4e0b\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/08\/installing-redmine-on-freebsd-9-1-with-apache-2-4.html\" rel=\"_RAclick\">FreeBSD 9.1\u306eApache2.4\u306bRedmine\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e748\u670816\u65e5)<\/em><\/li>\n<\/ul>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u6b21\u306e\u4e8b\u3092\u3059\u308c\u3070\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u63b2\u8f09\u306e\u9806\u756a\u304c\u524d\u5f8c\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u306e\u65b9\u304c\u81ea\u7136\u3068\u601d\u3044\u307e\u3059\u3002\u3002<\/p>\n<ol>\n<li value=\"1\">Apache 2.4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li value=\"4\">MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li value=\"5\">PHP5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li value=\"6\">phpMyAdmin\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li value=\"7\">Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li value=\"3\">rubygem-mysql2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li value=\"8\">Redmine\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210<\/li>\n<li value=\"9\">Redmine\u306e\u8a2d\u5b9a<\/li>\n<li value=\"10\">\u521d\u671f\u30c7\u30fc\u30bf\u306e\u4f5c\u6210<\/li>\n<\/ol>\n<p>\u3061\u3087\u3063\u3068\u4e0d\u89aa\u5207\u306a\u306e\u3067\u3001\u8981\u70b9\u3060\u3051\u66f8\u3044\u3066\u884c\u304d\u307e\u3059\u3002<\/p>\n<h4>1.1 Apache 2.4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>Web\u30b5\u30fc\u30d0\u3067\u3059\u3002\u6b21\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<pre># pkg install apache24<\/pre>\n<h4>1.4 MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>Redmine\u306e\u30c7\u30fc\u30d0\u30d9\u30fc\u30b9\u3068\u3057\u3066\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre># pkg install mysql56-server mysql56-client<\/pre>\n<p>(\u8ffd\u8a18 2015-02-21 13:05 Redmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u81ea\u52d5\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002FreeBSD\u306e\u6700\u65b0pkg\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5909\u66f4\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<h4>1.5 PHP5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>Redmine\u3067\u306f\u306a\u304f\u3001\u6b21\u306b\u8aac\u660e\u3059\u308bphpMyAdmin\u306b\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre># pkg install php5<\/pre>\n<p>PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u3053\u308c\u3060\u3051\u3067\u306f\u6e08\u307e\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u7701\u7565\u3057\u307e\u3059\u3002\u6700\u521d\u306b\u7d39\u4ecb\u3057\u305f\u8a18\u4e8b\u3060\u3068\u3001PHP5.5\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u65b9\u6cd5\u3060\u3068PHP5.4\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>1.6 phpMyAdmin\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>GUI\u3067MySQL\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u308b\u305f\u3081\u306b\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002MySQL\u306b\u6163\u308c\u3066\u3044\u308b\u4eba\u306f\u3001\u76f4\u63a5\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u64cd\u4f5c\u3057\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<pre># pkg install phpMyAdmin<\/pre>\n<p>\u4e0a\u8a18\u306ePHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u8db3\u308a\u306a\u3044\u7269\u306f\u3001\u3053\u306e\u904e\u7a0b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4>1.7 Redmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>Redmine\u306e\u672c\u4f53\u3067\u3059\u3002<\/p>\n<pre># pkg install redmine<\/pre>\n<p>\u8db3\u308a\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308c\u3070\u3001\u8ffd\u52a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4>1.3 rubygem-mysql2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>Redmine\u3092\u65e5\u672c\u8a9e\u8a2d\u5b9a\u3067\u4f7f\u3046\u6642\u306b\u3001rubygem-mysql2\u304c\u5fc5\u8981\u306a\u69d8\u3067\u3059\u3002<\/p>\n<pre># pkg install rubygem-mysql2<\/pre>\n<p>\u3061\u3083\u3093\u3068\u78ba\u304b\u3081\u3066\u306a\u3044\u3067\u3059\u304c\u3001RubyGem\u306e\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4>1.8 Redmine\u7528\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210<\/h4>\n<p>\u5148\u306b\u7d39\u4ecb\u3057\u305f\u8a18\u4e8b\u3060\u3068\u3001\u6b21\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30e6\u30fc\u30b6\u540d: redmine<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d: redmine_db<\/li>\n<\/ul>\n<p>phpMyAdmin\u306e\u64cd\u4f5c\u753b\u9762\u4ed8\u304d\u3067\u8aac\u660e\u3057\u3066\u3042\u308b\u306e\u3067\u3001\u6b21\u306e\u8a18\u4e8b\u3092\u3054\u53c2\u7167\u4e0b\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/08\/installing-redmine-on-freebsd-9-1-with-apache-2-4.html\" rel=\"_RAclick\">FreeBSD 9.1\u306eApache2.4\u306bRedmine\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e748\u670816\u65e5)<\/em><\/li>\n<\/ul>\n<h4>1.9 Redmine\u306e\u8a2d\u5b9a<\/h4>\n<p>\u6b21\u306e\u8a18\u4e8b\u306e\u901a\u308a\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/08\/installing-redmine-on-freebsd-9-1-with-apache-2-4.html\" rel=\"_RAclick\">FreeBSD 9.1\u306eApache2.4\u306bRedmine\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e748\u670816\u65e5)<\/em><\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u4e94\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<ul>\n<li>\/usr\/local\/www\/redmine\/config\/database.yml<\/li>\n<li>\/usr\/local\/www\/redmine\/config\/configuration.yml<\/li>\n<li>\/usr\/local\/www\/redmine\/public\/dispatch.fcgi<\/li>\n<li>\/usr\/local\/www\/redmine\/public\/.htaccess<\/li>\n<li>\/usr\/local\/www\/redmine\/Gemfile.local<\/li>\n<\/ul>\n<h4>1.10 \u521d\u671f\u30c7\u30fc\u30bf\u306e\u4f5c\u6210<\/h4>\n<p>\u5f53\u6642\u306f\u3001\u610f\u5473\u304c\u826f\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u4eca\u3082\u3001\u3061\u3083\u3093\u3068\u306f\u308f\u304b\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3002\u4eca\u306e\u7406\u89e3\u3060\u3068\u3001Gem\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u74b0\u5883\u306e\u30d3\u30eb\u30c9\u3092\u3057\u3066\u3044\u308b\u69d8\u3067\u3059\u3002pkg upgrade -f\u3092\u3059\u308b\u5ea6\u306b\u3001\u5fc5\u8981\u306a\u69d8\u3067\u3059\u3002<\/p>\n<pre># cd \/usr\/local\/www\/redmine\r\n# bundle install\r\n# rake generate_secret_token\r\n# rake db:migrate RAILS_ENV=production\r\n# rake redmine:load_default_data RAILS_ENV=production\r\n\r\nSelect language: ar, az, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] ja\r\n====================================\r\nDefault configuration data loaded.<\/pre>\n<h3>2. mod_fastcgi\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u6700\u521d\u306f\u3001mod_fcgid\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001mod_fastcgi\u306e\u65b9\u304cPHP-FPM\u3068\u8a00\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u76f8\u6027\u304c\u826f\u3055\u305d\u3046\u306a\u306e\u3067\u3001\u4e57\u308a\u63db\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u3082\u3057\u3001fcgid\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u305f\u3089\u3001\u6b21\u306e\u65b9\u6cd5\u3067\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre># pkg remove ap24-mod_fcgid<\/pre>\n<p>\u305d\u306e\u5f8c\u3001mod_fastcgi\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre># pkg install ap24-mod_fastcgi<\/pre>\n<p>\u305f\u3057\u304b\u3001\u81ea\u52d5\u3067\/usr\/local\/etc\/apache24\/httpd.conf\u3082\u66f8\u304d\u5909\u308f\u3063\u305f\u3068\u601d\u3044\u307e\u3059\u3002\u3082\u3057\u3001\u30b3\u30e1\u30f3\u30c8(\u884c\u982d\u306e#)\u304c\u3042\u3063\u305f\u3089\u3001\u6d88\u3057\u3066\u304a\u3044\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">LoadModule fastcgi_module libexec\/apache24\/mod_fastcgi.so<\/code><\/pre>\n<h3>3. Apache24\u306e\u8a2d\u5b9a<\/h3>\n<p>\u3044\u3088\u3044\u3088\u3001\u6838\u5fc3\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\/usr\/local\/etc\/apache24\/httpd.conf\u306b\u6b21\u306e2\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002URL\u306erewrite\u3068phpMyAdmin\u7528\u3067\u3059\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">LoadModule rewrite_module libexec\/apache24\/mod_rewrite.so\r\nLoadModule php5_module libexec\/apache24\/libphp5.so\r\n<\/code><\/pre>\n<p>\u79c1\u306e\u5834\u5408\u3001redmine\u306fVirtual Host\u3068\u3057\u3066\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\/usr\/local\/etc\/apache24\/httpd.conf\u306e\u4fee\u6b63\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">Include etc\/apache24\/extra\/httpd-vhosts.conf<\/code><\/pre>\n<p>\u30b3\u30e1\u30f3\u30c8\u884c\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u3067\u3001\u884c\u982d\u306e#\u3092\u6d88\u3057\u307e\u3059\u3002<\/p>\n<p>Ruby on Rails\u30a2\u30d7\u30ea\u306e\u8a2d\u5b9a\u3067\u3059\u3002\/usr\/local\/etc\/apache24\/Includes\/Passenger.conf\u3068\u8a00\u3046\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002\u4ee5\u524d\u306f\u3001redmine.conf\u306b\u8a18\u8f09\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001Passenger.conf\u306e\u65b9\u304c\u81ea\u7136\u3060\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u540d\u524d\u3092\u4ed8\u3051\u66ff\u3048\u307e\u3057\u305f\u3002\u5148\u306e\u8a18\u4e8b\u306e\u901a\u308a\u306b\u3001redmine.conf\u3092\u4f5c\u3089\u308c\u3066\u3044\u308b\u65b9\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u3066\u304a\u3044\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">LoadModule passenger_module \/usr\/local\/lib\/ruby\/gems\/2.0\/gems\/passenger-4.0.58\/buildout\/apache2\/mod_passenger.so\r\nPassengerRoot \/usr\/local\/lib\/ruby\/gems\/2.0\/gems\/passenger-4.0.58\r\nPassengerRuby \/usr\/local\/bin\/ruby20\r\n<\/code><\/pre>\n<p>\u4eca\u307e\u3067\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u5185\u5bb9\u3092\u624b\u63a2\u308a\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001pkg upgrade\u306e\u969b\u306b\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u4e8b\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre>Message for rubygem-passenger-4.0.58:\r\n #####################################################################\r\n\r\nPlease edit your Apache configuration file, and add these lines:\r\n\r\n   LoadModule passenger_module \/usr\/local\/lib\/ruby\/gems\/2.0\/gems\/passenger-4.0.58\/buildout\/apache2\/mod_passenger.so\r\n   PassengerRoot \/usr\/local\/lib\/ruby\/gems\/2.0\/gems\/passenger-4.0.58\r\n   PassengerRuby \/usr\/local\/bin\/ruby20\r\n\r\nAfter you restart Apache, you are ready to deploy any number of Ruby on Rails\r\napplications on Apache, without any further Ruby on Rails-specific\r\nconfiguration!\r\n\r\n#####################################################################\r\n<\/pre>\n<p>Virtual Host\u3068\u3057\u3066\u4f7f\u3046\u305f\u3081\u306b\u306f\u3001\/usr\/local\/etc\/apache24\/extra\/httpd-vhosts.conf\u306b\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30db\u30b9\u30c8\u540d\u306a\u3069\u306f\u3001\u5fc5\u8981\u306b\u5408\u308f\u305b\u3066\u66f8\u304d\u63db\u3048\u3066\u4e0b\u3055\u3044\u3002\u307e\u305f\u3001\/etc\/hosts\u306a\u3069\u3067\u3001\u30db\u30b9\u30c8\u540d\u3092\u5f15\u3051\u308b\u69d8\u306b\u306a\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">ServerAdmin webmaster@example.com\r\nErrorLog &quot;\/var\/log\/redmine.example.com-error_log&quot;\r\nCustomLog &quot;\/var\/log\/redmine.example.com-access_log&quot; common\r\nDocumentRoot \/usr\/local\/www\/redmine\/public\r\nServerName redmine.example.com\r\nFastCgiServer \/usr\/local\/www\/redmine\/public\/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -initial-env PATH=\/usr\/local\/bin -processes 2\r\n# default charset UTF-8\r\nAddDefaultCharset utf-8\r\n\r\n# .htaccess setting\r\nAllowOverride All\r\n\r\n# SSI OK\r\n# SymbolicLink OK\r\nOptions +Includes +FollowSymLinks +ExecCGI\r\n# MultiViews must be turned off.\r\nOptions -MultiViews\r\n\r\n# aapche 2.4 change config\r\nRequire all granted\r\n<\/code><\/pre>\n<p>6\u884c\u76ee\u306e&#8221;FastCgiServer&#8221;\u306e\u8a2d\u5b9a\u304c\u809d\u3067\u3059\u3002\u6b21\u306e\u8a18\u4e8b\u306eFreeBSD\u306e\u6240\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/HowTo_configure_Apache_to_run_Redmine#For-FreeBSD-and-possibly-others\" target=\"_blank\">HowTo configure Apache to run Redmine &#8211; Redmine<\/a><\/li>\n<\/ul>\n<p>\u3053\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u307e\u3067\u3001\u672c\u6587\u306f\u8868\u793a\u3055\u308c\u308b\u7269\u306e\u3001Style Sheet\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u72b6\u614b\u306b\u306a\u308a\u307e\u3057\u305f\u3002CSS\u304c\u7121\u52b9\u306a\u72b6\u614b\u3067\u3059\u3002\u304b\u306a\u308a\u60a9\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14189\" src=\"https:\/\/oichinote.com\/plus\/files\/2015\/02\/20150208redmine-nocss.png\" alt=\"CSS\u304c\u52b9\u304b\u306a\u3044Redmine\" width=\"259\" height=\"359\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2015\/02\/20150208redmine-nocss.png 259w, https:\/\/oichinote.com\/plus\/files\/2015\/02\/20150208redmine-nocss-108x150.png 108w\" sizes=\"auto, (max-width: 259px) 100vw, 259px\" \/><\/p>\n<p>\u6b21\u306e\u69d8\u306a\u30ed\u30b0\u304c\u6b8b\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre>FastCGI: comm with (dynamic) server \"\/usr\/local\/www\/redmine\/public\/dispatch.fcgi\" aborted: (first read) idle timeout (30 sec)\r\nFastCGI: incomplete headers (0 bytes) received from server \"\/usr\/local\/www\/redmine\/public\/dispatch.fcgi\"\r\n<\/pre>\n<p>\u305d\u308c\u3068\u3001Style Sheet\u3092\u958b\u3053\u3046\u3068\u3059\u308b\u3068\u3001\u6b21\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre>&lt;h2&gt;Application error&lt;\/h2&gt;Rails application failed to start properly<\/pre>\n<p>\u539f\u56e0\u306f\u3001Apache\u306e\u518d\u8d77\u52d5\u3092\u5fd8\u308c\u3066\u3044\u305f\u305f\u3081\u3067\u3057\u305f\u3002Rails\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001Apache\u3092\u518d\u8d77\u52d5\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre># apachectl restart<\/pre>\n<p>\u304d\u3061\u3093\u3068\u8868\u793a\u3055\u308c\u308b\u304b\u3001\u3054\u78ba\u8a8d\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u3075\u3045\u301c\u3002\u3042\u301c\u3001\u75b2\u308c\u305f\u3002\u554f\u984c\u306e\u89e3\u6c7a\u3068\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u304f\u306e\u3067\u3001\u4e38\u4e00\u65e5\u3064\u3076\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>(\u8ffd\u8a18 2015-02-09 22:06)<\/p>\n<p>CSS\u304c\u7121\u52b9\u306a\u72b6\u614b\u306e\u6642\u306b\u30ed\u30b0\u306b\u51fa\u3066\u3044\u305f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8f09\u305b\u307e\u3057\u305f\u3002<\/p>\n[amazonjs asin=\"4798042471\" locale=\"JP\"]\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5b85\u3067Redmine\u52d5\u304b\u3057\u3066\u307e\u3059\u3002\u5099\u5fd8\u9332\u4ed8\u304d\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u4ee3\u308f\u308a\u3067\u3059\u3002 FreeBSD 9.1\u306eApache2.4\u306bRedmine\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2013\u5e748\u670816\u65e5) \u4e00\u4ebaRedmine [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13262,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eFreeBSD10\u3067Redmine2.5\u3092Apache2.4+FastCGI\u3067\u52d5\u304b\u3059[\u8ffd\u8a18\u3042\u308a]\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[60,5],"tags":[],"class_list":["post-14176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-freebsd","category-computer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oichinote.com\/plus\/files\/2014\/11\/20141103redmine.png","jetpack-related-posts":[{"id":12979,"url":"https:\/\/oichinote.com\/plus\/2014\/09\/freebsd-is-running-normally.html","url_meta":{"origin":14176,"position":0},"title":"\u3084\u3063\u3068FreeBSD10.0\u304c\u901a\u5e38\u904b\u8ee2\u306b\u623b\u3063\u305f","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e749\u670827\u65e5","format":false,"excerpt":"\u5148\u65e5\u3001Redmine\u306e\u30c7\u30fc\u30bf\u3092\u6d88\u5931\u3057\u3066\u304b\u3089\u3001\u304b\u306a\u308a\u304c\u3063\u304f\u308a\u6765\u3066\u3001\u30b5\u30fc\u30d0\u7ba1\u7406\u3092\u307e\u3058\u3081\u306b\u3057\u3066\u304d\u307e\u305b\u3093\u3067\u3057\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"\u30b5\u30fc\u30d0\u6a5f","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/09\/20130910my-server.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":11985,"url":"https:\/\/oichinote.com\/plus\/2014\/05\/lost-redmine-db.html","url_meta":{"origin":14176,"position":1},"title":"Redmine\u306e\u30c7\u30fc\u30bf\u3092\u6d88\u5931(FreeBSD 10.0\u3067Apache2.4)","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e745\u670831\u65e5","format":false,"excerpt":"FreeBSD 10.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3068\u3001Apache\u306e\u6a19\u6e96\u304c2.2\u306b\u3001MySQL\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9088,"url":"https:\/\/oichinote.com\/plus\/2013\/08\/installing-redmine-on-freebsd-9-1-with-apache-2-4.html","url_meta":{"origin":14176,"position":2},"title":"FreeBSD 9.1\u306eApache2.4\u306bRedmine\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e748\u670816\u65e5","format":false,"excerpt":"\u307e\u3041\u3001\u500b\u4eba\u3067Redmine\u3092\u4f7f\u3046\u307e\u3067\u306e\u4e8b\u3082\u7121\u3044\u306e\u3067\u3059\u304c\u3001\u9ad8\u5ea6\u306aToDo\u30ea\u30b9\u30c8\u3001\u9032\u6357\u7ba1\u7406\u3001\u884c\u52d5\u8a18\u9332\u3068\u3057\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"php55-extentions","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/08\/20130816php1-416x480.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":10325,"url":"https:\/\/oichinote.com\/plus\/2013\/12\/cannnot-attach-files-to-a-chiket.html","url_meta":{"origin":14176,"position":3},"title":"Redmine\u306e\u30c1\u30b1\u30c3\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8\u3067\u304d\u306a\u3044[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e7412\u670817\u65e5","format":false,"excerpt":"\u4e00\u4ebaRedmine\u3092\u3084\u3063\u3066\u3044\u307e\u3059\u3002 Redmine\u306e\u4f7f\u3044\u9053: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2013\u5e7412\u670813\u65e5\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"Redmine\u30d5\u30a1\u30a4\u30eb\u6dfb\u4ed8","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/12\/20160918redmine-file-error.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":10303,"url":"https:\/\/oichinote.com\/plus\/2013\/12\/way-to-use-redmine.html","url_meta":{"origin":14176,"position":4},"title":"Redmine\u306e\u4f7f\u3044\u9053","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e7412\u670813\u65e5","format":false,"excerpt":"\u81ea\u5b85\u30b5\u30fc\u30d0\u306bRedmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3042\u308a\u307e\u3059\u3002 FreeBSD 9.1\u306eApache2.4\u306b\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"\u6700\u521d\u306e\u30c1\u30b1\u30c3\u30c8","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/12\/20131213redmine-first.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":13261,"url":"https:\/\/oichinote.com\/plus\/2014\/11\/repairing-freebsd-10-0.html","url_meta":{"origin":14176,"position":5},"title":"\u307e\u305fFreeBSD10.0(WordPress, Redmine)\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u5fa9\u65e7\u4f5c\u696d","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e7411\u67083\u65e5","format":false,"excerpt":"\u5148\u3005\u6708\u3001\u30b5\u30fc\u30d0\u3068\u3057\u3066\u4f7f\u3063\u3066\u3044\u308bFreeBSD10.0\u304c\u307e\u3068\u3082\u306b\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002 \u3084\u3063\u3068Fre\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"Redmine","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2014\/11\/20141103redmine.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=14176"}],"version-history":[{"count":25,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14176\/revisions"}],"predecessor-version":[{"id":18049,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14176\/revisions\/18049"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media\/13262"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=14176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=14176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=14176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}