分享

(安装问题)Kohana 安装流程以及所遇到问题的解决方法

 JasonQue 2011-07-19

步骤1.
Download kohana from : http://v3. (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

1extension=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

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

Modify the /kohana/ to /home/

if installed V3.0.8

1Kohana::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!

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多