<?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>Yousri&#039;s Blog &#187; LAMP</title>
	<atom:link href="http://blog.yousri.org/tag/lamp/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yousri.org</link>
	<description>一个人骑单车在陌生城市路上自由穿梭的生活</description>
	<lastBuildDate>Fri, 20 Jan 2012 15:01:59 +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>Apache编译安装配置并支持Subversion版本控制</title>
		<link>http://blog.yousri.org/2010/02/25/install_apache_and_subversion.html</link>
		<comments>http://blog.yousri.org/2010/02/25/install_apache_and_subversion.html#comments</comments>
		<pubDate>Thu, 25 Feb 2010 07:39:00 +0000</pubDate>
		<dc:creator>Yousri</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[生活工作]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[kbs_bbs]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://jmxc.net/yousri/2010/02/25/install_subversion_on_apache/</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160; 毫无技术含量的文章,只是对先前一台服务器瞎捣鼓的后来由于上班太无聊的回忆潦草的记录备忘而已吧。。。 &#160;&#160;&#160;&#160;&#160;&#160; 一、更新CentOS系统至最新版本CentOS5.4 修改更新源 使用ustc.edu.cn的更新源 #cd /etc/yum.repos.d/ #mv CentOS-Base.repo CentOS-Base.repo.bak （备份修改前默认更新源） #wget http://centos.ustc.edu.cn/CentOS-Base.repo.5 （下载更新源） #mv CentOS-Base.repo.5 CentOS-Base.repo （因为默认的配置文件中服务器地址用的版本号是变量$releasever，所以需要将其替换为实际的版本号，否则是无法连接到服务器的，当前CentOS最新版是5.4，所以我们修改CentOS-Base.repo ） #vim CentOS-Base.repo vim全文替代命令并保存退出 :%s/$releasever/5.4/ :wq #yum update&#160;&#160; “更新下载 #lsb_release –a “查看验证版本 &#160;&#160;&#160;&#160;&#160;&#160; 二、下载安装配置Apache &#38; Mysql &#38; PHP &#38; KBS_BBS 1、目录定义： $bbs_install_dir&#160;&#160; 表示 bbs 的安装目录 /home/bbs $www_install_dir 表示 apache 的安装目录/home/www $php_install_dir&#160;&#160; 表示 php 的安装目录/home/www/php $phlinux_dir&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 表示花生壳安装目录/usr/local/phlinux/ <a href='http://blog.yousri.org/2010/02/25/install_apache_and_subversion.html'>[...]</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F05%2F16%2F%25E5%25AE%2589%25E8%25A3%2585%25E9%2585%258D%25E7%25BD%25AE%25E5%259F%25BA%25E4%25BA%258Ekbs%25E7%25A8%258B%25E5%25BA%258F%25E7%259A%2584bbs%25E7%25B3%25BB%25E7%25BB%259F.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">安装配置基于KBS程序的BBS系统</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F04%2F12%2Fapache%25E6%25BD%259C%25E5%259C%25A8%25E6%25BC%258F%25E6%25B4%259E.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache潜在漏洞</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F28%2Fapache_tomcat_install.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache与Tomcat整合</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><font face="微软雅黑" size="2">&#160;&#160;&#160;&#160;&#160; 毫无技术含量的文章,只是对先前一台服务器瞎捣鼓的后来由于上班太无聊的回忆潦草的记录备忘而已吧。。。      </p>
