kohana基本安装配置
来源:互联网 发布:inso网络真的存在吗 编辑:程序博客网 时间:2024/05/21 18:49
下载方式:
1.去官网
2.git
git clone git://github.com/kohana/kohana.git mykohana
cd mykohana/git submodule initgit submodule update
首先编辑 bootstrap 文件。查找 bootstrap 文件中的 Kohana::init 这一行,并且在下面增加 index_file 参数:
Kohana::init(array( 'base_url' => '/blog', // 如果你需要的话,你要编辑这个! 'index_file'=>FALSE,//index.php这种显示去除 ));
你还需要在 .htaccess 文件中改变一行。
重命名 example.htaccess 文件为 .htaccess 并且更改下面这行代码:
RewriteBase /kohana/
修改为和 bootstrap 文件中的 base_url 一样。如果你的 Kohana 安装在如 example.com/blog/ 的位置,那么就修改为:
RewriteBase /blog/
检修#1
如果无法工作(出现“interval Server Error” 或者 “No inputFile Specified”)请尝试修改:
RewriteRule^(?:application|modules|system)\b - [F,L]
为
RewriteRule^(application|modules|system)/ - [F,L]
还有修改
RewriteRule.* index.php/$0 [PT]
为
RewriteRule.* index.php [L]
检修#2
如果仍然无法正常使用,请确定 .htaccess 文件是否在 httpd.conf ,或者在extra/文件夹config中被允许启用(然后重启 Apache)
<Directory"/var/www/html/example.com/blog">
Order allow,deny
Allow from all
AllowOverride All
</Directory>
kohana自己是没有带分页类的,但是网上有很多教程,自己找找
http://www.phpddt.com/mvc/kohana-pagination.html这篇文章就有
- kohana基本安装配置
- Kohana安装配置路由
- kohana 安装
- Kohana的数据库配置
- kohana nginx的配置
- Kohana之安装
- Kohana配置干净的URL
- kohana
- kohana环境配置与URL重写
- SVN基本安装、配置!
- Nginx基本安装配置
- HBASE基本安装配置
- varnish基本安装配置
- redis安装基本配置
- swoole安装基本配置
- Kohana 安装流程以及所遇到问题的解决方法
- kohana(3.2)和gleez(1.1.5)的安装
- PHP安装配置,基本语法
- 关于TCP的可靠性
- 探秘Asp.Net4.0新功能之一:网站自动预热
- 解决Ubuntu 12.04LTS终端sudo命令无法解析主机报错问题
- Activity跳转管理相关的Launch mode 以及Intent的setFlags
- 如何在asp.net中查出表中没有的字段?
- kohana基本安装配置
- ArcGIS For JavaScript API Switch Basemap(切换底图)————(二十)
- 开发证书与发布证书申请和安装步骤
- Proxy模式
- javascript 的splice()方法和slice()方法
- 使用Gtreamer获得摄像头数据并显示(Webcam streaming using Python--pyGTK, wxPython and Gstreamer)
- 高清音视频编解码技术应用与数字多媒体的关系
- UML类图关系大全
- 如何在线创建索引或者重构索引