{"id":597,"date":"2011-12-09T13:58:40","date_gmt":"2011-12-09T21:58:40","guid":{"rendered":"http:\/\/blog.portnumber53.com\/?p=597"},"modified":"2011-12-09T13:58:40","modified_gmt":"2011-12-09T21:58:40","slug":"kohana-3-2-tutorial-1-installation","status":"publish","type":"post","link":"https:\/\/blog.portnumber53.com\/index.php\/2011\/12\/09\/kohana-3-2-tutorial-1-installation\/","title":{"rendered":"Kohana 3.2 tutorial : 1 &#8211; Installation"},"content":{"rendered":"<p>1. Go to kohana&#8217;s website<\/p>\n<p>&nbsp;<\/p>\n<p>http:\/\/kohanaframework.org\/<\/p>\n<p>&nbsp;<\/p>\n<p>2. Download latest stable<\/p>\n<p>&nbsp;<\/p>\n<pre>$ wget http:\/\/dev.kohanaframework.org\/attachments\/download\/1670\/kohana-3.2.0.zip\n--11:08:44--  http:\/\/dev.kohanaframework.org\/attachments\/download\/1670\/kohana-3.2.0.zip\n           =&gt; `kohana-3.2.0.zip'\nResolving dev.kohanaframework.org... 173.245.60.22, 173.245.61.87\nConnecting to dev.kohanaframework.org[173.245.60.22]:80... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 1,043,281 [application\/zip]\n\n100%[==============================================================================================================================================================&gt;] 1,043,281      1.53M\/s             \n\n11:08:45 (1.53 MB\/s) - `kohana-3.2.0.zip' saved [1043281\/1043281]<\/pre>\n<pre><\/pre>\n<p>3. Uncompress it and move stuff around<\/p>\n<p>&nbsp;<\/p>\n<p>$ unzip kohana-3.2.0.zip<\/p>\n<p>&nbsp;<\/p>\n<pre>$ ls -la\ntotal 981\ndrwxr-xr-x   5 portnumber53.com www-data               7 Dec  9 11:11 .\ndrwxr-x---  57 portnumber53.com www-data              70 Dec  9 10:23 ..\n-rw-r--r--   1 portnumber53.com portnumber53.com      27 Dec  9 10:56 .htaccess\ndrwxr-x---   2 portnumber53.com www-data               2 Dec  9 10:23 cgi-bin\ndrwxr-x---   2 portnumber53.com www-data               2 Dec  9 10:57 html\ndrwxr-xr-x   5 portnumber53.com portnumber53.com      10 Jul 25 03:26 kohana-3.2-master-1\n-rw-r--r--   1 portnumber53.com portnumber53.com 1043281 Dec  9 11:08 kohana-3.2.0.zip<\/pre>\n<pre><\/pre>\n<p>$ rm kohana-3.2.0.zip<\/p>\n<p>$ mv kohana-3.2-master-1\/modules\/ .<\/p>\n<p>$ mv kohana-3.2-master-1\/application\/ modules\/<\/p>\n<p>$ mkdir -p vendor\/modules<\/p>\n<p>$ mv kohana-3.2-master-1\/install.php html\/<\/p>\n<p>$ mv kohana-3.2-master-1\/index.php html\/<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>4. Combine the example.htaccess<\/p>\n<p>&nbsp;<\/p>\n<p>$ nano kohana-3.2-master-1\/example.htaccess<\/p>\n<p>$ nano .htaccess<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>5. Try opening your site:<\/p>\n<p>http:\/\/truvis.co\/<\/p>\n<p>Kohana install.php file will report what you need to fix&#8230;. hopefully just file paths:<\/p>\n<p>&nbsp;<\/p>\n<p>6. Fix those paths (you millage may vary):<\/p>\n<p>$ nano html\/index.php<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>$application = &#8216;..\/modules\/application&#8217;;<\/p>\n<p>$modules = &#8216;..\/modules&#8217;;<\/p>\n<p>$system = &#8216;..\/vendor\/modules\/system&#8217;;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<pre>&lt;?php\n\n\/**\n * The directory in which your application specific resources are located.\n * The application directory must contain the bootstrap.php file.\n *\n * @see  http:\/\/kohanaframework.org\/guide\/about.install#application\n *\/\n$application = '..\/modules\/application';\n\n\/**\n * The directory in which your modules are located.\n *\n * @see  http:\/\/kohanaframework.org\/guide\/about.install#modules\n *\/\n$modules = '..\/modules';\n\n\/**\n * The directory in which the Kohana resources are located. The system\n * directory must contain the classes\/kohana.php file.\n *\n * @see  http:\/\/kohanaframework.org\/guide\/about.install#system\n *\/\n$system = '..\/vendor\/modules\/system';\n\n\/**\n * The default extension of resource files. If you change this, all resources\n * must be renamed to use the new extension.\n *\n * @see  http:\/\/kohanaframework.org\/guide\/about.install#ext\n *\/\ndefine('EXT', '.php');<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>7. Test until you get Oks everywhere \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Go to kohana&#8217;s website &nbsp; http:\/\/kohanaframework.org\/ &nbsp; 2. Download latest stable &nbsp; $ wget http:\/\/dev.kohanaframework.org\/attachments\/download\/1670\/kohana-3.2.0.zip &#8211;11:08:44&#8211; http:\/\/dev.kohanaframework.org\/attachments\/download\/1670\/kohana-3.2.0.zip =&gt; `kohana-3.2.0.zip&#8217; Resolving dev.kohanaframework.org&#8230; 173.245.60.22, 173.245.61.87 Connecting to dev.kohanaframework.org[173.245.60.22]:80&#8230; connected. HTTP request sent, awaiting response&#8230; 200 OK Length: 1,043,281 [application\/zip] 100%[==============================================================================================================================================================&gt;] 1,043,281 1.53M\/s 11:08:45 (1.53 MB\/s) &#8211; `kohana-3.2.0.zip&#8217; saved [1043281\/1043281] 3. Uncompress&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/blog.portnumber53.com\/index.php\/2011\/12\/09\/kohana-3-2-tutorial-1-installation\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,24],"tags":[],"class_list":["post-597","post","type-post","status-publish","format-standard","hentry","category-kohana","category-tutorial-2"],"_links":{"self":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/comments?post=597"}],"version-history":[{"count":0,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/597\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/media?parent=597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/categories?post=597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/tags?post=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}