<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>上善若水 &#187; php</title>
	<atom:link href="http://iiiorz.net/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://iiiorz.net</link>
	<description>如果我不能死在一万个敌人的包围中，那就让我死在一万个美女的怀抱中吧</description>
	<lastBuildDate>Fri, 19 Nov 2010 04:05:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>kohana2开发环境简单部署</title>
		<link>http://iiiorz.net/2009/04/initial_kohana_develop_environment/</link>
		<comments>http://iiiorz.net/2009/04/initial_kohana_develop_environment/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 07:07:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[kohana]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://iiiorz.net/?p=4</guid>
		<description><![CDATA[在这我将介绍下用kohana框架开发前一些准备工作，已经如何部署kohana到你的开发环境中。 步骤如下： 搭建 lamp环境 设置mod rewrite 模块 设置虚拟主机 设置kohana框架 我的环境如下： os: windows xp sp2 lamp：wampserver 2.o konana:  v2.3   步骤如下： 1.安装 wampserver （安装文档请查看官方文档，不详细介绍） 2.设置mod rewrite 使用wampserver相对比较简单： 启动wamp server 点击系统小托盘中的wamp server 图标 选择apache-&#62;apache modules 将rewrite_module打钩（也可以自行选择自己需要的相关modules） 重新启动wamp server中的所有服务，使改动生效 3.设置自己的虚拟主机 1.点击系统托盘中的wamp server 图标 选择apache http.conf 这个文件，用编辑器打开 在文件底部添加： NameVirtualHost *:80 ServerName www.kohana.fj DocumentRoot D:wampwwwkohana 创建wampwwwkohana这个文件夹，重启apache生效  2.在系统hosts文件中添加 www.kohana.fj hosts文件路径：C:WINDOWSsystem32driversetchosts 在hosts最后一行添加 127.0.0.1 [...]]]></description>
			<content:encoded><![CDATA[<p>在这我将介绍下用kohana框架开发前一些准备工作，已经如何部署kohana到你的开发环境中。</p>
<p>步骤如下：</p>
<ol>
<li>搭建 lamp环境</li>
<li>设置mod rewrite 模块</li>
<li>设置虚拟主机</li>
<li>设置kohana框架</li>
</ol>
<p>我的环境如下：</p>
<ul>
<li>os: windows xp sp2</li>
<li>lamp：wampserver 2.o</li>
<li>konana:  v2.3 </li>
</ul>
<p> 步骤如下：</p>
<p>1.<strong>安装 wampserver</strong></p>
<p><strong><span style="font-weight: normal;">（安装文档请查看官方文档，不详细介绍）</span></strong></p>
<p><strong>2.设置mod rewrite</strong></p>
<p>使用wampserver相对比较简单：</p>
<ol>
<li>启动wamp server</li>
<li>点击系统小托盘中的wamp server 图标 选择apache-&gt;apache modules</li>
<li>将rewrite_module打钩（也可以自行选择自己需要的相关modules）</li>
<li>重新启动wamp server中的所有服务，使改动生效</li>
</ol>
<p><strong>3.设置自己的虚拟主机</strong></p>
<p>1.点击系统托盘中的wamp server 图标 选择apache http.conf 这个文件，用编辑器打开</p>
<p>在文件底部添加：<br />
NameVirtualHost *:80</p>
<p>ServerName www.kohana.fj</p>
<p>DocumentRoot D:wampwwwkohana</p>
<p>创建wampwwwkohana这个文件夹，重启apache生效 </p>
<p>2.在系统hosts文件中添加 www.kohana.fj</p>
<p>hosts文件路径：C:WINDOWSsystem32driversetchosts</p>
<p>在hosts最后一行添加</p>
<p>127.0.0.1    www.kohana.fj</p>
<p>重现打开一个浏览器测试www.kohana.fj是否生效</p>
<p><strong>4.设置kohana框架</strong></p>
<p>1.解压kohana框架的所有文件到kohana这个文件夹中，目录结构如下：</p>
<p>kohana</p>
<p>&#8212;-appliaction</p>
<p>&#8212;-system</p>
<p>&#8212;-modules</p>
<p>&#8212;-index.php</p>
<p>&#8212;-.htaccess</p>
<p>2.修改kohana中的一些设置</p>
<p>2.1 .htaccess中修改为：</p>
<p># Installation directory</p>
<p>RewriteBase /</p>
<p>2.2 application/config/config.php中修改为</p>
<p> 
<pre class="brush: php; title: ; notranslate">
$config['index_page'] = '';
</pre>
<p> </p>
<p>这样，在你的开发环境中就可以用</p>
<p>http://www.kohana.fj/control/method/来访问你的kohana项目,url中不用添加index.php。</p>
<p>至此，kohana的简单开发环境部署完成。</p>
]]></content:encoded>
			<wfw:commentRss>http://iiiorz.net/2009/04/initial_kohana_develop_environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

