{"id":2503,"date":"2015-11-20T23:00:32","date_gmt":"2015-11-20T14:00:32","guid":{"rendered":"http:\/\/taitan916.info\/blog\/?p=2503"},"modified":"2024-02-25T20:20:50","modified_gmt":"2024-02-25T11:20:50","slug":"post-2503","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/2503","title":{"rendered":"DTI\u306eVPS(PHP5\u7cfb\u74b0\u5883)\u306bCakePHP\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u4ed6\u793e\u3055\u3093\u3068\u9023\u643a\u3057\u3066\u4ed5\u4e8b\u3092\u3059\u308b\u969b\u306b\u300c\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u4f55\u304b\u4f7f\u3044\u307e\u3059\u304b\uff1f\u300d\u3068\u805e\u304b\u308c\u3066\u300c\u4f7f\u3063\u305f\u3053\u3068\u306a\u3044\u3093\u3067\u3059\u2026\u2026\u300d\u3068\u7b54\u3048\u3066\u3044\u3066\u3051\u3063\u3053\u3046\u6065\u305a\u304b\u3057\u304b\u3063\u305f\u306e\u3067\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u52c9\u5f37\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3002<\/p>\n<p>\u805e\u3044\u305f\u3053\u3068\u306e\u3042\u308bCakePHP\u3068\u3001\u805e\u3044\u305f\u3053\u3068\u306f\u306a\u3044\u3051\u3069\u8efd\u91cf\u3067\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u4f4e\u3044\u3089\u3057\u3044CodeIgniter\u304c\u5019\u88dc\u3002\u307e\u305a\u306fCakePHP\u3092VPS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u306e\u3067\u305d\u306e\u969b\u306e\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u516c\u5f0f\u30b5\u30a4\u30c8<\/h2>\n<p><a href=\"http:\/\/cakephp.jp\/\" target=\"_blank\" rel=\"noopener\">http:\/\/cakephp.jp\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u5fc5\u8981\u30d5\u30a1\u30a4\u30eb<\/h2>\n<p><a href=\"http:\/\/github.com\/cakephp\/cakephp\/archive\/2.3.10.zip\" target=\"_blank\" rel=\"noopener\">http:\/\/github.com\/cakephp\/cakephp\/archive\/2.3.10.zip<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/cakephp\/debug_kit\/tree\/2.2\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/cakephp\/debug_kit\/tree\/2.2<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u74b0\u5883<\/h2>\n<ul>\n<li>CentOS6.5<\/li>\n<li>PHP5.3<\/li>\n<li>MySQL5.1<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u5c0e\u5165\u65b9\u6cd5<\/h2>\n<h3>\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h3>\n<p>CakePHP\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067unzip\u3067\u89e3\u51cd\u3059\u308b\u3002\u89e3\u51cd\u5f8c\u306fzip\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3066\u826f\u3044\u3002\u307e\u305f\u3001root\u3068\u304b\u3067\u89e3\u51cd\u3057\u305f\u5834\u5408\u306fchown\u30b3\u30de\u30f3\u30c9\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u5207\u308a\u66ff\u3048\u3066\u304a\u304f\u3002\u5c1a\u3001\u3053\u3053\u3067\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u300c\/var\/www\/html\/hoge.com\/cake\/\u300d\u3068\u60f3\u5b9a\u3059\u308b\u3002<\/p>\n<h3>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u5909\u66f4<\/h3>\n<p>\u307e\u305f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u95a2\u9023\u306e\u66f8\u304d\u8fbc\u307f\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u300c\/var\/www\/html\/hoge.com\/cake\/app\/tmp\u300d\u4ee5\u4e0b\u3092777\u306b\u5909\u66f4\u3057\u3066\u304a\u304f\u3002<\/p>\n<h3>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5909\u66f4<\/h3>\n<p>\u3053\u306e\u6642\u70b9\u3067\u300chttp:\/\/hoge.com\/cake\/\u300d\u3092\u53e9\u304f\u3068\u8d64\u7dd1\u9ec4\u306e\u30a8\u30e9\u30fc\u8868\u793a\u307f\u305f\u3044\u306a\u306e\u304c\u3044\u304f\u3064\u304c\u8868\u793a\u3055\u308c\u308b\u3002\u307e\u305a\u300c\/var\/www\/html\/hoge.com\/cake\/app\/Config\/core.php\u300d\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Configure::write('Security.salt', '\u9069\u5f53\u306a\u82f1\u6570\u5b57\u306b\u66f8\u304d\u63db\u3048');\r\nConfigure::write('Security.cipherSeed', '\u9069\u5f53\u306a\u6570\u5b57\u306b\u66f8\u304d\u63db\u3048');<\/pre>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a<\/h3>\n<p>\u6b21\u306b\u300c\/var\/www\/html\/hoge.com\/cake\/app\/Config\/database.php.default\u300d\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u6587\u672b\u3042\u305f\u308a\u306b\u3042\u308b\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public $default = array(\r\n    'datasource' =&gt; 'Database\/Mysql',\r\n    'persistent' =&gt; false,\r\n    'host' =&gt; 'localhost',\r\n    'login' =&gt; 'MySQL\u306e\u30e6\u30fc\u30b6\u30fc\u540d',\r\n    'password' =&gt; 'MySQL\u306e\u30d1\u30b9\u30ef\u30fc\u30c9',\r\n    'database' =&gt; '\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d',\r\n    'prefix' =&gt; '',\r\n    \/\/'encoding' =&gt; 'utf8',\r\n);<\/pre>\n<p>\u66f8\u304d\u63db\u3048\u305f\u5f8c\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u300cdatabase.php\u300d\u306b\u5909\u66f4\u3057\u3066\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<h3>\u30c7\u30d0\u30c3\u30b0\u30c4\u30fc\u30eb<\/h3>\n<p>\u5fc5\u8981\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u3044\u305f\u5f8c\u8005\u306eDebugKit\u3092\u300c\/var\/www\/html\/hoge.com\/cake\/plugins\/\u300d\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057unzip\u3067\u89e3\u51cd\u3059\u308b\u3002\u89e3\u51cd\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u540d\u3092\u300cDebugKit\u300d\u306b\u5909\u66f4\u3057\u3066\u304a\u304f\u3002\u300c\/var\/www\/html\/hoge.com\/cake\/plugins\/DebugKit\/\u300d\u76f4\u4e0b\u306bVERSION.txt\u304c\u6765\u308b\u3088\u3046\u306a\u5f62\u306b\u306a\u3063\u3066\u3044\u308c\u3070OK\u3002<\/p>\n<p>\u6b21\u306b\u300c\/var\/www\/html\/hoge.com\/cake\/app\/Config\/bootstrap.php\u300d\u3092\u958b\u304d\u3001\u6587\u672b\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3057\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"\">CakePlugin::load(&#039;DebugKit&#039;);<\/pre>\n<p>\u5c1a\u3001\u6700\u521dDebugKit\u306e\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u8a2d\u7f6e\u3057\u305f\u3068\u3053\u308d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u305f\u3002\u8abf\u3079\u3066\u307f\u308b\u3068\u6700\u65b0\u306eDebugKit\u306fCakePHP\u306e3\u7cfb\u306b\u4f7f\u3046\u307f\u305f\u3044\u3067\u3001CakePHP2\u7cfb\u3092\u4f7f\u3046\u306e\u3067\u3042\u308c\u3070DebugKit\u30822\u7cfb\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u3068\u306e\u4e8b\u3002<\/p>\n<p>\u518d\u5ea6\u300chttp:\/\/hoge.com\/cake\/\u300d\u3092\u958b\u3044\u3066\u8d64\u3068\u9ec4\u306e\u8868\u793a\u304c\u306a\u304f\u306a\u3063\u3066\u3044\u308c\u3070\u5c0e\u5165\u5b8c\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u305d\u306e\u4ed6<\/h2>\n<p>\u30c9\u30c3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u3093\u306e<a href=\"http:\/\/dotinstall.com\/lessons\/basic_cakephp\" target=\"_blank\" rel=\"noopener\">CakePHP\u5165\u9580<\/a>\u3092\u53c2\u8003\u306b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u4f5c\u696d\u52b9\u7387\u304c\u4e0a\u304c\u308b\u306e\u306f\u3088\u304f\u5206\u304b\u3063\u305f\u3002\u8a18\u8ff0\u91cf\u304c\u3059\u3054\u3044\u6e1b\u308b\u3002\u30d0\u30ea\u30c7\u30fc\u30c8\u4ed8\u304d\u306eform\u3068\u304b\u4f5c\u308b\u969b\u306b\u4eca\u307e\u3067\u3060\u3068HTML\u3067form\u7d44\u3093\u3067jQuery\u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u90e8\u5206\u66f8\u3044\u3066\u3068\u9762\u5012\u3060\u3063\u305f\u306e\u304c\u3001\u304b\u306a\u308a\u77ed\u304f\u66f8\u3051\u3066\u885d\u6483\u3092\u53d7\u3051\u305f\u3002<\/p>\n<p>\u305f\u3060\u899a\u3048\u308b\u3053\u3068\u304c\u7d50\u69cb\u591a\u305d\u3046\u306a\u306e\u3068\u3001MVC\u306b\u6163\u308c\u308b\u307e\u3067\u6642\u9593\u304c\u304b\u304b\u308a\u305d\u3046\u3002CodeIgniter\u3082\u5c0e\u5165\u3057\u3066\u89e6\u3063\u3066\u307f\u3066\u3001\u3044\u3051\u305d\u3046\u306a\u65b9\u3067\u8272\u3005\u4f5c\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u53c2\u8003\u30b5\u30a4\u30c8<\/h2>\n<p><a href=\"http:\/\/kwski.net\/cakephp-2-x\/1009\/\" target=\"_blank\" rel=\"noopener\">http:\/\/kwski.net\/cakephp-2-x\/1009\/<\/a><\/p>\n<p><a href=\"http:\/\/offsidenow.phpapps.jp\/archives\/1192\" target=\"_blank\" rel=\"noopener\">http:\/\/offsidenow.phpapps.jp\/archives\/1192<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ed6\u793e\u3055\u3093\u3068\u9023\u643a\u3057\u3066\u4ed5\u4e8b\u3092\u3059\u308b\u969b\u306b\u300c\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u4f55\u304b\u4f7f\u3044\u307e\u3059\u304b\uff1f\u300d\u3068\u805e\u304b\u308c\u3066\u300c\u4f7f ... <\/p>\n","protected":false},"author":1,"featured_media":1085,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2503","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=2503"}],"version-history":[{"count":2,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2503\/revisions"}],"predecessor-version":[{"id":5107,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2503\/revisions\/5107"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1085"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=2503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=2503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=2503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}