<?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>Wandsea.com &#187; 花生壳</title>
	<atom:link href="http://wandsea.com/blog/tag/%e8%8a%b1%e7%94%9f%e5%a3%b3/feed" rel="self" type="application/rss+xml" />
	<link>http://wandsea.com/blog</link>
	<description>好吧..大家都要加油哦～</description>
	<lastBuildDate>Sat, 31 Jul 2010 13:29:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ubuntu Desktop 配置简单Web服务器</title>
		<link>http://wandsea.com/blog/363.htm</link>
		<comments>http://wandsea.com/blog/363.htm#comments</comments>
		<pubDate>Sun, 21 Dec 2008 13:07:13 +0000</pubDate>
		<dc:creator>Wandsea</dc:creator>
				<category><![CDATA[About Computer]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[花生壳]]></category>

		<guid isPermaLink="false">http://由于调试WP需要，最终决定还是在自己的可怜的本本上装上服务器软件…电驴经常整天开着..学校老封IP连DH又太慢…发挥电能的最大功效也是原因….Apache2+Vsftpd+PHP5+MySQL+PHPMyAdmin+SSHblockquotesudoapt-getinstallapache2php5mysqlphpmyadminopenssh-servervsftpdmysql-commonmysql-server-5.0/blockquote记得好象是这</guid>
		<description><![CDATA[由于调试WP需要，最终决定还是在自己的可怜的本本上装上服务器软件… 电驴经常整天开着..学校老封IP连DH又太慢…发挥电能的最大功效也是原因…. Apache2+Vsftpd+PHP5+MySQL+PHPMyAdmin+SSH sudo apt-get ins... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>由于调试WP需要，最终决定还是在自己的可怜的本本上装上服务器软件…</p>
<p>电驴经常整天开着..学校老封IP连DH又太慢…发挥电能的最大功效也是原因….</p>
<p>Apache2+Vsftpd+PHP5+MySQL+PHPMyAdmin+SSH</p>
<blockquote><p>sudo apt-get install apache2 php5mysql phpmyadmin openssh-server vsftpd mysql-common mysql-server-5.0</p></blockquote>
<p>记得好象是这几个……</p>
<p>先配置Apache，在 /etc/apache2/sites-available 找到 default 这个文件</p>
<p>最前面一段修改如下</p>
<blockquote><p>ServerName 127.0.1.1<br />
ServerAdmin wandsea@gmail.com<br />
DocumentRoot /home/wandsea/www/<br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
&lt;/Directory&gt;<br />
&lt;Directory /home/wandsea/www/&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride All<br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;</p></blockquote>
<p>要改的好像只有网站目录,ServerName 和 AllowOverride All</p>
<p>然后把网站文件夹权限设置好，777/666貌似都可以吧…</p>
<p>然后配置Vsftpd，打开/etc/vsftpd.conf</p>
<p>反注释掉 local_enable=YES &amp; write_enable=YES</p>
<p>修改 anonymous_enable=NO</p>
<p>其余的好像就没有什么了…..</p>
<p>现在打开localhost，应该就有网站目录中的文件了</p>
<p>然后在路由器中设置花生壳，把自己的本本做DMZ主机</p>
<p>SSH使用请参照<a title="Permanent Link to DreamHost’ SSH Tunnel" rel="bookmark" href="../../246.htm" target="_blank">DreamHost SSH Tunnel</a>一文，以后在学校上QQ就方便了^^</p>
<p>Update：服务器默认是自动启动的..所以，系统－系统管理－服务，把自启动关闭，新建两个文件，start_webserver&amp;stop_webserver</p>
<blockquote><p>#/bin/bash<br />
sudo /etc/init.d/apache2 start<br />
sudo /etc/init.d/vsftpd start<br />
sudo /etc/init.d/mysql start</p>
<p>#/bin/bash<br />
sudo /etc/init.d/apache2 stop<br />
sudo /etc/init.d/vsftpd stop<br />
sudo /etc/init.d/mysql stop</p></blockquote>
<p>在桌面建立快捷方式..这样就方便很多</p>
<hr/><small>Copyright &copy; 2009<br /> 本Blog采用 知识共享署名-非商业性使用-相同方式共享 许可协议进行许可 轉載請署名 <br/> </small>
<a href="http://wandsea.com/blog/363.htm#comments" title="to the comments"><font color="red">加油！已经盖到0楼啦</font></a><small> － 
<a href="http://Wandsea.com/blog/" title="http://Wandsea.com/blog/">去看看我的Blog？</a> － 
<a href="http://wandsea.com/blog/never-forget" title="http://wandsea.com/blog/never-forget">民主歌声献中华 20年</a><br/> </small></p><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://wandsea.com/blog/471.htm" title="Ubuntu&#038;Wine運行星際爭霸2">Ubuntu&#038;Wine運行星際爭霸2</a> (9)</li><li><a href="http://wandsea.com/blog/469.htm" title="Thinkpad T410 &#038; Ubuntu 10.04 無線網卡自動掉線問題">Thinkpad T410 &#038; Ubuntu 10.04 無線網卡自動掉線問題</a> (4)</li><li><a href="http://wandsea.com/blog/467.htm" title="又一篇Ubuntu下Texlive2009安装笔记..">又一篇Ubuntu下Texlive2009安装笔记..</a> (2)</li><li><a href="http://wandsea.com/blog/465.htm" title="Thinkpad T410 Ubuntu 安装笔记">Thinkpad T410 Ubuntu 安装笔记</a> (7)</li><li><a href="http://wandsea.com/blog/446.htm" title="Ubuntu 9.10 (RC) 音量过大 Bug修复">Ubuntu 9.10 (RC) 音量过大 Bug修复</a> (4)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://wandsea.com/blog/363.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
