{"id":2511,"date":"2015-11-22T22:47:12","date_gmt":"2015-11-22T13:47:12","guid":{"rendered":"http:\/\/taitan916.info\/blog\/?p=2511"},"modified":"2024-02-25T20:12:02","modified_gmt":"2024-02-25T11:12:02","slug":"post-2511","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/2511","title":{"rendered":"DTI\u306eVPS\u306bCodeigniter3\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>DTI\u306eVPS\u306bPHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306eCodeigniter3\u7cfb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002\u305d\u306e\u969b\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u516c\u5f0f\u30b5\u30a4\u30c8<\/h2>\n<p><a href=\"https:\/\/codeigniter.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/codeigniter.com\/<\/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\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h3>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089Codeigniter\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067unzip\u3067\u89e3\u51cd\u3059\u308b\u3002\u3053\u3053\u3067\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u300c\/var\/www\/html\/hoge.com\/code\/\u300d\u3068\u60f3\u5b9a\u3059\u308b\u3002<\/p>\n<h3>\u8a2d\u5b9a\u5909\u66f4<\/h3>\n<p>\u300c\/var\/www\/html\/hoge.com\/code\/application\/config\/config\u300d\u306e\u4ee5\u4e0b\u306e\u5834\u6240\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$config['base_url'] = 'http:\/\/hoge.com\/code\/'; \/\/\u6700\u521d\u306f\u7a7a\u306a\u306e\u3067\u30d9\u30fc\u30b9\u3068\u306a\u308bURL\u3092\u5165\u308c\u308b\r\n$config['index_page'] = ''; \/\/\u6700\u521d\u306findex.php\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u524a\u9664\u3059\u308b<\/pre>\n<p>\u5f8c\u8005\u306eindex_page\u306a\u3093\u3060\u3051\u3069\u3001Codeigniter\u3067\u306fURL\u306b\u300chttp:\/\/hoge.com\/code\/index.php\/xxx\/\u300d\u307f\u305f\u304f\u3001index.php\u304c\u5165\u3063\u3066\u3057\u307e\u3046\u3002config.php\u3067\u524a\u9664\u3057\u3066\u304a\u304f\u3068\u5165\u3089\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a<\/h3>\n<p>\u300c\/var\/www\/html\/hoge.com\/code\/application\/config\/database\u300d\u306e\u4ee5\u4e0b\u306e\u5834\u6240\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$db['default'] = array(\r\n    'dsn'    =&gt; '',\r\n    'hostname' =&gt; 'localhost',\r\n    'username' =&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    'dbdriver' =&gt; 'mysqli',\r\n    'dbprefix' =&gt; '',\r\n    'pconnect' =&gt; FALSE,\r\n    'db_debug' =&gt; (ENVIRONMENT !== 'production'),\r\n    'cache_on' =&gt; FALSE,\r\n    'cachedir' =&gt; '',\r\n    'char_set' =&gt; 'utf8',\r\n    'dbcollat' =&gt; 'utf8_general_ci',\r\n    'swap_pre' =&gt; '',\r\n    'encrypt' =&gt; FALSE,\r\n    'compress' =&gt; FALSE,\r\n    'stricton' =&gt; FALSE,\r\n    'failover' =&gt; array(),\r\n    'save_queries' =&gt; TRUE\r\n);<\/pre>\n<h3>htaccess\u8a2d\u5b9a<\/h3>\n<p>\u300c\/var\/www\/html\/hoge.com\/code\/\u300d\u76f4\u4e0b\u306b\u4ee5\u4e0bhtaccess\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">RewriteEngine on\r\nRewriteCond $1 !^(index\\.php|images|robots\\.txt)\r\nRewriteRule ^(.*)$ \/code\/index.php\/$1 [L]<\/pre>\n<p>\u4eca\u56de\u306f\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306bcode\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u305d\u306e\u4e0b\u306bCodeigniter\u3092\u7f6e\u3044\u3066\u3044\u308b\u3051\u3069\u3001\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306b\u7f6e\u304f\u5834\u5408\u306f\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">RewriteEngine on\r\nRewriteCond $1 !^(index\\.php|images|robots\\.txt)\r\nRewriteRule ^(.*)$ \/index.php\/$1 [L]<\/pre>\n<p>\u3053\u3046\u306a\u308b\u3063\u307d\u3044\u30023\u884c\u76ee\u304c\u7570\u306a\u308b\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u5c0e\u5165\u306f\u5b8c\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u305d\u306e\u4ed6<\/h2>\n<h3>\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u3064\u3044\u3066<\/h3>\n<p>\u56f0\u3063\u305f\u3089\u4ee5\u4e0b\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u898b\u308b\u3002<\/p>\n<p><a href=\"http:\/\/codeigniter.jp\/user_guide_ja\/toc.html\" target=\"_blank\" rel=\"noopener\">http:\/\/codeigniter.jp\/user_guide_ja\/toc.html<\/a><\/p>\n<p>\u3059\u3054\u304f\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u304b\u308c\u3066\u3044\u3066\u898b\u3084\u3059\u3044\u3002<\/p>\n<h3>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u540d<\/h3>\n<p>\u30b3\u30fc\u30c9\u30a4\u30b0\u30ca\u30a4\u30bf\u30fc\u3068\u8aad\u3080\u3089\u3057\u3044\u3002igniter\u306f\u70b9\u706b\u88c5\u7f6e\u3068\u3044\u3046\u610f\u5473\u3068\u306e\u3053\u3068\u3002<\/p>\n<h3>\u4f7f\u3063\u3066\u307f\u305f\u611f\u3058<\/h3>\n<p>CakePHP\u3088\u308a\u6a5f\u80fd\u9762\u3067\u306f\u52a3\u308b\u3063\u307d\u3044\u306e\u3068\u3001\u691c\u7d22\u3057\u305f\u3068\u304d\u306b\u65e5\u672c\u8a9e\u306e\u691c\u7d22\u7d50\u679c\u304c\u5c11\u306a\u3044\u3002\u305d\u306e\u53cd\u9762\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u304bMVC\u3068\u304b\u3061\u3083\u3093\u3068\u7406\u89e3\u3057\u3066\u3044\u306a\u304f\u3066\u3082\u76f4\u611f\u3067\u7d44\u307f\u3084\u3059\u3044\u3002\u305d\u308c\u304c\u826f\u3044\u304b\u3069\u3046\u304b\u306f\u7f6e\u3044\u3066\u304a\u3044\u3066\u3001\u6700\u521d\u306b\u624b\u3092\u3064\u3051\u308b\u306e\u306b\u306f\u3042\u308a\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DTI\u306eVPS\u306bPHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306eCodeigniter3\u7cfb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057 ... <\/p>\n","protected":false},"author":1,"featured_media":2517,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2,80],"tags":[],"class_list":["post-2511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-codeigniter"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2511","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=2511"}],"version-history":[{"count":2,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2511\/revisions"}],"predecessor-version":[{"id":5100,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2511\/revisions\/5100"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/2517"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=2511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=2511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=2511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}