{"id":14204,"date":"2015-02-09T23:17:15","date_gmt":"2015-02-09T14:17:15","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=14204"},"modified":"2016-06-18T17:47:38","modified_gmt":"2016-06-18T08:47:38","slug":"php-with-fastcgi-on-freebsd10","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2015\/02\/php-with-fastcgi-on-freebsd10.html","title":{"rendered":"FreeBSD10\u3067PHP5.4\u3092Apache24+FastCGI\u3067\u52d5\u304b\u3059"},"content":{"rendered":"<p>FreeBSD\u3067Redmine\u3092FastCGI\u7d4c\u7531\u3067\u52d5\u304b\u3059\u4e8b\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2015\/02\/install-redmine2-5-with-fastcgi-via-apache24-on-freebsd10.html\" rel=\"_RAclick\">FreeBSD10\u3067Redmine2.5\u3092Apache2.4+FastCGI\u3067\u52d5\u304b\u3059[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2015\u5e742\u67088\u65e5)<\/em><\/li>\n<\/ul>\n<p>\u305d\u306e\u526f\u7523\u7269\u3068\u3057\u3066\u3001PHP\u3082FastCGI\u7d4c\u7531\u3067\u52d5\u304b\u3059\u4e8b\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u6b21\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002Thank you!<\/p>\n<ul>\n<li><a href=\"http:\/\/kaworu.jpn.org\/freebsd\/PHP5.5%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B#Apache_2.4_.2B_PHP-FPM\" target=\"_blank\">PHP5.5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b &#8211; FreeBSD\u5165\u9580<\/a><\/li>\n<li><a href=\"https:\/\/www.howtoforge.com\/using-php5-fpm-with-apache-2.4-mod_proxy_fcgi-module-on-fedora-18-p2\" target=\"_blank\">Using PHP5-FPM With Apache 2.4 (+ mod_proxy_fcgi Module) On Fedora 18 &#8211; Page 2 &#8211; Page 2<\/a><\/li>\n<\/ul>\n<p>\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3068\u3057\u3066\u3001VirtualHost\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001www.example.com\u3067\u904b\u55b6\u3057\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002\u307e\u305f\u3001PHP5.4\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u3068\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\/usr\/local\/etc\/apache24\/httpd.conf\u306e\u4fee\u6b63<\/li>\n<li>\/usr\/local\/etc\/apache24\/extra\/httpd-vhosts.conf\u306e\u4fee\u6b63<\/li>\n<li>\u52d5\u4f5c\u78ba\u8a8d<\/li>\n<\/ol>\n[amazonjs asin=\"488337968X\" locale=\"JP\"]\n<h3>1. \/usr\/local\/etc\/apache24\/httpd.conf\u306e\u4fee\u6b63<\/h3>\n<p>\u307e\u305a\u306f\u3001\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">LoadModule php5_module libexec\/apache24\/libphp5.so\r\nLoadModule proxy_module libexec\/apache24\/mod_proxy.so\r\nLoadModule proxy_fcgi_module libexec\/apache24\/mod_proxy_fcgi.so\r\nLoadModule fastcgi_module libexec\/apache24\/mod_fastcgi.so\r\n<\/code><\/pre>\n<p>\u62e1\u5f35\u5b50.php\/.phps\u306e\u95a2\u9023\u4ed8\u3051\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">AddType application\/x-httpd-php .php\r\nAddType application\/x-httpd-php-source .phps\r\n<\/code><\/pre>\n<p>WordPress\u3092\u52d5\u304b\u3059\u6642\u306a\u3069\u306b\u5fc5\u8981\u3067\u3059\u304c\u3001index.php\u3082\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3068\u3057\u3066\u8a8d\u8b58\u51fa\u6765\u308b\u69d8\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">#\r\n# DirectoryIndex: sets the file that Apache will serve if a directory\r\n# is requested.\r\n#\r\n\r\nDirectoryIndex index.html index.htm index.php\r\n\r\n<\/code><\/pre>\n<h3>2. \/usr\/local\/etc\/apache24\/extra\/httpd-vhosts.conf\u306e\u4fee\u6b63<\/h3>\n<p>VirtualHost\u3067\u52d5\u304b\u3059\u305f\u3081\u306e\u8a2d\u5b9a\u3067\u3059\u3002\u4eca\u56de\u306e\u809d\u306f\u30017\u301c9\u884c\u76ee\u306eproxy_module\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<pre class=\"hljs\"><code class=\"apache\">\r\nServerAdmin webmaster@example.com\r\nErrorLog &quot;\/var\/log\/www.example.com-error_log&quot;\r\nCustomLog &quot;\/var\/log\/www.example.com-access_log&quot; common\r\nDocumentRoot \/www\/data\r\nServerName www.example.com\r\n\r\nProxyPassMatch ^\/(.*\\.php(\/.*)?)$ fcgi:\/\/127.0.0.1:9000\/www\/data\/$1\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\r\n\r\n# aapche 2.4 change config\r\nRequire all granted<\/code><\/pre>\n<h3>3. \u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001Apache\u3092\u518d\u8d77\u52d5\u3057\u3066\u4e0b\u3055\u3044\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3089\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306b\u9593\u9055\u3044\u304c\u3042\u308b\u306f\u305a\u306a\u306e\u3067\u3001\u539f\u56e0\u3092\u7a81\u304d\u6b62\u3081\u3066\u76f4\u3057\u307e\u3059\u3002<\/p>\n<pre># apachectl restart\r\n<\/pre>\n<p>\/www\/data\/info.php\u3068\u8a00\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002\u4e2d\u8eab\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"hljs\"><code class=\"php\">&lt;!--?php phpinfo(); ?--&gt;\r\n<\/code><\/pre>\n<p>http:\/\/www.example.com\/info.php\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001&#8221;Server API&#8221;\u304c&#8221;FPM\/FastCGI&#8221;\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14205\" src=\"https:\/\/oichinote.com\/plus\/files\/2015\/02\/20150209php-on-fastcgi.png\" alt=\"PHP on FastCGI\" width=\"209\" height=\"36\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2015\/02\/20150209php-on-fastcgi.png 209w, https:\/\/oichinote.com\/plus\/files\/2015\/02\/20150209php-on-fastcgi-150x26.png 150w\" sizes=\"auto, (max-width: 209px) 100vw, 209px\" \/><\/p>\n[amazonjs asin=\"B00BH772VU\" locale=\"JP\"]\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD\u3067Redmine\u3092FastCGI\u7d4c\u7531\u3067\u52d5\u304b\u3059\u4e8b\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002 FreeBSD10\u3067Redmine2.5\u3092Apache2.4+FastCGI\u3067\u52d5\u304b\u3059[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2015\u5e742\u67088\u65e5) \u305d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14205,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eFreeBSD10\u3067PHP5.4\u3092Apache24+FastCGI\u3067\u52d5\u304b\u3059\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},"jetpack_post_was_ever_published":false},"categories":[60,5],"tags":[],"class_list":["post-14204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-freebsd","category-computer"],"jetpack_publicize_connections":[],"jetpack-related-posts":[{"id":14176,"url":"https:\/\/oichinote.com\/plus\/2015\/02\/install-redmine2-5-with-fastcgi-via-apache24-on-freebsd10.html","url_meta":{"origin":14204,"position":0},"title":"FreeBSD10\u3067Redmine2.5\u3092Apache2.4+FastCGI\u3067\u52d5\u304b\u3059[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e742\u67088\u65e5","format":false,"excerpt":"\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\u306eA\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":[]},{"id":15622,"url":"https:\/\/oichinote.com\/plus\/2015\/07\/pkg-upgrade-for-redmine-on-freebsd.html","url_meta":{"origin":14204,"position":1},"title":"FreeBSD\u3067pkg upgrade\u3092\u3057\u3066Redmine\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\u6642\u306e\u5bfe\u5fdc\u65b9\u6cd5[\u8ffd\u8a18]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e747\u670825\u65e5","format":false,"excerpt":"FreeBSD\u3067\u3001Apache2.4+FastCGI\u3092\u4f7f\u3063\u3066\u3001Redmine2.5\u3092\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u3002\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":[]},{"id":9088,"url":"https:\/\/oichinote.com\/plus\/2013\/08\/installing-redmine-on-freebsd-9-1-with-apache-2-4.html","url_meta":{"origin":14204,"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":14788,"url":"https:\/\/oichinote.com\/plus\/2015\/04\/install-self-signed-certificate-to-apache24-on-freebsd10.html","url_meta":{"origin":14204,"position":3},"title":"FreeBSD10\u306eApache2.4\u306b\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e744\u670811\u65e5","format":false,"excerpt":"\u3046\u301c\u3093\u3001\u30b5\u30fc\u30d0\u306e\u66f4\u65b0\u4f5c\u696d\u3092\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u306a\u304b\u306a\u304b\u305f\u3069\u308a\u7740\u3051\u307e\u305b\u3093\u3002\u4eca\u306f\u3001\u5730\u76e4\u56fa\u3081\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"https\u3067\u30a2\u30af\u30bb\u30b9","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2015\/04\/20150411https.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":13261,"url":"https:\/\/oichinote.com\/plus\/2014\/11\/repairing-freebsd-10-0.html","url_meta":{"origin":14204,"position":4},"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":[]},{"id":11985,"url":"https:\/\/oichinote.com\/plus\/2014\/05\/lost-redmine-db.html","url_meta":{"origin":14204,"position":5},"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":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/oichinote.com\/plus\/files\/2015\/02\/20150209php-on-fastcgi.png","_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14204","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=14204"}],"version-history":[{"count":8,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14204\/revisions"}],"predecessor-version":[{"id":18063,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14204\/revisions\/18063"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media\/14205"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=14204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=14204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=14204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}