How to install and configure Kohana 3.3.3 under Ubuntu 12.04

Source: Internet
Author: User
Tags kohana

First, to the official website to download 3.3.3 version of the compressed package to the/var/www/1117/directory (pre-built 1117 directory) decompression

The extracted files are (applications\modules\system\build.xml\composer.json\contributing.md\example.htaccess\index.php\ INSTALL.PHP\LICENSE.MD\README.MD)

The entry file is index.php

To manually delete the install.php after successful access to the browser, you can see "Hello World" normally.

Second, configuration issues

1.

Edit the application/bootstrap.php file and modify the following configuration as practical:

    • Set the default time zone for your program
    • Set the Base_url value in the Kohana::init method to the path (or domain name address) of the Kohana directory
    • Kohana::init (Array () ' base_url ' = ' 1117 ',
      ' Index_file ' = ' false ',));

2.

Make sure that the Application/cache directory and the Application/logs directory are writable, and the command is

sudo chmod 777/var/www/1117/application/-R

Enter Base_url in your favorite browser address bar to test whether the Kohana installation was successful

If you can see the installation page (install.php) then the installation is successful (a piece of green) and if it reports any errors (shown in red), you should fix it immediately.

Once the installation page reports that your environment is correct and can be renamed or deleted install.php (Your environment is set up correctly you need to either rename or delete install.php )。 After installing the instructions, you will be able to see Kohana's Welcome Interface (currently KO3 version has only one ' Hello world! ')

iii. problems that may arise

For example, this is because the salt is not set

Solution:

Set a cookie salt

Then visit our website to find that he will not error.

How to install and configure Kohana 3.3.3 under Ubuntu 12.04

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.