This is documentation for Kohana v2.3.x.
| Status | Draft |
|---|---|
| Todo | Proof read |
Kohana is installed in several easy steps:
Kohana_v[version#] directory.application/config/config.php to reflect the base path or domain of your site.find . -type d -exec chmod 755 {} \; from the root of your Kohana installation.application/logs and application/cache directories are writeable. Chmod to 666.base_url in your favorite browserIf you see the Welcome page, your Kohana installation is complete!
If you want really clean URL's and therefore remove the index.php in each URL this is possible.
You can provide your installation with additional configuration by copying files from the system/config directory to the application/config directory. For example if you want to configure a database connection, you can copy over system/config/database.php to application/config/database.php and edit the database connection details.
After installation you're ready to build your first web application with Kohana. If you're new to Kohana you should first read all articles in the user guide under the 'General' section.
If you were not able to view the Kohana Welcome page on your server after installing, please read the Troubleshooting page of the user guide, visit the Kohana Wiki, or ask for assistance in the community forums.
[moveTo: Troubleshooting] The Kohana Team tries to make sure that Kohana is as free from bugs as possible. If you have found a bug, please report it.
To use a multi-site Kohana install, simply follow these steps.
system folder somewhere on your server, preferably outside of your webserver's document root.system folder in your current application.index.php file, change the $kohana_system variable to the relative or absolute path of where you put the system folder.'webroot' is defined as the top level directory to which a webserver will allow public access. A correctly configured server will not allow public access to files or directories above webroot in the directory tree.
It is considered a good security practice to move application, system and modules out of the webroot, to prevent potential public access, should PHP be disabled, or your webserver is compromised. Kohana enables you to place the index.php in the webroot, and all other files outside of it. Static content, such as stylesheet, image and javascript files, are typically placed within webroot.
In a few steps this can be accomplished
config/config.php file)
Note that moving the system directory out of webroot, also makes it more easily accessible by multiple Kohana applications. So you can use the same system for multiple applications. This allows for easy upgrades. Simply refer to the same system in the $kohana_system in application A, B etc.