天天看點

Kohana 安裝流程以及所遇到問題的解決方法

步驟1.

Download kohana from : http://v3.kohanaphp.com (Version:3.0.3.zip);

(included update for v3.0.8 on step9)

步驟2.

Uncompress kohana_3.0.3 and copy kohana folder to C:\xampp\htdocs and rename kohana to ‘home’

步驟3.

start XAMPP apache service from XAMPP control panel

步驟4.

Input: http://localhost/home/index.php

Show error below

cURL Enabled Kohana requires cURL for the Remote class.

步驟5.

Open C:\xampp\php\php.ini file and remove ‘;’ from

1 extension=php_curl.dll

in php.ini

步驟6.

Restart Apache service.

步驟7.

Input: http://localhost/home/index.php again.

Show Your environment passed all requirements.

Remove or rename the install.php file now.

步驟8. Rename install.php to other_Name.php

input: http://localhost/home/index.php again.

Show Kohana_Request_Exception [ 0 ]: Unable to find a route to match the URI: home/index.php

步驟9.

Open C:\xampp\htdocs\home\application\bootstrap.php

find

1 Kohana::init(array(‘base_url’ => ‘/kohana/’));

Modify the /kohana/ to /home/

if installed V3.0.8

1 Kohana::init(array(

2 // find the line below and commented it

3 //’base_url’ => ‘/’,

4 // insert the line below

5 ‘base_url’ => ‘/home/’,

6 ));

步驟10.

input: http://localhost/home/index.php again.

Show hello, world!

congratulations!

上一篇: Linux CPU 知識