<?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>FVF.me&#039;Ye &#187; mysql</title>
	<atom:link href="http://fvf.me/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://fvf.me</link>
	<description>我是孤独的根号5</description>
	<lastBuildDate>Mon, 19 Sep 2011 12:10:36 +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>ubuntu安装apache，php，mysql，组成LAMP系统</title>
		<link>http://fvf.me/linux/ubuntu-linux/ubuntu-install-apache-php-mysql-lamp-system-composed-of.html</link>
		<comments>http://fvf.me/linux/ubuntu-linux/ubuntu-install-apache-php-mysql-lamp-system-composed-of.html#comments</comments>
		<pubDate>Sat, 08 Jan 2011 14:19:01 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://fvf.me/linux/ubuntu-linux/ubuntu%e5%ae%89%e8%a3%85apache%ef%bc%8cphp%ef%bc%8cmysql%ef%bc%8c%e7%bb%84%e6%88%90lamp%e7%b3%bb%e7%bb%9f.html</guid>
		<description><![CDATA[安装了ubuntu，喜欢捣鼓wordpress主题的我，当然少不了要安装apache2+php5.2.4.2+mysql5.0.51，组成LAMP系统啊。 1、安装apache2和php5 sudo apt-get install apache2 libapache2-mod-php5 php5-cli php5-dev 安装完成之后，在/var/www/目录下写一个phpinfo.php文本文件，内容如下： &#60;?php &#160; phpinfo();&#160; ?&#62; 保存之后，启动apache服务器，输入： sudo /etc/init.d/apache2 start 服务器启动成功之后，打开浏览器，在地址栏输入“http://127.0.0.1/phpinfo.php”，如果显示出php的信息，说明apache和php安装成功了。 sudo /etc/init.d/apache2 restart OK之后，我们来查看一下是否生效了。 2、安装mysq sudo apt-get install mysql-server 3、让apache、php支持mysql sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install php5-mysql ４、重启apache2 sudo /etc/init.d/apache2 restart 到此，我电脑里面apache2+php 5.2.4.2+mysql5.0.51的环境就完成了。]]></description>
			<content:encoded><![CDATA[<p>安装了ubuntu，喜欢捣鼓wordpress主题的我，当然少不了要安装apache2+php5.2.4.2+mysql5.0.51，组成LAMP系统啊。</p>
<p>1、安装apache2和php5 </p>
<div class="source" style="color: rgb(255,255,255); font-family: verdana, &#39;Lucida Console&#39;, &#39;Courier New&#39;; background-color: rgb(30,30,39)"><span style="color: rgb(255,255,255)">sudo apt-get install apache2 libapache2-mod-php5 php5-cli php5-dev</span> </p>
<p></div>
<p>安装完成之后，在/var/www/目录下写一个phpinfo.php文本文件，内容如下： </p>
<div class="source" style="color: rgb(192,192,192); font-family: verdana, &#39;Lucida Console&#39;, &#39;Courier New&#39;; background-color: rgb(0,0,0)"><span style="color: rgb(255,255,255)">&lt;?php</span> </p>
<p>&#160; <span style="color: rgb(192,192,192)">phpinfo</span>();&#160; <br /><span style="color: rgb(255,255,255)">?&gt;</span> </p>
<p></div>
<p>保存之后，启动apache服务器，输入： </p>
<div class="source" style="color: rgb(255,255,255); font-family: verdana, &#39;Lucida Console&#39;, &#39;Courier New&#39;; background-color: rgb(0,0,0)"><span style="color: rgb(255,255,255)">sudo /etc/init.d/apache2 start</span> </p>
<p></div>
<p>服务器启动成功之后，打开浏览器，在地址栏输入“http://127.0.0.1/phpinfo.php”，如果显示出php的信息，说明apache和php安装成功了。 </p>
<div class="source" style="color: rgb(255,255,255); font-family: verdana, &#39;Lucida Console&#39;, &#39;Courier New&#39;; background-color: rgb(0,0,0)"><span style="color: rgb(255,255,255)">sudo /etc/init.d/apache2 restart</span> </p>
<p></div>
<p>OK之后，我们来查看一下是否生效了。 </p>
<p>2、安装mysq </p>
<div class="source" style="color: rgb(255,255,255); font-family: verdana, &#39;Lucida Console&#39;, &#39;Courier New&#39;; background-color: rgb(0,0,0)"><span style="color: rgb(255,255,255)">sudo apt-get install mysql-server</span> </p>
<p></div>
<p>3、让apache、php支持mysql </p>
<div class="source" style="color: rgb(255,255,255); font-family: verdana, &#39;Lucida Console&#39;, &#39;Courier New&#39;; background-color: rgb(0,0,0)"><span style="color: rgb(255,255,255)">sudo apt-get install libapache2-mod-auth-mysql </span></p>
<p><span style="color: rgb(255,255,255)">sudo apt-get install php5-mysql</span> </p>
<p></div>
<p>４、重启apache2</p>
<div class="source" style="color: rgb(255,255,255); font-family: verdana, &#39;Lucida Console&#39;, &#39;Courier New&#39;; background-color: rgb(0,0,0)"><span style="color: rgb(255,255,255)">sudo /etc/init.d/apache2 restart</span> </p>
<p></div>
<p>到此，我电脑里面apache2+php 5.2.4.2+mysql5.0.51的环境就完成了。 </p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/linux/ubuntu-linux/ubuntu-install-apache-php-mysql-lamp-system-composed-of.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu下构建LMAP环境</title>
		<link>http://fvf.me/linux/construction-lmap-environment-under-ubuntu.html</link>
		<comments>http://fvf.me/linux/construction-lmap-environment-under-ubuntu.html#comments</comments>
		<pubDate>Sun, 18 Oct 2009 11:43:53 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://fvf.me/linux/ubuntu%e4%b8%8b%e6%9e%84%e5%bb%balmap%e7%8e%af%e5%a2%83.html</guid>
		<description><![CDATA[由于Windows下的Xampp罢工，我一气之下就准备安装个Ubuntu构建LAMP系统，去下了个Virtual PC，结果发现不能安装Ubuntu，郁闷！有去下了个VMware汉化版，不过还是在最后时候出现文件错误，真倒霉！最后去下了VirtualBox才顺利的安装上Ubuntu。现在的Ubuntu安装已经很傻瓜了，就不在这里讲了！ 当安装好Ubuntu之后，就开始在光光的系统上安装AMP了。 1.开始跟新源 打开终端（应用程序-附件-终端），输入： sudo gedit /etc/apt/sources.list 编辑你的源列表，复制合适的源地址到你的列表中，然后保存列表。 点击一下地址，查找合适的源地址： Ubuntu源文件地址 sudo apt-get update 更新源列表信息！ 2.安装apache、php5、mysql sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo apt-get install mysql-server-5.0 mysql-common mysql-admin sudo apt-get install php5-mysql sudo /etc/init.d/apache2 restart 再次重启apache，使新服务正常激活. 3.配置mysql （一）没有设置mysql密码的登录方法 打开终端（应用程序-附件-终端），输入： mysql -u root 用根用户进入mysql，设置根用户密码： mysql&#62; GRANT ALL PRIVILEGES ON *.* [...]]]></description>
			<content:encoded><![CDATA[<p>由于Windows下的Xampp罢工，我一气之下就准备安装个Ubuntu构建LAMP系统，去下了个Virtual PC，结果发现不能安装Ubuntu，郁闷！有去下了个VMware汉化版，不过还是在最后时候出现文件错误，真倒霉！最后去下了VirtualBox才顺利的安装上Ubuntu。现在的Ubuntu安装已经很傻瓜了，就不在这里讲了！</p>
<p><strong>当安装好Ubuntu之后，就开始在光光的系统上安装AMP了。</strong></p>
<h3>1.开始跟新源</h3>
<p>打开终端（应用程序-附件-终端），输入：</p>
<p>sudo gedit /etc/apt/sources.list</p>
<p>编辑你的源列表，复制合适的源地址到你的列表中，然后保存列表。</p>
<p>点击一下地址，查找合适的源地址：</p>
<p><a title="http://wiki.ubuntu.org.cn/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E6%88%91%E4%BB%AC%E6%8E%A8%E8%8D%90%E7%9A%84%E6%BA%90" href="http://wiki.ubuntu.org.cn/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E6%88%91%E4%BB%AC%E6%8E%A8%E8%8D%90%E7%9A%84%E6%BA%90">Ubuntu源文件地址</a></p>
<p>sudo apt-get update 更新源列表信息！</p>
<h3>2.安装apache、php5、mysql</h3>
<p>sudo apt-get install apache2</p>
<p>sudo apt-get install php5</p>
<p>sudo apt-get install libapache2-mod-php5</p>
<p>sudo apt-get install mysql-server-5.0 mysql-common mysql-admin</p>
<p>sudo apt-get install php5-mysql</p>
<p>sudo /etc/init.d/apache2 restart</p>
<p>再次重启apache，使新服务正常激活.</p>
<h3>3.配置mysql</h3>
<p>（一）没有设置mysql密码的登录方法</p>
<p>打开终端（应用程序-附件-终端），输入：</p>
<p>mysql -u root</p>
<p>用根用户进入mysql，设置根用户密码：</p>
<p>mysql&gt; GRANT ALL PRIVILEGES ON *.* TO <a href="mailto:ROOT@localhost">ROOT@localhost</a> IDENTIFIED BY "123456";//密码设置为123456</p>
<p>（二）设置了mysql密码的登录方法</p>
<p>mysql –u root –p</p>
<p>password:</p>
<h3>4.LAMP 附属环境配置</h3>
<p>打开终端（应用程序-附件-终端），输入：</p>
<p>sudo apt-get install phpmyadmin</p>
<p>安装phpmyadmin，方便管理mysql，这个使用过Xampp的都应该用过！</p>
<p>由于phpmyadmin 默认并不是安装在 /var/www下面的而是在 /usr/share/phpmyadmin，所以要把phpmyadmin文件夹复制过去。</p>
<p>sudo cp /usr/share/phpmyadmin/ /var/www/</p>
<p>主要文件夹权限！</p>
<p>sudo gedit /etc/phpmyadmin/apache.conf</p>
<p>编辑phpmyadmin</p>
<p>Alias /phpmyadmin /usr/share/phpmyadmin</p>
<p>&lt;Directory /usr/share/phpmyadmin&gt;</p>
<p>修改为</p>
<p>Alias /phpmyadmin /var/www/phpmyadmin</p>
<p>&lt;Directory /var/www/phpmyadmin&gt;</p>
<p>编辑php配置文件:</p>
<p>sudo gedit /etc/php5/apache2/php.ini</p>
<p>修改一下属性值</p>
<p>extension=php5-mcrypt.so</p>
<h3>5.重启apache，mysql服务器</h3>
<p>sudo /etc/init.d/apache2 restart</p>
<p>sudo /etc/init.d/mysql restart</p>
<p><a href="http://localhost/wordpress/"><span style="color: #4a4a4a;">打开火狐输入网站验证</span></a><a href="http://localhost">http://localhost</a>或<a title="http://127.0.0.1/" href="http://127.0.0.1/">http://127.0.0.1/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/linux/construction-lmap-environment-under-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