<p></font><font face="微软雅黑" size="2">&#160;&#160;&#160;&#160;&#160;&#160; 一、更新CentOS系统至最新版本CentOS5.4</font></p>
<blockquote><p>修改更新源 使用ustc.edu.cn的更新源      <br />#cd /etc/yum.repos.d/       <br />#mv CentOS-Base.repo CentOS-Base.repo.bak （备份修改前默认更新源）       <br />#wget <a href="http://centos.ustc.edu.cn/CentOS-Base.repo.5">http://centos.ustc.edu.cn/CentOS-Base.repo.5</a> （下载更新源）       <br />#mv CentOS-Base.repo.5 CentOS-Base.repo       <br />（因为默认的配置文件中服务器地址用的版本号是变量$releasever，所以需要将其替换为实际的版本号，否则是无法连接到服务器的，当前CentOS最新版是5.4，所以我们修改CentOS-Base.repo ）       <br />#vim CentOS-Base.repo       <br />vim全文替代命令并保存退出       <br />:%s/$releasever/5.4/       <br />:wq       <br />#yum update&#160;&#160; “更新下载       <br />#lsb_release –a “查看验证版本</p>
</blockquote>
<p><font face="微软雅黑" size="2">&#160;&#160;&#160;&#160;&#160;&#160; 二、下载安装配置Apache &amp; Mysql &amp; PHP &amp; KBS_BBS</font></p>
<blockquote><p>1、目录定义：      <br />$bbs_install_dir&#160;&#160; 表示 bbs 的安装目录 /home/bbs       <br />$www_install_dir 表示 apache 的安装目录/home/www       <br />$php_install_dir&#160;&#160; 表示 php 的安装目录/home/www/php       <br />$phlinux_dir&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 表示花生壳安装目录/usr/local/phlinux/ （默认安装路径）       <br />$code_dir&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 表示存放 kbsbbs、apache 和 php 源代码的目录/home/src       <br />2、软件下载：       <br />Apache：wget -c <a href="http://apache.mirror.phpchina.com/httpd/httpd-2.2.11.tar.gz">http://apache.mirror.phpchina.com/httpd/httpd-2.2.11.tar.gz</a>       <br />Mysql:wget -c <a href="http://mysql.ntu.edu.tw/Downloads/MySQL-5.0/mysql-5.0.67-linux-i686.tar.gz">http://mysql.ntu.edu.tw/Downloads/MySQL-5.0/mysql-5.0.67-linux-i686.tar.gz</a>       <br />PHP：wget -c <a href="http://cn.php.net/get/php-5.3.0.tar.gz/from/cn2.php.net/mirror">http://cn.php.net/get/php-5.3.0.tar.gz/from/cn2.php.net/mirror</a>       <br />KBS_BBS：svn co <a href="http://svn.kcn.cn/repos/kbs/trunk/www2">http://svn.kcn.cn/repos/kbs/trunk/www2</a>       <br />3、编译安装：       <br />#tar zxvf httpd-2.2.11.tar.gz       <br />#cd httpd-2.2.11       <br />#./configure &#8211;prefix=/home/www &#8211;enable-so &#8211;enable-rewrite –enable-ssl       <br />#make &amp;&amp; make install       <br />#cd /home/www/conf/      <br />#vim httpd.conf      <br />&#160;&#160; 添加修改：（使其支持运行php程序）      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; AddType application/x-httpd-php .php      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; User bbs      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Group bbs      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; AddDefaultCharset gb2312      </p>
<p>#cd ..       <br />#tar zxvf mysql-5.0.67.tar.gz       <br />#cd mysql-5.0.67       <br />#./configure &#8211;prefix=/usr/local/mysql &#8211;with-charset=utf8 –with-collation=utf8_general_ci &#8211;with-extra-charsets=latin1       <br />#make &amp;&amp; make install       <br />#cp support-files/my-medium.cnf /etc/my.cnf       <br />#cd /usr/local/mysql/       <br />#bin/mysql_install_db &#8211;user=mysql       <br />#chown –R root .       <br />#chown –R mysql /usr/local/mysql/var       <br />#chgrp –R mysql .       <br />#bin/mysqld_safe &#8211;user=mysql &amp;       <br />#cd /home/src/mysql-5.0.67       <br />#cp support-files/mysql.server /etc/init.d/mysql       <br />#chmod 755 /etc/init.d/mysql       </p>
<p>#yum install php-gd php-xml php-domxml zlib-devel openssl-devel gmp-devel gd libesmtp-devel       <br />#cd /home/src/       <br />#tar zxvf php-5.3.0.tar.gz       <br />#cd php-5.3.0       <br />#./configure &#8211;prefix=/home/www/php &#8211;with-apxs2=/home/www/bin/apxs &#8211;disable-debug &#8211;with-pic &#8211;disable-rpath &#8211;enable-inline-optimization &#8211;with-dom-dir=/usr &#8211;with-gd &#8211;with-freetype-dir=/usr &#8211;with-png-dir=/usr/ &#8211;with-jpeg-dir=/usr &#8211;with-zlib &#8211;enable-track-vars       <br />#make &amp;&amp; make install      <br />#cp&#160; php.ini-production /etc/php.ini      <br />#vim /etc/php.ini      <br />&#160; 修改short_open_tag = Off      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; magic_quotes_gpc = off      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; extension_dir = &quot;/usr/lib/php/modules&quot;      </p>
<p>#cd /home/src/       <br />#svn co &quot;<a href="http://svn.kcn.cn/repos/kbs/trunk/kbs_bbs">http://svn.kcn.cn/repos/kbs/trunk/kbs_bbs</a>&quot;       <br />#cd kbs_bbs/       <br />#./configure &#8211;prefix=/home/bbs &#8211;enable-site=jmubbs –with-php=/home/www/php &#8211;with-mysql=/usr/local/mysql &#8211;enable-ssh &#8211;enable-ssl       <br />#make &amp;&amp; make install       </p>
<p>#cd /home/src/       <br />#svn co <a href="http://svn.kcn.cn/repos/kbs/trunk/www2">http://svn.kcn.cn/repos/kbs/trunk/www2</a>       <br />#cd /home/www/       <br />#ln –s ../src/www2 htdocs </p>
</blockquote>
<p><font face="微软雅黑" size="2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 三、安装编译配置Subversion版本控制</font></p>
<blockquote><p>1、安装编译支持：apr、apr-util     <br />#cd /home/src      <br />#wget <a href="http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz">http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz</a>      <br />#tar zxvf sqlite-amalgamation-3.6.13.tar.gz      <br />#cd sqlite-3.6.13/      <br />#./configure      <br />#make &amp;&amp; make install      <br />#tar zvxf apr-1.3.3.tar.gz      <br />#tar zvxf apr-util-1.3.4.tar.gz      <br />#tar zvxf zlib-1.2.3.tar.gz      <br />#cd apr-1.3.3      <br />#./configure &#8211;prefix=/usr/local/apr      <br />#make &amp;&amp; make install      <br />#cd ../apr-util-1.3.4      <br />#./configure&#160; &#8211;with-apr=/usr/local/apr      <br />#make &amp;&amp; make install      <br />#cd ../zlib-1.2.3      <br />#./configure&#160; &#8211;prefix=/usr/local/zlib      <br />#make &amp;&amp; make install      <br />2、重新编译apache及全新编译安装subversion      <br />#cd /home/src/httpd-2.2.11      <br />#./configure &#8211;prefix=/home/www &#8211;enable-so &#8211;enable-rewrite &#8211;enable-dav &#8211;with-apr=/usr/local/apr/bin/apr-1-config &#8211;with-apr-util=/usr/local/apr/bin/apu-1-config      <br />#make &amp;&amp; make install      <br />#cd /home/src/subversion-1.6.9/      <br />#./configure &#8211;prefix=/home/subversion &#8211;with-apxs=/home/www/bin/apxs &#8211;with-apr=/usr/local/apr/bin/apr-1-config &#8211;with-apr-util=/usr/local/apr/bin/apu-1-config &#8211;with-ssl &#8211;with-zlib –enable-maintainer-mode      <br />#make &amp;&amp; make install      <br />3、配置Subversion      <br />a、创建账号密码：      <br />#htpasswd –c /home/svndata/www/conf/passwd yousri       <br />注：需输两次密码确认；第一次设置用户密码要加入 –c 这个参数，以后就可以不用了      <br />b、创建资料库：      <br />#/home/subversion/bin/svnadmin create /home/svndata/www      <br />c、确认apache配置文件httpd.conf ,默认应该增加了一下两个模块加载：      <br />LoadModule dav_svn_module&#160;&#160;&#160;&#160; modules/mod_dav_svn.so      <br />LoadModule authz_svn_module&#160;&#160; modules/mod_authz_svn.so      <br />同时添加增加一下配置信息：      <br />&lt;Location /svn&gt;      <br />&#160;&#160;&#160; DAV svn      <br />&#160;&#160;&#160; SVNPath /home/svndata/www      <br />&#160;&#160;&#160; AuthType Basic      <br />&#160;&#160;&#160; AuthName &quot;Subversion repository&quot;      <br />&#160;&#160;&#160; AuthUserFile /home/svndata/www/conf/passwd      <br />&#1<br />
60<br />
;&#160;&#160; Require valid-user      <br />&lt;/Location&gt;      <br />最后设置/home/svndata目录权限设置为755并重启apache服务      <br />d、导入数据至资料库      <br />#/home/subversion/bin/svn import /home/www/htdocs <a href="///home/svndata/www">file:///home/svndata/www</a> –m “web code”      <br />浏览访问测试：<a href="http://jmxc.vicp.net:20102/svn">http://jmxc.vicp.net:20102/svn</a></p>
</blockquote>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F05%2F16%2F%25E5%25AE%2589%25E8%25A3%2585%25E9%2585%258D%25E7%25BD%25AE%25E5%259F%25BA%25E4%25BA%258Ekbs%25E7%25A8%258B%25E5%25BA%258F%25E7%259A%2584bbs%25E7%25B3%25BB%25E7%25BB%259F.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">安装配置基于KBS程序的BBS系统</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F04%2F12%2Fapache%25E6%25BD%259C%25E5%259C%25A8%25E6%25BC%258F%25E6%25B4%259E.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache潜在漏洞</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F28%2Fapache_tomcat_install.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache与Tomcat整合</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.yousri.org/2010/02/25/install_apache_and_subversion.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.04里LAMP手动编译安装架构纪录</title>
		<link>http://blog.yousri.org/2008/08/06/lamp.html</link>
		<comments>http://blog.yousri.org/2008/08/06/lamp.html#comments</comments>
		<pubDate>Tue, 05 Aug 2008 20:11:14 +0000</pubDate>
		<dc:creator>Yousri</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://xmlinuxers.cn/2008/08/06/lamp/</guid>
		<description><![CDATA[之前在ubuntu8.04架构LAMP环境的时候都是用包装好的直接新立得进行一步安装搞定。就只有最初刚接触Linux的时候在RedHat下尝试使 用源码手动编译配置安装，但是当初编译了一个晚上最终还是以失败告终就是，对于里头提示缺少类库等问题很是陌生，虽然网上资料很多，但是操作起来每个人有 每个人不同的问题会出现，个人觉得有时问题还是更重要需要自己去一个个的处理掉，这样印象更深刻些，也是唯一措施可以处理好自己所遇到的问题的。 步入正题： 一、mysql安装配置 root@xmlinuxer-server:/media/WinF/LAMP#groupadd mysql root@xmlinuxer-server:/media/WinF/LAMP#useradd -g mysql mysql root@xmlinuxer-server:/media/WinF/LAMP#tar -zxvf mysql-5.0.33.tar.gz root@xmlinuxer-server:/media/WinF/LAMP#cd mysql-5.0.33 root@xmlinuxer-server:/media/WinF/LAMP/mysql-5.0.33#./configure --prefix=/opt/app/mysql5 --without-debug --without-bench --with-charset=utf8 --with-extra-charsets=all --with-plugins=fthightman --enable-thread-safe-client 如果出现了以下错误： checking for tgetent in -ltermcap... no checking for termcap functions library&#8230; configure: error: No curses/termcap library found 说明 curses/termcap 库没有安装 apt-cache search curses &#124; grep lib 安装 libncurses5-dev ，然后重新运行配置 apt-get <a href='http://blog.yousri.org/2008/08/06/lamp.html'>[...]</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu7.10 LAMP+WordPress完全安装攻略</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache编译安装配置并支持Subversion版本控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP环境配置过程详解</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F03%2Fsoftware_install_in_ubuntu.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于Ubuntu系统软件安装方式</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>之前在ubuntu8.04架构LAMP环境的时候都是用包装好的直接新立得进行一步安装搞定。就只有最初刚接触Linux的时候在RedHat下尝试使 用源码手动编译配置安装，但是当初编译了一个晚上最终还是以失败告终就是，对于里头提示缺少类库等问题很是陌生，虽然网上资料很多，但是操作起来每个人有 每个人不同的问题会出现，个人觉得有时问题还是更重要需要自己去一个个的处理掉，这样印象更深刻些，也是唯一措施可以处理好自己所遇到的问题的。</p>
<p>步入正题：</p>
<p>一、mysql安装配置</p>
<p><code>root@xmlinuxer-server:/media/WinF/LAMP#groupadd mysql<br />
root@xmlinuxer-server:/media/WinF/LAMP#useradd -g mysql mysql<br />
root@xmlinuxer-server:/media/WinF/LAMP#tar -zxvf mysql-5.0.33.tar.gz<br />
root@xmlinuxer-server:/media/WinF/LAMP#cd mysql-5.0.33<br />
root@xmlinuxer-server:/media/WinF/LAMP/mysql-5.0.33#./configure --prefix=/opt/app/mysql5 --without-debug --without-bench --with-charset=utf8 --with-extra-charsets=all --with-plugins=fthightman --enable-thread-safe-client</code></p>
<p>如果出现了以下错误：</p>
<p><code>checking for tgetent in -ltermcap... no</code></p>
<p>checking for termcap functions library&#8230; configure: error: No curses/termcap library found</p>
<p>说明 curses/termcap 库没有安装<br />
apt-cache search curses | grep lib<br />
安装 libncurses5-dev ，然后重新运行配置<br />
apt-get install libncurses5-dev</p>
<p>或者方法二</p>
<p>去下载一个ncurses-5.6.tar.gz，<br />
<code>wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz<br />
tar zxvf ncurses-5.6.tar.gz<br />
cd ncurses-5.6<br />
./configure –prefix=/usr –with-shared –without-debug<br />
make<br />
make install clean</code><br />
然后再重新编译Mysql进行安装。</p>
<p><code>root@xmlinuxer-server:/media/WinF/LAMP/mysql-5.0.33#make<br />
root@xmlinuxer-server:/media/WinF/LAMP/mysql-5.0.33#make install<br />
root@xmlinuxer-server:/media/WinF/LAMP/mysql-5.0.33#cp support-files/my-medium.cnf /etc/my.cnf //复制数据库mysql的配置文件<br />
root@xmlinuxer-server:/media/WinF/LAMP/mysql-5.0.33#cp support-files/mysql.server /etc/init.d/mysql</code></p>
<p>Ubuntu 系统下貌似没有/etc/rc.d这目录 嗯 其他的Linux系统可能是/etc/rc.d/init.d/mysql</p>
<p><code>root@xmlinuxer-server:/media/WinF/LAMP/mysql-5.0.33#cd /opt/app/mysql5<br />
root@xmlinuxer-server:/opt/app/mysql5#bin/mysql_install_db --user=mysql<br />
root@xmlinuxer-server:/opt/app/mysql5#chown -R root . //不要少了后面那个“.”咯<br />
root@xmlinuxer-server:/opt/app/mysql5#chown -R mysql var<br />
root@xmlinuxer-server:/opt/app/mysql5#chgrp -R mysql .</code></p>
<p>root@xmlinuxer-server:/opt/app/mysql5/share/mysql# service mysql start<br />
程序 ’service’ 已包含在以下软件包中：<br />
* debian-helper-scripts<br />
* sysvconfig<br />
试试：apt-get install<br />
bash: service：找不到命令</p>
<p>解决措施：安装下这两个软件包就ok啦 #apt-get install sysvconfig debian-helper-scripts</p>
<p><code>root@xmlinuxer-server:/opt/app/mysql5#bin/mysqld_safe --user=mysql &amp; 或者 service mysql start 启动数据库<br />
root@xmlinuxer-server#/opt/app/mysql5/share/mysql/mysql.server stop 或者 service mysql stop 停止数据库</code></p>
<p>二、安装apache完整配置</p>
<p><code>root@xmlinuxer-server:/media/WinF/LAMP#tar -zxvf httpd-2.2.4.tar.gz //解压包<br />
root@xmlinuxer-server:/media/WinF/LAMP#cd httpd-2.2.4<br />
root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4#./configure --prefix=/opt/app/apache2 --enable-so --with-mysql=/opt/app/mysql5 --enable-cgi --with-config-file-path=/opt/app/apache2/conf --enable-track-vars --enable-mods-shared=all --enable-cache --enable-disk-cache --enable-mem-cache --enable-rewrite --with-mpm=worker --with-z-dir=/opt/app/zlib //配置编译参数</code></p>
<p>这里涉及到关于zlib的安装，下载zlib-1.2.3.tar.gz包编译安装下zlib于/opt/app/zlib下<br />
具体如下：<br />
<code>root@xmlinuxer-server:/media/WinF/LAMP#tar -zxvf zlib-1.2.3.tar.gz<br />
root@xmlinuxer-server:/media/WinF/LAMP#cd zlib-1.2.3<br />
root@xmlinuxer-server:/media/WinF/LAMP/zlib-1.2.3#./configure --prefix=/opt/app/zlib<br />
root@xmlinuxer-server:/media/WinF/LAMP/zlib-1.2.3#make<br />
root@xmlinuxer-server:/media/WinF/LAMP/zlib-1.2.3#make install</code></p>
<p>然后继续编译安装apache环境</p>
<p><code>root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4#make<br />
root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4#make install<br />
root@xmlinuxer-server:/opt/app/apache2# bin/apachectl start<br />
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</code><br />
因为在httpd的配置文件里面没有制定主机名，所以才会出现这个提示<br />
用浏览器访问一下本地试试（http://127.0.0.1），屏幕上正常就会显示：It works !</p>
<p>三、安装php前GD库的安装：</p>
<p>1.安装 jpeg6<br />
需要自己建立目录<br />
<code>root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4# mkdir /opt/app/jpeg6<br />
root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4# mkdir /opt/app/jpeg6/bin<br />
root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4# mkdir /opt/app/jpeg6/lib<br />
root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4# mkdir /opt/app/jpeg6/include<br />
root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4# mkdir /opt/app/jpeg6/man<br />
root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4# mkdir /opt/app/jpeg6/man/man1<br />
root@xmlinuxer-server:/media/WinF/LAMP/httpd-2.2.4# cd..<br />
root@xmlinuxer-server:/media/WinF/LAMP# tar -zxvf jpegsrc.v6b.tar.gz<br />
root@xmlinuxer-server:/media/WinF/LAMP# cd jpegsrc.v6b<br />
root@xmlinuxer-server:/media/WinF/LAMP/jpegsrc.v6b#./configure --prefix=/opt/app/jpeg6/ --enable-shared --enable-static<br />
root@xmlinuxer-server:/media/WinF/LAMP/jpegsrc.v6b# make; make install</code></p>
<p>2.安装 libpng<br />
<code>root@xmlinuxer-server:/media/WinF/LAMP/jpegsrc.v6b# cd ..<br />
root@xmlinuxer-server:/media/WinF/LAMP# tar -jxvf libpng-1.2.8.tar.bz2<br />
root@xmlinuxer-server:/media/WinF/LAMP# cd libpng-1.2.8<br />
root@xmlinuxer-server:/media/WinF/LAMP/libpng-1.2.8# cp scripts/makefile.std /media/WinF/LAMP/libpng-1.2.8/makefile<br />
root@xmlinuxer-server:/media/WinF/LAMP/libpng-1.2.8# make; make install</code></p>
<p>3.安装 freetype<br />
<code>root@xmlinuxer-server:/media/WinF/LAMP/libpng-1.2.8# cd ..<br />
root@xmlinuxer-server:/media/WinF/LAMP# tar -zxvf freetype-2.3.2.tar.gz<br />
root@xmlinuxer-server:/media/WinF/LAMP# cd freetype-2.3.2<br />
root@xmlinuxer-server:/media/WinF/LAMP/freetype-2.3.2# ./configure --prefix=/opt/app/freetype<br />
root@xmlinuxer-server:/media/WinF/LAMP/freetype-2.3.2# make;make install</code></p>
<p>4.安装libXML2<br />
<code>root@xmlinuxer-server:/media/WinF/LAMP/freetype-2.3.2# cd ..<br />
root@xmlinuxer-server:/media/WinF/LAMP# tar -jxvf libxml2-2.6.24.tar.bz2<br />
root@xmlinuxer-server:/media/WinF/LAMP# cd libxml2-2.6.24<br />
root@xmlinuxer-server:/media/WinF/LAMP/libxml2-2.6.24# ./configure --prefix=/opt/app/libxml<br />
root@xmlinuxer-server:/media/WinF/LAMP/libxml2-2.6.24# make<br />
root@xmlinuxer-server:/media/WinF/LAMP/libxml2-2.6.24# make install</code></p>
<p>5.安装 GD2<br />
<code>root@xmlinuxer-server:/media/WinF/LAMP/libxml2-2.6.24# cd ..<br />
root@xmlinuxer-server:/media/WinF/LAMP# tar -zxvf gd-2.0.34.tar.gz<br />
root@xmlinuxer-server:/media/WinF/LAMP# cd gd-2.0.34<br />
root@xmlinuxer-server:/media/WinF/LAMP/gd-2.0.34#./configure --prefix=/opt/app/gd --with-jpeg=/opt/app/jpeg6 --with-png=/usr/local/lib --with-zlib=/opt/app/zlib --with-freetype=/opt/app/freetype<br />
root@xmlinuxer-server:/media/WinF/LAMP/gd-2.0.34# make<br />
root@xmlinuxer-server:/media/WinF/LAMP/gd-2.0.34# make install</code></p>
<p>＃安装PHP完整配置</p>
<p><code>root@xmlinuxer-server:/media/WinF/LAMP#tar -zxvf php-5.2.0.tar.gz<br />
root@xmlinuxer-server:/media/WinF/LAMP#cd php-5.2.0<br />
root@xmlinuxer-server:/media/WinF/LAMP/php-5.2.0#./configure --prefix=/opt/app/php5 --with-libxml-dir=/opt/app/libxml --with-gd=/opt/app/gd --with-jpeg-dir=/opt/app/jpeg6 --with-zlib-dir=/opt/app/zlib --with-libpng-dir=/usr/local/lib --with-freetype-dir=/opt/app/freetype --enable-mbstring --with-apxs2=/opt/app/apache2/bin/apxs --with-mysql=/opt/app/mysql5 --with-config-file-path=/opt/app/php5/etc</code></p>
<p>可能会有提示错误，编译安装下flex包：#apt-get install flex 再重新编译下就OK啦</p>
<p><code>root@xmlinuxer-server:/media/WinF/LAMP/php-5.2.0#cp php.ini-dist /opt/app/php5/etc/php.ini<br />
root@xmlinuxer-server:/media/WinF/LAMP/php-5.2.0#make<br />
root@xmlinuxer-server:/media/WinF/LAMP/php-5.2.0#make install</code></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu7.10 LAMP+WordPress完全安装攻略</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache编译安装配置并支持Subversion版本控制</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP环境配置过程详解</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F03%2Fsoftware_install_in_ubuntu.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于Ubuntu系统软件安装方式</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.yousri.org/2008/08/06/lamp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP环境配置过程详解</title>
		<link>http://blog.yousri.org/2008/07/08/php-setting.html</link>
		<comments>http://blog.yousri.org/2008/07/08/php-setting.html#comments</comments>
		<pubDate>Tue, 08 Jul 2008 05:36:39 +0000</pubDate>
		<dc:creator>Yousri</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://xmlinuxers.cn/2008/07/08/php%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e8%bf%87%e7%a8%8b%e8%af%a6%e8%a7%a3/</guid>
		<description><![CDATA[PHP环境配置过程详解 个人申明：以下内容是通过查阅资料，以及个人实际操作中提炼出来的，可能存在着不足，还望大家多多指点见谅，不算原创，但是算是实践加总括吧，版权还是所有，嗯～！！ Windows下配置PHP运行环境主要包括两种： 一、 单独软件安装方式： A、 windows的Apache 安装步骤： 1、 双击apache_2.2.2-win32-x86-no_ssl.msi 后，出现欢迎画面，点击“next”按钮； 2、 出现许可证协议，选择 I accept the terms in the agreement,同意授权协议后点击”next”按钮； 3、 出现自述文件，点击“next”按钮； 4、 Domain：在这里输入你的域名名称，例如：“abc.com”；若没有，就输入固定IP或者localhost，Host：这里就是你的服务器域名，例如：www.abc.com；若没有，就输入固定IP或者是localhost；Administrator E-mail：若服务器发生错误时，会显示一个页面给访客，下方会提供服务器管理员的E-mail，你可以输入你的电子邮件地址，或者保持空白，以上建议Network Domain &#38; Server name 都填入 localhost，并选择for all users,on port 80,as a service –recommended.，然后点击“next”按钮； 5、 选择Typical 典型安装，然后点击“next”按钮； 6、 Apache安装的路径（我这里安装在F:\Apache Software Foundation\Apache2.2），然后点击“next”按钮； 7、 然后点击“Install”按钮，开始安装； 8、 最后点击“finish”按钮，安装完毕！ 9、 接着配置系统环境变量：（我个人这步是没有设置就是了 默认状态） 在桌面“我的电脑”上单击右键-&#62;属性-&#62;高级-&#62;环境变量 编辑“系统变量”（用；分隔） 编辑变量名：APACHE2_HOME <a href='http://blog.yousri.org/2008/07/08/php-setting.html'>[...]</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu7.10 LAMP+WordPress完全安装攻略</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F12%2F22%2Fwindows-server-2003-install-and-setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows Server 2003服务器简易安全配置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">删除Ubuntu的NetworkManager网络管理并手动设置静态IP</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>PHP环境配置过程详解<br />
个人申明：以下内容是通过查阅资料，以及个人实际操作中提炼出来的，可能存在着不足，还望大家多多指点见谅，不算原创，但是算是实践加总括吧，版权还是所有，嗯～！！</p>
<p>Windows下配置PHP运行环境主要包括两种：</p>
<p>一、 单独软件安装方式：<br />
A、 windows的Apache 安装步骤：<br />
1、 双击apache_2.2.2-win32-x86-no_ssl.msi 后，出现欢迎画面，点击“next”按钮；<br />
2、 出现许可证协议，选择 I accept the terms in the agreement,同意授权协议后点击”next”按钮；<br />
3、 出现自述文件，点击“next”按钮；<br />
4、 Domain：在这里输入你的域名名称，例如：“abc.com”；若没有，就输入固定IP或者localhost，Host：这里就是你的服务器域名，例如：www.abc.com；若没有，就输入固定IP或者是localhost；Administrator E-mail：若服务器发生错误时，会显示一个页面给访客，下方会提供服务器管理员的E-mail，你可以输入你的电子邮件地址，或者保持空白，以上建议Network Domain &amp; Server name 都填入 localhost，并选择for all users,on port 80,as a service –recommended.，然后点击“next”按钮；<br />
5、 选择Typical 典型安装，然后点击“next”按钮；<br />
6、 Apache安装的路径（我这里安装在F:\Apache Software Foundation\Apache2.2），然后点击“next”按钮；<br />
7、 然后点击“Install”按钮，开始安装；<br />
8、 最后点击“finish”按钮，安装完毕！<br />
9、 接着配置系统环境变量：（我个人这步是没有设置就是了 默认状态）<br />
在桌面“我的电脑”上单击右键-&gt;属性-&gt;高级-&gt;环境变量 编辑“系统变量”（用；分隔） 编辑变量名：APACHE2_HOME 编辑变量值：安装路径，如：F:\Apache Software Foundation\Apache2.2；<br />
10、测试看看：http://localhost/ 或是http://你的域名 ，如果看见Apache的页面，那就OK<br />
11、Windows版Apache的网页目录：<br />
在Apache设置文件的设置中，“DocumentRoot”指的是网站的根目录，当然我们自己也可以修改此参数，Windows平台是在：安装目录下的htdoc目录内，也就是说网页或PHP的网页程序，必须放在此，必须要注意每个版本的htdoc目录的路径不太一样</p>
<p>B、 Windows的PHP程序安装：<br />
1、 安装PHP前先确认你已经成功安装了Apache，解压缩php-5.1.4-Win32.zip到F:\PHP（注意：文件最好直接解压在盘符:\PHP 下，勿包含在其他子目录下）；<br />
2、 将php.ini-dist 文件名称改为php.ini；<br />
3、 用记事本或者其他编辑软件打开php.ini查找register_globals=off 改成 register_globals=on ；<br />
4、 再查找 ;include_path=”.;F:\php\includes”,把 ;include_path=”.’F:\php\includes”前面的”;”去掉并将等号后面的 “.;F:\php\includes” 替换成 Apache网页所在的目录；<br />
5、 接着设置网页的根目录，请查找“doc_root=”，在等号后面加入 Apache网页所在的目录；<br />
6、 接着设置“php扩展模块所在的目录”，查找 “extension_dir=”./”，将默认值 “./” 去掉，改成 “c:\php\ext” ;<br />
7、 再查找“;extension=php_mysql.dll”，把extension=php_mysql.dll前面的“；”去掉，使得MYSQL函数库可以执行；<br />
8、 再查找”;session.save_path=/tmp”,把session.save_path前面的 “;”去掉，并在等号后”/tmp” 替换成 “F:\tmp”；<br />
9、 使用文件资源管理器在你的C盘下新建一个文件夹，名称为tmp；〕<br />
10、 完成以上步骤后将php.ini保存（注意：不要保存为php.ini）；<br />
11、 进入F:\php 拷贝里面的libmysql.dll 与 php5ts.dll 与 F:\php\ext 目录下的php_mysql.dll 与 php_mysqli.dll 到系统安装目录下的 system32 目录下，php5ts.dll以使你的php作为Apache的php_module,libmysql.dll 搭配步骤7的extension php_mysql.dll后PHP5才能使用Mysql数据库，（注意：libmysql.dll 为MYSQL4.1之前版本的扩展支持，libmysqli.dll 为MYSQL4.1之后版本的扩展支持）；<br />
12、 打开apache 的配置文件httpd.conf （开始 -&gt;程序 -&gt;Apache HTTP Server 2.2.2 -&gt;Configure Apache Server -&gt;Edit the Apache httpd.conf Configuration File）；<br />
13、 查找 DirectoryIndex index.html (设置默认首页，可以更改前后顺序) 将index.php加到DirectoryIndex 后面，中间要空一格<br />
14、 与配置文件最后面加入一下内容保存关闭（此步本人不是这种设置方法就是了）<br />
# For PHP 5 do something like this :<br />
LoadModule php5_module “c:\php\php5apache2.dll”<br />
AddType application/x-httpd-php .php<br />
#configure the path to php.ini<br />
PHPIniDir “c:\php”<br />
15、 接着配置系统环境变量： （这步我也是以默认 没有按以下进行设置的）<br />
方法同安装配置apache环境变量的一样，只是 编辑新变量：变量名为:PATH 加入变量值：F:\php\;F:\php\ext\;%PATH%<br />
16、 重新启动 Apache 之后就完成了PHP 安装配置了<br />
17、 创建测试文件：test.php 于 apache 网页所在目录下<br />
18、 内容为：<!--p phpinfo();-->；<br />
测试方式：打开浏览器，链接到：http://localhost/test.php ，若执行结果出现php Module相关信息，则安装成功。</p>
<p>C、 Windows下的MySQL 安装：</p>
<p>1、 第一次安装时，选择“Typical”即可，若之前安装过，则会出现“Repair修复”与“Remove移除”选项，如果在windows xp 上安装，我将安装目录改为：F:\MySQL\MySQL Server 5.1即可，不需要修改<br />
2、 按下“Install”按钮便开始复制文件并安装；接着选择“Skip Sign-up”即可，因为接下来出现这个“MySQL.com Sign-up 是指用户是否向MySQL AB公司注册一个号，此账号仅适用于登陆MySQL官方网站，因此与我们现在安装的MYSQL系统无关，所以跳过；<br />
3、 至此基本完成了安装步骤，接下来就是配置MYSQL一些基本文件，选择“Configure the MySQL Server Now” 开始设置MySQL Server<br />
4、 开始进入Configuration Wizard ，点击“next”按钮开始设置，在选择设置模式时，选择”Detailled Configuration” 详细设置模式<br />
5、 在选择Server Type（服务器模式）时 依所安装的机器运用形式的不同，其中共有三种模式可供选择：<br />
☆ Developer machine (开发用机器)：如果你的机器是用来开发软件之用，有许多其他日常用途，则选择此类型；<br />
☆ Server machine (服务器)：如果你的机器是用来做服务器，而且除了MYSQL服务外，同时还执行其他服务（FTP），则选择这类；<br />
☆ Dedicated MySQL Server Machine (MYSQL专用服务器)：如果你机器是MYSQL专用服务器，而且只执行MYSQL服务，则选择这一项<br />
这里我们选择第一种<br />
6、 在选择Database usage (数据库用途)时，依数据库用途分为三种模式选择：<br />
这里我们选择Multifunctional Database (多用途数据库) 即可<br />
7、 选择数据库文件安装路径，如果要更改数据存储位置请在此修改，默认数据文件即放在MySQL目录下的data目录下，直接点击“Next”按钮即可<br />
8、 接下来是同时上线人数的设置，可视你的服务器使用状况作设置，或者直接手动指定人数，一般运用上，选择DSS/OLAP架构模式的；<br />
9、 MySQL连接端口的设置，默认值是3306 保持默认设置就OK；<br />
10、 由于4.0版后，MySQL开始支持UTF-8，彻底解决中文乱码问题，在此选择第二项“Best support for multilingualism”或第三项并选择UTF-8 即可<br />
11、 创建root 密码<br />
12、 接下来就是一些配置MySQL 了 比较简单 就不多说了</p>
<p>D、Phpmyadmin 安装配置：</p>
<p>直接解压phpMyAdmin-2.8.0.1.zip 放置 apache的网页所在目录里 即可，测试方法如下：打开IE浏览器或者其他浏览器 输入: http://localhost/phpmyadmin 便可以打开网页式页面来管理MySQL 数据库，更方便易懂，容易理解</p>
<p>二、 傻瓜版的AppServ 安装配置 php运行环境：</p>
<p>首先先从网上下载一个最新版本的AppServ 版本的安装包，安装过程主要有以下几步吧：</p>
<p>直接运行appserv-win32-2.5.5.exe 便可以像安装其他软件那样简单的安装 其实大致与单独安装差不多吧 只是它将几个软件的分别安装整合在一起分步安装罢了</p>
<p>安装完成后 安装目录通常默认值是在：C:\AppServ，而在AppServ里大致有四个目录吧：www目录用于存放网页目录、apache目录用于放apache系统相关程序、mysql目录存放些MySQL数据库系统相关程序、php目录放置php相关程序文件，大体上是这样吧，我也没有详细安装过，所以也不是很清楚，只是在看书时一眼瞄过 呵呵</p>
<p>Linux 下php环境配置， 即 LAMP ＝Linux+Apache+MySQL+PHP：（先以我自身的ubuntu为例子）</p>
<p>A、 PHP环境安装设置：（以自己的ubuntu系统为例的）</p>
<p>1.将系统更新到最新状态，在做任何操作之前都要做这一步，以确保系统的稳定，同时也不会有一些莫名其妙的现象出现。<br />
$sudo apt-get update<br />
$sudo apt-get dist-upgrade</p>
<p>2、安装PHP支持</p>
<p>$sudo apt-get install libapache2-mod-php5<br />
$sudo apt-get install php5<br />
如果想支持图形就加php5-gd，如果想支持Mysql就加php5-mysql，这里之所以要单独列出libapache2-mod-php5，主要是由于php5的依赖关系没有做好，有可能会安装上libapache-mod-php5的包，所以为了避免不必要的麻烦，干脆还是单独指定比较好。</p>
<p>3、修改PHP配置文件，以限制内存和文件最大上传尺寸</p>
<p>编辑/etc/php5/apache2/php.ini文件，先做一般配置，在改动之前，请先将该配置文件做个备份。以便在出错的时候可以恢复。<br />
&gt;memory_limit = 8M =&gt;修改成你所需的内存大小<br />
&gt;upload_max_filesize = 2M =&gt;修改文件最大上传尺寸<br />
=============<br />
&gt;extension=mysql.so 支持Mysql服务<br />
&gt;extension=gd.so 支持gd函数<br />
=============<br />
其实在Ubuntu下，如果你安装了php5-mysql和php5-gd之后，会自动修改以上二行的，我们做的只不过是确认一下它们前面的注释符是否去掉。</p>
<p>补充：<br />
1。目前大多数php的open source都是用php4写的，为了兼容以前的php版本，有时需要将register_long_arrays打开，否则$HTTP_GET_VARS和$HTTP_POST_VARS等变量将无法使用，会出现一些莫名其妙的问题。<br />
2。另外，在装完php5后最好确认一下/etc/apache2/mods-enabled/下是否有链接：<br />
php5.load -&gt; /etc/apache2/mods-available/php5.load</p>
<p>4、加固PHP，以增强安全性。下面的安全性要因情况而定，所以我已经把它们的功能写清楚了，如果有问题的话，看看是否由于下面哪种限制条件所造成，可相应将其注释掉。</p>
<p>下面开始加固php,我们再次编辑/etc/php5/apache2/php.ini文件，之所以没有一次改完，主要是为了给大家一个清晰的思路。<br />
&gt;#打开安全模式，打开他的好处就是PHP文件只能访问所有者和PHP文件所有着一样的文件，即使在chroot环境下也无法访问jail中属主不一样的文件，类似于php shell这样的后门就没用武之地了哦，phpshell是很流行的php后门，他可以执行系统命令，就象他的名字一样，和shell很接近。<br />
&gt;safe_mode = On</p>
<p>&gt;#下面的设置就限制了fopen(), file()等函数可以操作的目录范围,避免了入侵者非法读取文件,一定要在/var/www后面加”/”,否则/var/wwww下的文件也能被访问 。该选项会禁止任何不在/var/www/目录下的PHP文件运行，包括任何以软链接方式链到/var/www/目录下的程序，如PhpMyAdmin包，就在该选项设定后无法正常运行。<br />
&gt;open_basedir = /var/www/</p>
<p>&gt;#禁止使用phpinfo和get_cfg_var函数，这样可以避免泄露服务信息，一般在在确认PHP能正常工作之后再使之关闭<br />
&gt;disable_functions = phpinfo,get_cfg_var</p>
<p>&gt;#设置php程序错误日志<br />
&gt;error_reporting = E_ALL<br />
&gt;log_errors = On<br />
&gt;error_log = /var/log/php_err.log</p>
<p>&gt;#如果php程序没有指明需要register_globals的话，最好把register_globals设置为Off,这样可以避免很多安全问题的。注意，如果你的程序是需要register_globals的话，可千万别关。Ubuntu默认是关闭的。<br />
&gt;register_globals = Off</p>
<p>&gt;#禁止打开远程地址,记得最近出的php include的那个漏洞吗？就是在一个php程序中include了变量，那么入侵者就可以利用这个控制服务器在本地执行远程的一个php程序，例如phpshell,所以我们关闭这个。<br />
&gt;allow_url_fopen = Off</p>
<p>B、Apache 安装 这里说的只是单独安装apache而已 至于配置的话再说吧</p>
<p>$sudo apt-get install apache2 终端下执行此命令即可安装apache 简单吧 嘿嘿<br />
它默认目录是在 /var/www，浏览器下测试：http://IP地址 ；这个还有一个功能就是可以当做web式的ftp 提供下载，只要将要共享的目录链接即 ln 到 /var/www 下 就OK 了</p>
<p>C、MySQL 数据库安装：</p>
<p>$ sudo apt-get install mysql_server mysql_client php5-mysql 终端下执行此命令自然就OK ；</p>
<p>这样就基本完成了 MySQL数据库的安装 方便简单</p>
<p>说明：个人感觉就是在ubuntu系统下安装些软件在网路速度稳定的情况下，确实是很快的，也很简单方便的，不过这些前提是要在 ubuntu更新源选择得明智 合理 才能实现咯 祝福你下吧 呵呵</p>
<p>附录： Apache与PHP 一同安装关联的话更是快咯 方法如下：</p>
<p>对于PHP4：$sudo apt-get install apache2 php4 libapache2-mod-php4<br />
而对于PHP5: $sudo apt-get install apache2 php5 libapache2-mod-php5</p>
<p>其中Apache configuration file is locate at:/etc/apache2/apache2.conf and your web floder is /var/www 下 everything is finish ,is go well ，OK Let’s come on ～</p>
<p>D、 Phpmyadmin 数据库管理界面安装： （phpmyadmin installation）</p>
<p>$sudo apt-get install phpmyadmin 终端下执行此行命令就完成了phpmyadmin的安装</p>
<p>注：apache最后重启下： $ /etc/init.d/apache2 restart</p>
<p>附录：<br />
考虑到现在大家上网路技术用到的linux系统基本都是红帽子的，所以再另外整理一份出redhat linux 下的php环境配置，不过这我个人在配置的时候出现了些问题就是，主要是原先自己没注意到在安装redhat linux 系统的时候已经将 MySQL 与 Apache 给默认安装了，后来又下载rpm包 或者 tar包安装进去 结果二者自然会产生冲突，产生错误，都是熬夜配置设置的，搞得头都晕晕的，一气之下将整个红帽子系统格掉重新换上ubuntu，oyeah 实在是太赞了 哈哈 所以以下这些是我第一次在linux配置的 如果出现有些问题再一起探讨吧 见谅了 （改天我再用我另一个盘上的红帽子系统配置测试看看吧）<br />
Start：</p>
<p>首先最好把路径定义在：/usr/local/[softname] ；<br />
把所有软件都放在同一个目录下比较有条理吧：/var/ftp/server 这样还可以为大家提供下载，哈哈<br />
安装顺序大致为：MySQL =&gt;Apache =&gt; PHP=&gt;Phpmyadmin 吧</p>
<p>A、MySQL Installation<br />
1、解压、解包： #tar –zxvf mysql-5.0.37.tar.gz<br />
2、将解压包出来的 mysq-5.0.37 转移到 /usr/local/mysql 下：#mv mysql-5.0.37 /usr/local/mysql<br />
3、创建 mysql组 以及 创建数据库用户： #groupadd mysql and then #useradd mysql<br />
4、将数据库用户划分到相应的组里： useradd –g mysql mysql<br />
5、执行scripts /mysql_install_db –user=mysql<br />
6、执行chown –R root .<br />
7、再执行chown –R mysql data<br />
8、chgrp –R mysql .<br />
9、bin/mysqld_safe –user=mysql &amp;<br />
10、测试 ./bin/mysql –u root –p<br />
注：修改密码：bin/mysqladmin –u root –p ‘password’ (password 指密码)；</p>
<p>B、 Apache 安装配置<br />
1、进入到软件所在目录：cd /usr/ftp/server/http-2.2.4<br />
2、运行编译：./configure –prefix=/server/apache –enable-so<br />
3、执行make 再执行 make install<br />
4、测试：cd /usr/local/apache/bin<br />
ls<br />
apachectl start<br />
浏览器firefox 地址栏中输入：http://localhost 或者 http://127.0.0.1<br />
注：apache 停止： apachectl stop</p>
<p>未完待续。。。。。。。。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu7.10 LAMP+WordPress完全安装攻略</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F12%2F22%2Fwindows-server-2003-install-and-setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows Server 2003服务器简易安全配置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">删除Ubuntu的NetworkManager网络管理并手动设置静态IP</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.yousri.org/2008/07/08/php-setting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu7.10 LAMP+WordPress完全安装攻略</title>
		<link>http://blog.yousri.org/2008/05/21/wordpress_install_on_ubuntu_by_lamp.html</link>
		<comments>http://blog.yousri.org/2008/05/21/wordpress_install_on_ubuntu_by_lamp.html#comments</comments>
		<pubDate>Wed, 21 May 2008 06:11:21 +0000</pubDate>
		<dc:creator>Yousri</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://xmlinuxers.cn/2008/05/21/ubuntu710-lampwordpress%e5%ae%8c%e5%85%a8%e5%ae%89%e8%a3%85%e6%94%bb%e7%95%a5/</guid>
		<description><![CDATA[1.安装 LAMP组件 使用新立得来安装， 打开新立得，编辑 –&#62; 使用任务分组标记软件包 –&#62; 勾选 LAMP Server 把这个安好后最好重起一下机器，有的时候重起apache不好使。 2.安装 phpmyadmin sudo apt-get install phpmyadmin 把 /usr/share目录下的 phpmyadmin 复制到 /var/www下. sudo cp -R /usr/share/phpmyadmin/ /var/www 在firefox中 127.0.0.1/phpmyadmin/就可以打开 phpmyadmin 3.启用 mod_rewrite 模块 sudo a2enmod rewrite 4.让apache支持.htm .html .php sudo gedit /etc/apache2/apache2.conf 在文件后面加上 AddType application/x-httpd-php .php .htm .html 解决firefox显示乱码,还是这个文件 ，在后面加上 AddDefaultCharset UTF-8 这里后面的 UTF-8 也可根据实际情况用 <a href='http://blog.yousri.org/2008/05/21/wordpress_install_on_ubuntu_by_lamp.html'>[...]</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F06%2F17%2Fwordpress%25E5%258F%2598%25E6%258D%25A2ip%25E6%2588%2596%25E6%2596%25B0%25E5%259F%259F%25E5%2590%258D%25E5%258F%258A%25E5%25AE%259E%25E7%258E%25B0%25E5%25AD%2590%25E7%259B%25AE%25E5%25BD%2595%25E5%25AE%2589%25E8%25A3%2585%25E6%25A0%25B9%25E7%259B%25AE%25E5%25BD%2595%25E8%25AE%25BF%25E9%2597%25AE%25E8%25AE%25BE%25E7%25BD%25AE.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress变换IP或新域名及实现子目录安装根目录访问设置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP环境配置过程详解</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache编译安装配置并支持Subversion版本控制</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>1.安装 LAMP组件<br />
使用新立得来安装， 打开新立得，编辑 –&gt; 使用任务分组标记软件包 –&gt; 勾选 LAMP Server<br />
把这个安好后最好重起一下机器，有的时候重起apache不好使。</p>
<p>2.安装 phpmyadmin<br />
sudo apt-get install phpmyadmin<br />
把 /usr/share目录下的 phpmyadmin 复制到 /var/www下.<br />
sudo cp -R /usr/share/phpmyadmin/ /var/www<br />
在firefox中 127.0.0.1/phpmyadmin/就可以打开 phpmyadmin</p>
<p>3.启用 mod_rewrite 模块<br />
sudo a2enmod rewrite</p>
<p>4.让apache支持.htm .html .php<br />
sudo gedit /etc/apache2/apache2.conf</p>
<p>在文件后面加上<br />
AddType application/x-httpd-php .php .htm .html<br />
解决firefox显示乱码,还是这个文件 ，在后面加上<br />
AddDefaultCharset UTF-8<br />
这里后面的 UTF-8 也可根据实际情况用 gb2312代替.</p>
<p>5.重启apache<br />
sudo /etc/init.d/apache2 restart</p>
<p>这样完成后 主目录位置:/var/www/ ; CGI程序目录:/var/www/cgi-bin</p>
<p>6、配置SQL</p>
<p>终端下输入mysql -u root -p</p>
<p>提示输入密码 直接输入原先安装时候设立的密码敲回车</p>
<p>会出现一个mysql&gt;的提示符，把下面这条东东输入进去，不要嫌长</p>
<p>GRANT ALL PRIVILEGES ON *.* TO <a href="mailto:root@localhost"><span style="color: #000000">root@localhost</span></a> IDENTIFIED BY “xxx”；</p>
<p>在这里，root是用户名，xxx是你想设置的密码。密码设置好以后,用“quit”退出</p>
<p>新建一个数据库吧</p>
<p>在浏览器里输入 127.0.0.1/phpmyadmin</p>
<p>点击 Create new database(创建数据库) ，添上数据库的名字，例如test。<br />
点击 Privileges(权限) ，进入权限管理，创建数据库用户。点击 Add a user(增加一个用户) ，选中 Use text field(使用文本域) ，添上要添加的用户名，并填写一个自己设置的密码。Global privileges(全局权限)一栏保持默认项即可。然后点击 Go(执行) 。<br />
然后回到权限页，在刚刚创建的用户名旁边点击 Check privileges(检查权限) 图标，然后再选择刚刚创建的数据库test，phpMyadmin 会把你带到 Add privileges to the following database(为数据库添加权限) 页面， Check All(全选) ，然后执行。 完成了建立数据库的工作。</p>
<p>建立完数据库，不要忘记记录下你的 database, username, password 和 hostname。<br />
LAMP服务器配置到此结束 现在可以开始安装 WordPress啦 嗯</p>
<p>7、Wordpress安装<br />
7.1、准备工作</p>
<p>下载，解压缩，放到apache2的目录里，修改权限。</p>
<p>wget -c <a href="http://wordpress.org/latest.tar.gz"><span style="color: #000000">http://wordpress.org/latest.tar.gz</span></a> （也可以直接网上主页先下载下来）</p>
<p>tar xvzf wordpress-2.2.tar.gz</p>
<p>sudo cp -rf wordpress /var/www/personblog  （personblog原先不存在自己建立用来存放wordpress文件夹文件的）<br />
7.2、编辑wp-config-sample.php 文件，找到以下几行：</p>
<p>1. define(’DB_NAME’, ‘ ’); // 在&#8217; &#8216;中输入数据库的名字，比如test<br />
2. define(’DB_USER’, ‘ ’); // 数据库的用户名<br />
3. define(’DB_PASSWORD’, ‘ ’); // …密码<br />
4. define(’DB_HOST’, ‘ ’); //数据库地址，比如127.0.0.1或者localhost</p>
<p>然后保存并改名为wp-config.php文件</p>
<p>7.3、最后安装，在浏览器里打开127.0.0.1/personblog/wp-admin/install安装wordpress</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F06%2F17%2Fwordpress%25E5%258F%2598%25E6%258D%25A2ip%25E6%2588%2596%25E6%2596%25B0%25E5%259F%259F%25E5%2590%258D%25E5%258F%258A%25E5%25AE%259E%25E7%258E%25B0%25E5%25AD%2590%25E7%259B%25AE%25E5%25BD%2595%25E5%25AE%2589%25E8%25A3%2585%25E6%25A0%25B9%25E7%259B%25AE%25E5%25BD%2595%25E8%25AE%25BF%25E9%2597%25AE%25E8%25AE%25BE%25E7%25BD%25AE.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress变换IP或新域名及实现子目录安装根目录访问设置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F07%2F08%2Fphp-setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP环境配置过程详解</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html&from=http%3A%2F%2Fblog.yousri.org%2F2008%2F05%2F21%2Fwordpress_install_on_ubuntu_by_lamp.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache编译安装配置并支持Subversion版本控制</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.yousri.org/2008/05/21/wordpress_install_on_ubuntu_by_lamp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

