views:

93

answers:

2

I would like to install Kohana PHP framework. The site is on a shared web hotel. I have tried to follow the instructions on Kohana's website.

  1. Downloaded the latest stable realse (3.0.6.2)
  2. Unzipped the file to create a kohana directory
  3. Uploaded the folder to my shared hosting website.
  4. opened the url application/bootstrap.php ...and here comes the problem. When I visit the site, this message is shown:

No direct script access.

And I have no idea about what I should do. I haven't seen anything about this in the documentation. I have tried to give more rights to some of the files, but it's hard to know what to do. Anyone that has any suggestions?

+3  A: 

According to the instructions, you are to open application/bootstrap.php in your text editor to make the requested changes. Visiting it in your browser probably gives you that message, because at the top of Kohana files appear to be the line

defined('SYSPATH') or die('No direct script access.');

or something similar. This is used in many PHP projects to prevent hacking into a file that should only be included.

TNi
+1  A: 

Just open install.php and follow the instructions.

Ralph Sicabol