Running Your Kohana Application
Testing the application
Navigating to
http://localhost/kohana/
in your browser should show ‘Hello world!’.If you have configured Kohana 3 application on a virtual host, then the virtual host url should show the same results as above. For example, if your virtual host is configured as
http://kohana3.localhost
, then running the url in browser should show ‘Hello World!’.
Troubleshooting
If you do not get the usual ‘Hello World!’ from the Kohana application output, then you should check and make sure:
- You have set the correct ‘base_url’ in
application/bootstrap.php
file. - You have set the correct REWRITE_BASE configuration directive in
.htaccess
file (if you are using the .htacess file for clean urls).
We are now ready to configure modules for our application before we start working on the rest of the application code.