How to install Kohana

 

In this guide, I will show you how you can install Kohana.

 

Requirements

  • Kohana version 3.1.1.1

 

Installation

  1. Download Kohana.
  2. Create a folder on your www directory if you’re using Wamp and htdocs if you’re on Xampp.
  3. Name the folder to anything you like as long as it is easy to remember.
  4. Extract the contents of the .zip file that you downloaded earlier into the folder that you have just created.
  5. The inside of that folder should now look like this:image
  6. Open up the folder so that you will have the same screen as the screenshot above. Then open up the application folder. Then open bootstrap.php using any text editor.
  7. There are many things which you have to edit here. First is the time zone. If you’re also from the Philippines then you can use the same time zone as mine. Just use the find and replace function of the text editor to find where is this specific line of code.
date_default_timezone_set('Asia/Manila');

Next thing, specify the folder where Kohana is installed. This will depend on the folder name you have a while ago. But mine is named kohana, and it is directly after the www directory or the root directory of the web accessible folder. So it will look like this:

Kohana::init(array(
    'base_url'   => '/kohana',
));

That’s it, you should now see this screen when you try to access the url below on your browser. Of course, the kohana here will not be the same as yours if you have named yours differently.

http://localhost/kohana/

image

You might as well enable or disable some php extensions in your wamp tray icon if you want to pass all the optional tests as well.

image

As you can see, I failed one optional test but its okay since its just optional.

 

Conclusion
That’s how you install Kohana framework. Stay tuned. Thanks!

2 thoughts on “How to install Kohana

  1. I had an issue with the splash page for kohana not loading. When I changed the base url from ‘/’ to ‘/kohana’ I was able to bypass the error:

    $class = new ReflectionClass($prefix.$this->controller);

    which caused the controller file to be missing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s