<?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>记录与PHP的PK经历 &#187; apache</title>
	<atom:link href="http://www.pkphp.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pkphp.com</link>
	<description>PK with php!</description>
	<lastBuildDate>Fri, 27 May 2011 02:07:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>linux安装awstats对apache日志进行监测</title>
		<link>http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/</link>
		<comments>http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 13:56:21 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[监测]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=727</guid>
		<description><![CDATA[首先下载两个文件：
wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
wget http://prdownloads...<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%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F">
                        <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%2Fwww.pkphp.com%2F2008%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下为什么0777的文件夹和文件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%2Fwww.pkphp.com%2F2008%2F04%2F21%2Flinux%25E4%25B8%258B%25E9%2587%258D%25E6%2596%25B0%25E5%2590%25AF%25E5%258A%25A8apache%25E7%259A%2584%25E5%2591%25BD%25E4%25BB%25A4%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下重新启动Apache的命令</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>首先下载两个文件：<br />
<code>wget http://cronolog.org/download/cronolog-1.6.2.tar.gz<br />
wget http://prdownloads.sourceforge.net/awstats/awstats-6.7.tar.gz</code></p>
<p>cronolog是用来改变日志的格式以适合awstats的分析<br />
cronolog很好装，下载后解包，命令行安装<br />
<code>./configure<br />
make<br />
make install</code></p>
<p>接下来修改apache配置文件httpd.conf<br />
把这行<br />
<code>CustomLog logs/access_log common</code><br />
修改成<br />
<code>CustomLog "|/usr/local/sbin/cronolog /usr/local/apache2/logs/access-%Y%m%d_log" combined</code><br />
Cronolog这个脚本在cronolog装完以后就会产生。</p>
<p>对awstats解包，并命令行执行：<br />
<code>cp -r awstats-6.7/ /usr/local/awstats<br />
cd /usr/local/awstats<br />
perl tools/awstats_configure.pl</code><br />
在Your web site, virtual server or profile name:里<br />
输入您的IP（域名），其他基本都能够回车和y</p>
<p>修改awstats的配置文档<br />
<code>vi /etc/awstats/awstats.192.168.0.104.conf<br />
LogFile="/usr/local/apache2/logs/access-%YYYY-0%MM-0%DD-0_log"<br />
DirData="/usr/local/apache2/htdocs/awstats/test/dirdata"(保存数据)<br />
cp -R /usr/local/awstats/wwwroot/css/ /usr/local/apache2/htdocs/test/<br />
cp -R /usr/local/awstats/wwwroot/icon/ /usr/local/apache2/htdocs/test/</code></p>
<p>主要用于显示图片<br />
<code>cd /usr/local/apache2/htdocs<br />
mkdir -p awstats/test/dirdata</code></p>
<p><code>perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=192.168.0.104<br />
perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=192.168.0.104 -output -staticlinks > /usr/local/apache2/htdocs/test/index.html</code><br />
这两个命令写入crontab 中<br />
<code>30 * * * * /usr/bin/perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=192.168.0.104<br />
30 * * * * /usr/bin/perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=192.168.0.104 -output -staticlinks > /usr/local/apache2/htdocs/test/index.html</code><br />
两个命令是用来生成index.html文档</p>
<p>配置test的访问权限<br />
<code>#  SSLRequireSSL<br />
   Options None<br />
   AllowOverride None<br />
   Order allow,deny<br />
   Allow from all<br />
#  Order deny,allow<br />
#  Deny from all<br />
#  Allow from 127.0.0.1<br />
   AuthName "Awstats Access"<br />
   AuthType Basic<br />
   AuthUserFile /usr/local/apache2/htdocs/test/htpasswd.users<br />
   Require valid-user<br />
/usr/local/apache2/bin/htpasswd -c /usr/local/apache2/htdocs/test/htpasswd.users admin<br />
Admin</code><br />
这行是配置访问test的用户名和密码,这里是admin admin<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/'>apache中虚拟目录和虚拟主机设置</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/'>Ubuntu下安装 apache+php+mysql文本服务器！</a></li>
<li><a href='http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/'>linux下为什么0777的文件夹和文件apache无法写入呢？</a></li>
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/'>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</a></li>
</ul>
<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="awstats" style="font-size: 13px;">awstats</a>(3)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="awstats 所有插件" style="font-size: 13px;">awstats 所有插件</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="awstats apache" style="font-size: 13px;">awstats apache</a>(2)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="apache perl awstats" style="font-size: 13px;">apache perl awstats</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="awstats apache 配置" style="font-size: 13px;">awstats apache 配置</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="propecia" style="font-size: 13px;">propecia</a>(2)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="levitra" style="font-size: 13px;">levitra</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="linux awstats apache" style="font-size: 13px;">linux awstats apache</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="awstats linux" style="font-size: 13px;">awstats linux</a>(2)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="linux 安装php phar" style="font-size: 13px;">linux 安装php phar</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="awstats apache 安装" style="font-size: 13px;">awstats apache 安装</a>(2)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="awstats dirdata" style="font-size: 13px;">awstats dirdata</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="inurl:awstats" style="font-size: 13px;">inurl:awstats</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="ubuntu cronolog" style="font-size: 13px;">ubuntu cronolog</a>(1)<a href="http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/" title="linux apache日志" style="font-size: 13px;">linux apache日志</a>(1)<br /><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%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F" rel="nofollow">
                        <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%2Fwww.pkphp.com%2F2008%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下为什么0777的文件夹和文件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%2Fwww.pkphp.com%2F2008%2F04%2F21%2Flinux%25E4%25B8%258B%25E9%2587%258D%25E6%2596%25B0%25E5%2590%25AF%25E5%258A%25A8apache%25E7%259A%2584%25E5%2591%25BD%25E4%25BB%25A4%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下重新启动Apache的命令</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="无觅相关文章插件" rel="nofollow">
                <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><p><div id="relatedlinks_container_div"></div>
<script language=javascript defer>
  var escFun = window.encodeURIComponent ? window.encodeURIComponent : escape;
  var relatedlinks_js = document.createElement("script");
  relatedlinks_js.setAttribute("charset", "utf-8");
  relatedlinks_js.src = "http://relatedlinks.googlelabs.com/client/client.js?url=" +
      escFun(document.URL) + "&referrer=" + escFun(document.referrer) +
      "&relatedlinks_id=10098_5845376649736343543&title=" + escFun(document.title);
  document.getElementsByTagName("head")[0].appendChild(relatedlinks_js);
</script></p> ]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache中虚拟目录和虚拟主机设置</title>
		<link>http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/</link>
		<comments>http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 15:07:33 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[权限]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=573</guid>
		<description><![CDATA[在apache的配置文件http.conf中设置如下信息，可以将该目录变成一个web可以放的目录：

          Opiones Indexes MultiViews
          AllowOverride None
          Order allow,deny
          Allow from all

这里面的几个参数说明如下：


	Indexes 允许目录浏览（即列出此目录下所有文件名称）；MultiVi...<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%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下为什么0777的文件夹和文件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%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2Fwww.pkphp.com%2F2008%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2Fwww.pkphp.com%2F2008%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用pam_chroot限定用户ssh登录linux主机后的权限</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>在apache的配置文件http.conf中设置如下信息，可以将该目录变成一个web可以放的目录：<br />
<code><br />
Options Indexes MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
</code><br />
这里面的几个参数说明如下：</p>
<ul>
<li>Indexes 允许目录浏览（即列出此目录下所有文件名称）；MultiViews 允许内容协商的多重视图。<br />
比如：客户端输入“http://10.0.0.1/icone/a&#8221;这将会显示此目录下所有 a.* 文件，并不是出错信息。All 包含了初MultiViews 之外的所有特性，若无Options 语句，默认为All</li>
<li>AllowOverride 定义对于每个目录下的 .htalless 文件中的指含类型，一般禁止使用。</li>
<li>设置缺省的访问权限，当前设置表示允许所有客户机都能访问。比如仅允许192.168.16.0/24 这个段能访问，除了192.168.16.5/24 之外。<br />
使用方法：Oredr allow ,deny<br />
Allow from 192.168.16.0/24<br />
Deny from 192.168.16.5/24</li>
</ul>
<p>如果想在服务器上增加一个虚拟主机，就是增加个另外的域名的可用空间，在apache的http.conf文件最后增加如下代码：<br />
<code><br />
DocumentRoot /www/pkphp_com/<br />
ServerName   www.pkphp.com</p>
<p>Options FollowSymLinks<br />
AllowOverride All<br />
order allow,deny<br />
Allow from all</p>
<p></code></p>
<ul>
<li>214.118.36.117换成你的服务器绑定的静态ip，同时将域名www.pkphp.com的A记录指定到这个ip</li>
<li>www.pkphp.com是需要绑定的域名，注意：如果你要事情pkphp.com，需要复制上面的代码增加一个到配置文件最后同时将www.pkphp.com设置为pkphp.com。这样设置就可以使用www.pkphp.com和pkphp.com都可以访问/www/pkphp_com/目录了！</li>
<li>其他的设置与目录的设置相同，见上！</li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/'>linux下为什么0777的文件夹和文件apache无法写入呢？</a></li>
<li><a href='http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/'>使用pam_chroot限定用户ssh登录linux主机后的权限</a></li>
<li><a href='http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/'>linux下如何重启动网络服务</a></li>
<li><a href='http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/'>linux安装awstats对apache日志进行监测</a></li>
<li><a href='http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/'>linux下如何安装、卸载软件</a></li>
</ul>
<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="wordpress一个虚拟目录" style="font-size: 13px;">wordpress一个虚拟目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 增加虚拟目录" style="font-size: 13px;">apache 增加虚拟目录</a>(5)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 设置图片文件目录" style="font-size: 13px;">apache 设置图片文件目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 虚拟目录 无内容" style="font-size: 13px;">apache 虚拟目录 无内容</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="wordpress 虚拟 目录" style="font-size: 13px;">wordpress 虚拟 目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 虚拟目录外" style="font-size: 13px;">apache 虚拟目录外</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="appche 虚拟站点" style="font-size: 13px;">appche 虚拟站点</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="PHP 虚拟目录" style="font-size: 13px;">PHP 虚拟目录</a>(5)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache linux 虚拟目录 权限" style="font-size: 13px;">apache linux 虚拟目录 权限</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="虚拟主机中设置目录浏览" style="font-size: 13px;">虚拟主机中设置目录浏览</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="Apache的虚拟站点设置" style="font-size: 13px;">Apache的虚拟站点设置</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 链接目录" style="font-size: 13px;">apache 链接目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="主机访问　虚拟机linux php虚拟目录" style="font-size: 13px;">主机访问　虚拟机linux php虚拟目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="php 虚拟目录 linux 权限" style="font-size: 13px;">php 虚拟目录 linux 权限</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="linux php 虚拟目录" style="font-size: 13px;">linux php 虚拟目录</a>(4)<br /><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%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下为什么0777的文件夹和文件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%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2Fwww.pkphp.com%2F2008%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2Fwww.pkphp.com%2F2008%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用pam_chroot限定用户ssh登录linux主机后的权限</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="无觅相关文章插件" rel="nofollow">
                <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://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu下安装 apache+php+mysql文本服务器！</title>
		<link>http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/</link>
		<comments>http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 10:33:52 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=495</guid>
		<description><![CDATA[ubuntu实在是太牛了，很简单的方法就安装完毕web服务器，只需要按顺序执行以下命令即可： Once again, here&#8217;s my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server. Install SSH Client and Server (for my remote access) sudo apt-get install ssh Install Database Server sudo apt-get install mysql-server-5.0 Install Apache HTTP Server sudo apt-get install apache2 Install PHP5 and Apache PHP5 module sudo [...]<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%2Fwww.pkphp.com%2F2008%2F06%2F05%2Fapache2-mod_ssl-php5-%25E5%25AE%258C%25E5%2585%25A8%25E5%25AE%2589%25E8%25A3%2585%25E5%25AE%259E%25E5%25BD%2595%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache2 + mod_ssl + php5 完全安装实录</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%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</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%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2Fwww.pkphp.com%2F2008%2F04%2F27%2F%25E8%25AE%25A9mysql-%25E4%25B8%258E-apache-%25E5%259C%25A8%25E7%25B3%25BB%25E7%25BB%259F%25E5%2590%25AF%25E5%258A%25A8%25E6%2597%25B6%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%2590%25E8%25A1%258C%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">让mysql 与 apache 在系统启动时自动运行</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>ubuntu实在是太牛了，很简单的方法就安装完毕web服务器，只需要按顺序执行以下命令即可：</p>
<p>Once again, here&#8217;s my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.</p>
<p>Install SSH Client and Server (for my remote access)<br />
<code>sudo apt-get install ssh<br />
</code><br />
Install Database Server<br />
<code>sudo apt-get install mysql-server-5.0<br />
</code><br />
Install Apache HTTP Server<br />
<code>sudo apt-get install apache2<br />
</code><br />
Install PHP5 and Apache PHP5 module<br />
<code>sudo apt-get install php5 libapache2-mod-php5<br />
</code><br />
Restart Apache<br />
<code>sudo /etc/init.d/apache2 restart<br />
</code><br />
Optionally, install phpMyAdmin<br />
<code>sudo apt-get install phpmyadmin<br />
</code></p>
<p>Enjoy!</p>
<p>怎么样？简单吧！除去下载的时间，要不了一分钟就可以完成配置，在 Ubuntu 上还需要 APM 包吗？还是记住以下几个命令和位置就行了。</p>
<p><code>sudo /etc/init.d/apache2 restart （重启 apache）</code></p>
<p><code>sudo gedit /etc/php5/apache2/php.ini （配置 php.ini）</code></p>
<p><code>sudo gedit /etc/apache2/apache2.conf （配置 apache2.conf）</code></p>
<p><code>/var/www/（主目录位置）</code><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/'>[转]开源PHP中文分词扩展:PHPCWS 1.0.0发布啦</a></li>
<li><a href='http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/'>linux安装awstats对apache日志进行监测</a></li>
<li><a href='http://www.pkphp.com/2008/09/29/ubuntu-remote-desktop-nxclient-nxserver-nxnode/'>如何实现ubuntu桌面远程控制？</a></li>
<li><a href='http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/'>apache中虚拟目录和虚拟主机设置</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/520zuixin-com-linux-secure-iptables/'>如何防止服务器被暴力破解密码？</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(5)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu php apache mysql" style="font-size: 13px;">ubuntu php apache mysql</a>(32)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu php mysql" style="font-size: 13px;">ubuntu php mysql</a>(71)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu apache php" style="font-size: 13px;">ubuntu apache php</a>(108)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu apache php 安装" style="font-size: 13px;">ubuntu apache php 安装</a>(10)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="apache php" style="font-size: 13px;">apache php</a>(4)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu php配置" style="font-size: 13px;">ubuntu php配置</a>(31)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu下php apache安装" style="font-size: 13px;">ubuntu下php apache安装</a>(1)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="apache 配置" style="font-size: 13px;">apache 配置</a>(4)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="php 安装" style="font-size: 13px;">php 安装</a>(3)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="Ubuntu PHP" style="font-size: 13px;">Ubuntu PHP</a>(33)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu mysql" style="font-size: 13px;">ubuntu mysql</a>(13)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu 设置apache" style="font-size: 13px;">ubuntu 设置apache</a>(1)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="apache,php,mysql 安装" style="font-size: 13px;">apache,php,mysql 安装</a>(1)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu mysql php apache" style="font-size: 13px;">ubuntu mysql php apache</a>(8)<br /><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%2Fwww.pkphp.com%2F2008%2F06%2F05%2Fapache2-mod_ssl-php5-%25E5%25AE%258C%25E5%2585%25A8%25E5%25AE%2589%25E8%25A3%2585%25E5%25AE%259E%25E5%25BD%2595%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache2 + mod_ssl + php5 完全安装实录</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%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</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%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2Fwww.pkphp.com%2F2008%2F04%2F27%2F%25E8%25AE%25A9mysql-%25E4%25B8%258E-apache-%25E5%259C%25A8%25E7%25B3%25BB%25E7%25BB%259F%25E5%2590%25AF%25E5%258A%25A8%25E6%2597%25B6%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%2590%25E8%25A1%258C%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">让mysql 与 apache 在系统启动时自动运行</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="无觅相关文章插件" rel="nofollow">
                <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://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>linux下为什么0777的文件夹和文件apache无法写入呢？</title>
		<link>http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/</link>
		<comments>http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 16:53:58 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[百宝箱]]></category>
		<category><![CDATA[0777]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nobody]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=387</guid>
		<description><![CDATA[原来以为只要是0777的文件夹都可以写入，没想到还与所有者有关系。解决这个问题的办法是把文件夹或者文件的所有者设置为httpd的用户，具体命令：

chmod -Rf nobody ./<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%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F">
                        <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%2Fwww.pkphp.com%2F2008%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2Fwww.pkphp.com%2F2008%2F04%2F23%2Flinux%25E4%25B8%258B%25E8%25AE%25A9apache%25E6%2594%25AF%25E6%258C%2581mod_rewrite%25E6%25A8%25A1%25E5%259D%2597%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下让apache支持mod_rewrite模块</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>原来以为只要是0777的文件夹都可以写入，没想到还与所有者有关系。解决这个问题的办法是把文件夹或者文件的所有者设置为httpd的用户，具体命令：</p>
<p><code>chmod -Rf nobody ./</code><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/'>apache中虚拟目录和虚拟主机设置</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/linux%e4%b8%8b%e7%9a%84%e8%84%9a%e6%9c%ac%e6%96%87%e4%bb%b6%e8%a6%81%e6%b3%a8%e6%84%8f%e6%8d%a2%e8%a1%8c%e7%ac%a6%e4%b8%8ewindows%e4%b8%8d%e5%90%8c%ef%bc%81/'>linux下的脚本文件要注意换行符与Windows不同！</a></li>
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/'>linux下如何重启动网络服务</a></li>
<li><a href='http://www.pkphp.com/2008/10/06/svn-authentication-realm/'>svn错误：Authentication realm 解决办法</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux" style="font-size: 13px;">linux</a>(3)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux nobody" style="font-size: 13px;">linux nobody</a>(11)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="ubuntu php 写入文件" style="font-size: 13px;">ubuntu php 写入文件</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 文件夹 Nobody" style="font-size: 13px;">linux 文件夹 Nobody</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="php 文件夹所有者是apache" style="font-size: 13px;">php 文件夹所有者是apache</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 0777" style="font-size: 13px;">linux 0777</a>(9)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 搜索 可以写入的文件" style="font-size: 13px;">linux 搜索 可以写入的文件</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 文件无法写入" style="font-size: 13px;">linux 文件无法写入</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux chmod nobody" style="font-size: 13px;">linux chmod nobody</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 无法写文件" style="font-size: 13px;">linux 无法写文件</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="php文件夹 权限 0777" style="font-size: 13px;">php文件夹 权限 0777</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="apache 無法寫入" style="font-size: 13px;">apache 無法寫入</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="网站目录下无法写入文件 php" style="font-size: 13px;">网站目录下无法写入文件 php</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="nobody linux" style="font-size: 13px;">nobody linux</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux php无法写入文件" style="font-size: 13px;">linux php无法写入文件</a>(2)<br /><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%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F" rel="nofollow">
                        <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%2Fwww.pkphp.com%2F2008%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2Fwww.pkphp.com%2F2008%2F04%2F23%2Flinux%25E4%25B8%258B%25E8%25AE%25A9apache%25E6%2594%25AF%25E6%258C%2581mod_rewrite%25E6%25A8%25A1%25E5%259D%2597%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下让apache支持mod_rewrite模块</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="无觅相关文章插件" rel="nofollow">
                <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://www.pkphp.com/2008/08/05/linux-0777-write-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

