{"id":14525,"date":"2013-07-08T21:00:17","date_gmt":"2013-07-08T12:00:17","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=14525"},"modified":"2013-07-09T06:41:47","modified_gmt":"2013-07-08T21:41:47","slug":"cakephp2%e3%81%a7git%e3%83%aa%e3%83%9d%e3%82%b8%e3%83%88%e3%83%aa%e3%82%92%e4%bd%bf%e3%81%86%e3%81%a8%e3%81%8d%e3%81%ab%e6%b3%a8%e6%84%8f%e3%81%99%e3%82%8b%e3%81%93%e3%81%a8","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/14525.html","title":{"rendered":"CakePHP2\u3067Git\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u3046\u3068\u304d\u306b\u6ce8\u610f\u3059\u308b\u3053\u3068"},"content":{"rendered":"<p>CakePHP2\u3067Git\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u3063\u3066\u30b3\u30fc\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5c11\u3057\u306f\u307e\u308a\u307e\u3057\u305f\u3002<br \/>\n<!--more--><br \/>\n.gitignore\u306b tmp \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u7121\u8996\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u3066\u3042\u3063\u305f\u306e\u3067\u3001CakePHP2\u306eapp\/tmp\u304c\u30b3\u30df\u30c3\u30c8\u3055\u308c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u3046\u3059\u308b\u3068\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u53d6\u308a\u51fa\u3057\u305fCakePHP2\u30a2\u30d7\u30ea\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u3068\u304d\u306b\u554f\u984c\u304c\u304a\u304d\u307e\u3059\u3002app\/tmp\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u306a\u3044\u306e\u3067\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u3066\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3002$CAKE_APP_ROOT \u304cCakePHP2\u30a2\u30d7\u30ea\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3060\u3068\u3057\u307e\u3059\u3002chown\u3059\u308b\u3068\u304d\u306f\u3001CentOS\u306a\u3089apache\u3001Ubuntu\u306a\u3089www-data\u3068\u3044\u3063\u305f\u611f\u3058\u306b\u306a\u308b\u306e\u3067\u3001\u4f7f\u3063\u3066\u3044\u308b\u74b0\u5883\u3067\u306f\u3069\u3046\u3059\u308b\u306e\u304c\u826f\u3044\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ CAKE_APP_ROOT=\/var\/www\/html\/cakephp2_app_sample\r\n$ sudo mkdir -p $CAKE_APP_ROOT\/app\/tmp\/cache\/models\/\r\n$ sudo mkdir -p $CAKE_APP_ROOT\/app\/tmp\/cache\/persistent\/\r\n$ sudo mkdir -p $CAKE_APP_ROOT\/app\/tmp\/cache\/views\/\r\n$ sudo mkdir -p $CAKE_APP_ROOT\/app\/tmp\/logs\/\r\n$ sudo mkdir -p $CAKE_APP_ROOT\/app\/tmp\/sessions\/\r\n$ sudo chown -R apache:apache $CAKE_APP_ROOT\/app\/tmp\/sessions\/\r\n<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306f\u78ba\u8a8d\u3092\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n[Mon Jul 08 17:04:03 2013] [error] [client 192.168.x.x] PHP Warning:\r\nfile_put_contents(\/var\/www\/html\/cakephp2_app_sample\/app\/tmp\/logs\/error.log) \r\n[&lt;a href=&#039;http:\/\/php.net\/function.file-put-contents&#039;&gt;function.file-put-contents&lt;\/a&gt;]: \r\nfailed to open stream: No such file or directory in \r\n\/var\/www\/html\/cakephp2_app_sample\/lib\/Cake\/Log\/Engine\/FileLog.php on line 87\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>CakePHP2\u3067Git\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u3063\u3066\u30b3\u30fc\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5c11\u3057\u306f\u307e\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[888,1209,295],"class_list":["post-14525","post","type-post","status-publish","format-standard","hentry","category-program","tag-cakephp2","tag-linux","tag-php"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/14525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=14525"}],"version-history":[{"count":2,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/14525\/revisions"}],"predecessor-version":[{"id":14533,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/14525\/revisions\/14533"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=14525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=14525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=14525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}