<?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; 配置</title>
	<atom:link href="http://www.baizoo.cn/tag/%e9%85%8d%e7%bd%ae/feed" rel="self" type="application/rss+xml" />
	<link>http://www.baizoo.cn</link>
	<description>——长风破浪会有时</description>
	<lastBuildDate>Mon, 30 Jan 2012 08:09:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>禁止火狐插件更新</title>
		<link>http://www.baizoo.cn/archives/737.html</link>
		<comments>http://www.baizoo.cn/archives/737.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 10:54:21 +0000</pubDate>
		<dc:creator>baizoo</dc:creator>
				<category><![CDATA[其他杂记]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[火狐]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.baizoo.cn/?p=737</guid>
		<description><![CDATA[使用火狐的朋友都喜欢给它装上很多的插件，见“我使用的Firefox扩展－火狐插件推荐”，但插件多了就会经常有弹出插件更新提示框的烦恼，其实插件更新是无关紧要的事，我们完全可以在想更新的时候手动去更新，于是就有了禁止火狐自动查找更新插件的需求。 其实解决这个问题也很简单，在火狐地址栏里输入 about:config 查找： extensions.update.enabled 双击将它的value设置成false就ok了。 另外还有几个自动更新的选项可以设置，如下面两个 app.update.enabled;false browser.search.update;false 看英文单词就明白意思了。]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.baizoo.cn/attachments/month_0703/62007324111511.png" alt="火狐插件" /></p>
<p>使用火狐的朋友都喜欢给它装上很多的插件，见“<a href="http://www.baizoo.cn/archives/18.html">我使用的Firefox扩展－火狐插件推荐</a>”，但插件多了就会经常有弹出插件更新提示框的烦恼，其实插件更新是无关紧要的事，我们完全可以在想更新的时候手动去更新，于是就有了禁止火狐自动查找更新插件的需求。</p>
<p>其实解决这个问题也很简单，在火狐地址栏里输入<br />
<coolcode lang="html">about:config</coolcode></p>
<p>查找：<br />
<coolcode lang="html">extensions.update.enabled</coolcode></p>
<p>双击将它的value设置成false就ok了。</p>
<p>另外还有几个自动更新的选项可以设置，如下面两个<br />
<coolcode lang="html"><br />
app.update.enabled;false<br />
browser.search.update;false<br />
</coolcode><br />
看英文单词就明白意思了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.baizoo.cn/archives/737.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu中配置Apache</title>
		<link>http://www.baizoo.cn/archives/718.html</link>
		<comments>http://www.baizoo.cn/archives/718.html#comments</comments>
		<pubDate>Wed, 28 Oct 2009 13:20:25 +0000</pubDate>
		<dc:creator>baizoo</dc:creator>
				<category><![CDATA[网站相关]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.baizoo.cn/?p=718</guid>
		<description><![CDATA[前些时候给自己的ubuntu虚拟机里装了lamp，详见：Ubuntu中安装配置LAMP服务器，不过装好后一直没去调配它，今天就来配置一下Apache。 一般linux中的apache配置文件目录为：/etc/httpd/conf/httpd.conf 但我用apt方式安装的apache配置文件却不在该目录下，后来查找之后才发现其配置文件目录为：/etc/apache2/apache2.conf 在该文件中，我们能找到几个被include进来的文件 # Include module configuration: Include /etc/apache2/mods-enabled/*.load Include /etc/apache2/mods-enabled/*.conf # Include all the user configurations: Include /etc/apache2/httpd.conf # Include ports listing Include /etc/apache2/ports.conf 以及最后的 # Include generic snippets of statements Include /etc/apache2/conf.d/ # Include the virtual host configurations: Include /etc/apache2/sites-enabled/ 从注释中，我们可以知道虚拟站点的配置文件在/etc/apache2/sites-enabled/目录下 接下来就来配置一下虚拟站点 终端进入/etc/apache2/sites-enabled/目录 运行：gedit default 编辑这个配置文件 这里我要实现几个简单的目的 一、禁止浏览用户访问目录列表 这个需要找到Options Indexes FollowSymLinks MultiViews [...]]]></description>
			<content:encoded><![CDATA[<p>前些时候给自己的ubuntu虚拟机里装了lamp，详见：<a href="http://www.baizoo.cn/archives/591.html">Ubuntu中安装配置LAMP服务器</a>，不过装好后一直没去调配它，今天就来配置一下Apache。</p>
<p>一般linux中的apache配置文件目录为：/etc/httpd/conf/httpd.conf</p>
<p>但我用apt方式安装的apache配置文件却不在该目录下，后来查找之后才发现其配置文件目录为<strong>：/etc/apache2/apache2.conf </strong><br />
在该文件中，我们能找到几个被include进来的文件<span id="more-718"></span></p>
<p><coolcode><br />
# Include module configuration:<br />
Include /etc/apache2/mods-enabled/*.load<br />
Include /etc/apache2/mods-enabled/*.conf</p>
<p># Include all the user configurations:<br />
Include /etc/apache2/httpd.conf</p>
<p># Include ports listing<br />
Include /etc/apache2/ports.conf<br />
</coolcode><br />
以及最后的<br />
<coolcode># Include generic snippets of statements<br />
Include /etc/apache2/conf.d/</p>
<p># Include the virtual host configurations:<br />
Include /etc/apache2/sites-enabled/</coolcode><br />
从注释中，我们可以知道虚拟站点的配置文件在/etc/apache2/sites-enabled/目录下</p>
<p>接下来就来配置一下虚拟站点<br />
终端进入/etc/apache2/sites-enabled/目录<br />
运行：<coolcode>gedit default</coolcode><br />
编辑这个配置文件</p>
<p>这里我要实现几个简单的目的<br />
一、禁止浏览用户访问目录列表<br />
这个需要找到Options Indexes FollowSymLinks MultiViews 将 Indexes去掉，如果只是针对某个目录，比如，我在站点跟目录/var/www/下建了个123目录，我希望用户不能浏览123目录列表，于是我就可以加入下面配置<br />
	<coolcode><Directory /var/www/123/><br />
	Options FollowSymLinks MultiViews<br />
	</Directory></coolcode><br />
去掉Indexes即可。<br />
二、修改默认首页<br />
可在directory下面加上<br />
//添加文件支持类型<br />
<coolcode><br />
AddType application/x-httpd-php .php<br />
AddType application/x-httpd-php .phtml<br />
</coolcode><br />
//添加首页文件<br />
<coolcode><br />
DirectoryIndex index.htm<br />
DirectoryIndex index.php<br />
</coolcode><br />
优先权由上而下<br />
三、添加虚拟目录<br />
一个最简单的虚拟目录可以包含下面几个部分<br />
<coolcode lang="html"><br />
<VirtualHost 192.168.1.59><br />
    ServerName linux.baizoo.cn<br />
    ServerAdmin ubuntu@baizoo.cn<br />
    DocumentRoot “/var/www/baizoo/”<br />
    ErrorLog “/var/log/apache2/baizoo_errors.log”<br />
    CustomLog “/var/log/apache2/linux_accesses.log” combined<br />
</VirtualHost><br />
</coolcode><br />
当然，里面还可以包含一些directory参数配置。<br />
配置完成后重启apache <coolcode>sudo /etc/init.d/apache2 restart </coolcode></p>
<p>今天实现了三个简单的配置目的，apache配置还有很多，比如重定向，代理等更复杂的配置留到以后再弄吧。</p>
<p>相关文章：<a href="http://hi.baidu.com/52hack/blog/item/535a6ad0b3512a87a0ec9cbc.html">apache服务器指令大全</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.baizoo.cn/archives/718.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu中安装配置LAMP服务器</title>
		<link>http://www.baizoo.cn/archives/591.html</link>
		<comments>http://www.baizoo.cn/archives/591.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 13:24:45 +0000</pubDate>
		<dc:creator>baizoo</dc:creator>
				<category><![CDATA[网站相关]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.baizoo.cn/?p=591</guid>
		<description><![CDATA[曾经我转过两篇关于lamp服务器的内容：Linux下的Mysql的安装与使用 和 Linux+Apache+Mysql+Php运行环境的配置 他们用的安装方式是RPM即(redhat packet manager) 现在，用了Ubuntu之后才发觉，原来在Ubuntu中安装配置Lamp服务器是件非常的简单事，用apt-get install方式，直接就可以下载安装软件(什么是apt)，这样就能省去很多不必要的麻烦。下面总结一下Ubuntu下的lamp安装方式。 一、lamp安装 php5环境的lamp需要安装 mysql-server libapache2-mod-auth-mysql php5-mysql php4环境的lamp需要安装 mysql-server libapache2-mod-auth-mysql php4-mysql 我装的是php5环境，所以安装的时候，输入下面命令就会自动下载安装。 sudo apt-get install apache2 sudo apt-get install mysql-server sudo apt-get install php5-mysql sudo apt-get install libapache2-mod-php5 sudo apt-get install libapache2-mod-auth-mysql 另外，还有 php5-gd 和php5-common 可以选择安装。 如果是桌面版的ubuntu，安装lamp就更简单了 在新立得软件包管理器中选择 编辑－－使用任务分组标记软件包 在打开的窗口中 勾选 LAMP SERVER 然后确定。 在主窗口中 点击绿色的对号 应用 按钮 安装完了之后，会有个设置mysql的root密码的过程 [...]]]></description>
			<content:encoded><![CDATA[<p>曾经我转过两篇关于lamp服务器的内容：<a href="http://www.baizoo.cn/archives/295.html">Linux下的Mysql的安装与使用</a> 和 <a href="http://www.baizoo.cn/archives/296.html">Linux+Apache+Mysql+Php运行环境的配置</a><br />
他们用的安装方式是RPM即(redhat packet manager)<br />
现在，用了Ubuntu之后才发觉，原来在Ubuntu中安装配置Lamp服务器是件非常的简单事，用apt-get install方式，直接就可以下载安装软件(<a href="http://forum.ubuntu.org.cn/viewtopic.php?t=160135">什么是apt</a>)，这样就能省去很多不必要的麻烦。下面总结一下Ubuntu下的lamp安装方式。</p>
<p>一、lamp安装<br />
php5环境的lamp需要安装<br />
<coolcode linenum="off"><br />
mysql-server libapache2-mod-auth-mysql php5-mysql<br />
</coolcode><br />
php4环境的lamp需要安装<br />
<coolcode linenum="off"><br />
mysql-server libapache2-mod-auth-mysql php4-mysql<br />
</coolcode></p>
<p>我装的是php5环境，所以安装的时候，输入下面命令就会自动下载安装。<br />
<coolcode linenum="off"><br />
sudo apt-get install apache2<br />
sudo apt-get install mysql-server<br />
sudo apt-get install php5-mysql<br />
sudo apt-get install libapache2-mod-php5<br />
sudo apt-get install libapache2-mod-auth-mysql<br />
</coolcode><br />
另外，还有 php5-gd 和php5-common 可以选择安装。<br />
<span id="more-591"></span><br />
如果是桌面版的ubuntu，安装lamp就更简单了<br />
在新立得软件包管理器中选择 <strong> 编辑－－使用任务分组标记软件包</strong><br />
在打开的窗口中 <strong>勾选 LAMP SERVER 然后确定。</strong><br />
在主窗口中 点击绿色的对号 <strong>应用</strong> 按钮 </p>
<p>安装完了之后，会有个设置mysql的root密码的过程</p>
<p>二、安装phpmyadmin<br />
sudo apt-get install phpmyadmin</p>
<p>三、配置lamp</p>
<p>1>apache 的配置文件路径 /etc/apache2/apache2.conf </p>
<p>2>php.ini 路径 /etc/php5/apache2/php.ini </p>
<p>3>mysql配置文件 路径 /etc/mysql/my.cnf </p>
<p>4>phpmyadmin配置文件路径 /etc/phpmyadmin/apache.conf </p>
<p>5>网站根目录 /var/www</p>
<p>更加详细的我就不转载了，大家不会的可以参考这两篇文章。<br />
<a href="http://wiki.ubuntu.org.cn/index.php?title=LAMP%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E9%85%8D%E7%BD%AE&#038;variant=zh-cn">LAMP服务器的配置</a><br />
<a href="http://wiki.ubuntu.org.cn/index.php?title=LAMP_%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE&#038;variant=zh-cn">ubuntu 8.04 桌面版 LAMP 环境(包括phpmyadmin)配置。</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.baizoo.cn/archives/591.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

