<?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.bio-info-trainee.com/tag/%e7%bd%91%e7%bb%9c/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>ubuntu服务器解决方案第八讲&#8211;网络服务器配置lamp</title>
		<link>http://www.bio-info-trainee.com/573.html</link>
		<comments>http://www.bio-info-trainee.com/573.html#comments</comments>
		<pubDate>Wed, 01 Apr 2015 02:39:54 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=573</guid>
		<description><![CDATA[发现自己搞服务器遇到的困难还是蛮多的，所以记录了一下，给菜鸟们指个路。 ubun &#8230; <a href="http://www.bio-info-trainee.com/573.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>发现自己搞服务器遇到的困难还是蛮多的，所以记录了一下，给菜鸟们指个路。<br />
ubuntu对生信菜鸟来说是最好用的linux服务器，没有之一，因为它有apt-get。</p>
<p>主流的网络服务器配置就是linux+apache+mysql+php咯，简称LAMP</p>
<p>在ubuntu系统里面安装这个是非常easy的</p>
<p>sudo apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysql<span id="more-573"></span></p>
<p>由于LAMP大部分操作与/var/www目录相关，为了方便，修改该目录的权限为普通用户可访问。</p>
<p>sudo chmod 777 /var/www/</p>
<ol start="2">
<li>phpmyadmin 安装</li>
</ol>
<p>sudo apt-get install phpmyadmin</p>
<p>在安装过程中会要求选择Web server：apache2或lighttpd，选择apache2，按tab键然后确定。然后会要求输入设置的Mysql数据库密码连接密码 Password of the database's administrative user。</p>
<p>然后将phpmyadmin与apache2建立连接，以我的为例：www目录在/var/www，phpmyadmin在/usr/share /phpmyadmin目录，所以就用命令：sudo ln -s /usr/share/phpmyadmin /var/www 建立连接。</p>
<p>&nbsp;</p>
<p>phpmyadmin测试：在浏览器地址栏中打开http://localhost/phpmyadmin。</p>
<ol start="3">
<li>Apache 配置</li>
</ol>
<p>（1）启用 mod_rewrite 模块</p>
<p>终端命令：sudo a2enmod rewrite</p>
<p>（2）重启Apache服务器：sudo /etc/init.d/apache2 restart</p>
<p>Apache重启后可以测试一下，在/var/www目录下新建文件test.php，写入代码： 保存，在地址栏输入http://127.0.0.1/test.php 或 http://localhost/test.php ，如果正确出现了Mysql已经正确配置，表明Apache和mysql都正常了。(记得重启Apache服务器后再测试)。</p>
<p>&nbsp;</p>
<ol start="4">
<li>浏览器PHP中文乱码问题</li>
</ol>
<p>上面在FireFox浏览器中打开test.php测试时，如果出现了中文乱码，则是默认语言设置问题，解决方法如下：</p>
<p>打开apache配置文件： udo gedit /etc/apache2/apache2.conf，在最后面加上：AddDefaultCharset UTF-8，如果还是乱码的，再将UTF-8改用gb2312。</p>
<p>重启Apache：sudo /etc/init.d/apache2 restart 再刷新test.php 中文乱码没有了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/573.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
