<?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>网络工作部 &#124; 网工部 &#124; 四川农业大学</title>
	<atom:link href="http://wlb.sicau.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlb.sicau.org</link>
	<description>——四川农业大学</description>
	<lastBuildDate>Wed, 08 Sep 2010 07:58:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>IIS php筛选器php5isapi.dll加载失败</title>
		<link>http://wlb.sicau.org/2010/09/iis-php-php5isapi-dll/</link>
		<comments>http://wlb.sicau.org/2010/09/iis-php-php5isapi-dll/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 07:58:48 +0000</pubDate>
		<dc:creator>耗子吴</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=231</guid>
		<description><![CDATA[<p>原因:服务器做了安全设置,把d:\php的everyone权限去掉了,IIS自然没法加载php5isapi.dll。</p>
<p>解决办法:d:\php目录加上everyone用户 设置权限为:只读就可以了.</p>]]></description>
			<content:encoded><![CDATA[<p>原因:服务器做了安全设置,把d:\php的everyone权限去掉了,IIS自然没法加载php5isapi.dll。</p>
<p>解决办法:d:\php目录加上everyone用户 设置权限为:只读就可以了.</p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/09/iis-php-php5isapi-dll/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress用caption属性给图片说明加边框</title>
		<link>http://wlb.sicau.org/2010/08/wordpress%e7%94%a8caption%e5%b1%9e%e6%80%a7%e7%bb%99%e5%9b%be%e7%89%87%e8%af%b4%e6%98%8e%e5%8a%a0%e8%be%b9%e6%a1%86/</link>
		<comments>http://wlb.sicau.org/2010/08/wordpress%e7%94%a8caption%e5%b1%9e%e6%80%a7%e7%bb%99%e5%9b%be%e7%89%87%e8%af%b4%e6%98%8e%e5%8a%a0%e8%be%b9%e6%a1%86/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 13:11:43 +0000</pubDate>
		<dc:creator>耗子吴</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[图片]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=217</guid>
		<description><![CDATA[每次在Wordpress编辑器中用了caption属性的图片都可以完好地显示描述边框，但是发布后无论在Firefox还是在IE各版本下的浏 览器都没有这个效果了。这么炫的效果没能实现很可惜。
今天路过别家博客的时候无意中发现别人居然能使用这一效果，我心理一下子就不平衡了，决心也要把这描述边框整出来！[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/08/wordpress%e7%94%a8caption%e5%b1%9e%e6%80%a7%e7%bb%99%e5%9b%be%e7%89%87%e8%af%b4%e6%98%8e%e5%8a%a0%e8%be%b9%e6%a1%86/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>每次在Wordpress编辑器中用了caption属性的图片都可以完好地显示描述边框，但是发布后无论在Firefox还是在IE各版本下的浏 览器都没有这个效果了。这么炫的效果没能实现很可惜。</p>
<p>今天路过别家博客的时候无意中发现别人居然能使用这一效果，我心理一下子就不平衡了，决心也要把这描述边框整出来！在这一点上，Firefox 给我们带来了无比的便利，我“偷窥”了一下该站的CSS代码和自己的CSS比较了一下，原来我的主题style.css中没有配备caption的样式， 难怪不能实现图片的描述边框了，如此简单的道理却困扰了我这么久。</p>
<p>既然已经“偷窥”了，就索性“偷”个彻底，我把他家的style.css中的caption属性都整理出来安在自家的style.css上了。 果然，完美地实现了给日志图片加描述边框的效果，在Firefox下还有个微微的圆角，很不错，自己赞一个。之后我又找到在Wordpress的官方网站 上也有这段<a rel="external nofollow" href="http://codex.wordpress.org/CSS#WordPress_Generated_Classes" target="_blank">代码的介绍</a>，喜欢这个效果的朋友直接把下面的代码复制到style.css中就可以了，你也可以根据需要稍加修 改。</p>
<div id="codee_html">
<blockquote>
<div>.aligncenter,<br />
div.aligncenter {<br />
display: block;<br />
margin-left: auto;<br />
margin-right: auto;<br />
}.alignleft {<br />
float: left;<br />
}</p>
<p>.alignright {<br />
float: right;<br />
}</p>
<p>.wp-caption {<br />
border: 1px solid #ddd;<br />
text-align: center;<br />
background-color: #f3f3f3;<br />
padding-top: 4px;<br />
margin: 10px;<br />
/* optional  rounded corners for browsers that support it */<br />
-moz-border-radius: 3px;<br />
-khtml-border-radius: 3px;<br />
-webkit-border-radius: 3px;<br />
border-radius: 3px;<br />
}</p>
<p>.wp-caption img {<br />
margin: 0;<br />
padding: 0;<br />
border: 0 none;<br />
}</p>
</div>
<p>.wp-caption p.wp-caption-text {<br />
font-size: 11px;<br />
line-height: 17px;<br />
padding: 0 4px 5px;<br />
margin: 0;<br />
}</p></blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/08/wordpress%e7%94%a8caption%e5%b1%9e%e6%80%a7%e7%bb%99%e5%9b%be%e7%89%87%e8%af%b4%e6%98%8e%e5%8a%a0%e8%be%b9%e6%a1%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让WordPress 后台显示日志浏览量</title>
		<link>http://wlb.sicau.org/2010/08/wordpress-post-views/</link>
		<comments>http://wlb.sicau.org/2010/08/wordpress-post-views/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 02:12:19 +0000</pubDate>
		<dc:creator>耗子吴</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WP-Postviews]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=194</guid>
		<description><![CDATA[<strong>WP-Postviews</strong>这个 WordPress 插件可以对每篇日志的点击数进行统计，但是 PostViews 这个插件有点不好的地方就是不能在后台日志列表页面显示点击数，今天我查了下 WordPress 的 Hook，通过以下代码实现了这个功能：

add_filter('manage_posts[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/08/wordpress-post-views/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>WP-Postviews</strong>这个 WordPress 插件可以对每篇日志的点击数进行统计，但是 PostViews 这个插件有点不好的地方就是不能在后台日志列表页面显示点击数，今天我查了下 WordPress 的 Hook，通过以下代码实现了这个功能：</p>
<blockquote>
<pre>add_filter('manage_posts_columns', 'postviews_admin_add_column');
function postviews_admin_add_column($columns){
    $columns['views'] = __('Views');
    return $columns;
}
add_action('manage_posts_custom_column','postviews_admin_show',10,2);
function postviews_admin_show($column_name,$id){
    if ($column_name != 'views')
        return;
    $post_views = get_post_meta($id, "views",true);
    echo $post_views;
}
</pre>
</blockquote>
<p>你只需将上面的代码复制到你的 PostViews 插件的原文件或者主题的<strong>function.php</strong> 中即可。最终效果让你可以在 WordPress 后台日志列表页面查看每篇日志的点击数，如下图所示：</p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/08/1.jpg"><img class="alignnone size-full wp-image-197" title="wordpress-post views" src="http://wlb.sicau.org/wp-content/uploads/2010/08/1.jpg" alt="" width="550" height="267" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/08/wordpress-post-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>有关dedecms乱码的问题！！</title>
		<link>http://wlb.sicau.org/2010/08/%e6%9c%89%e5%85%b3dedecms%e4%b9%b1%e7%a0%81%e7%9a%84%e9%97%ae%e9%a2%98%ef%bc%81%ef%bc%81/</link>
		<comments>http://wlb.sicau.org/2010/08/%e6%9c%89%e5%85%b3dedecms%e4%b9%b1%e7%a0%81%e7%9a%84%e9%97%ae%e9%a2%98%ef%bc%81%ef%bc%81/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 14:52:48 +0000</pubDate>
		<dc:creator>hewei</dc:creator>
				<category><![CDATA[cms应用]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[乱码]]></category>
		<category><![CDATA[织梦]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=191</guid>
		<description><![CDATA[有句话，今晚体会深刻啊！不知者无罪啊！感叹！！今天做织梦的cms的模板，我用Dreamweaver改好后直接去替换default目录下的index.htm，在浏览器输入localhost后网站出现了乱码，头痛啊！我记得我在用WordPress做网站的时候也遇到过这个问题，但是在做dedecms的时候[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/08/%e6%9c%89%e5%85%b3dedecms%e4%b9%b1%e7%a0%81%e7%9a%84%e9%97%ae%e9%a2%98%ef%bc%81%ef%bc%81/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>有句话，今晚体会深刻啊！不知者无罪啊！感叹！！今天做织梦的cms的模板，我用Dreamweaver改好后直接去替换default目录下的index.htm，在浏览器输入localhost后网站出现了乱码，头痛啊！我记得我在用WordPress做网站的时候也遇到过这个问题，但是在做dedecms的时候没有想起，所以解决这个问题的花的时间就稍微用多有点久。我在网上Google了一哈，竟然就只有一篇文章简单的提了一下，这可把我给气的啊。简直是不知道如何是好了，在这个关键的时候，我想起了之前用WordPress做网站的时候出现的乱码问题，我记得当时耗子吴给我说了在那里改就不会出现乱码的时候我当时只苦笑了一下，就那个简单啊，我弄了那么久。只要在网站的后台修改模板就没有乱码了，或者说是如果你在网上下载的模板，用到自己的网站的时候出现了乱码问题，那么你就把出现的乱码在后台修改了就ok了。当你用Dreamweaver修改或者说是记事本修改保存的时候就已经出现了乱码。<strong>所以，总结一句，在后台修改，就没有乱码了</strong>！！</p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/08/%e6%9c%89%e5%85%b3dedecms%e4%b9%b1%e7%a0%81%e7%9a%84%e9%97%ae%e9%a2%98%ef%bc%81%ef%bc%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>有关织梦cms后台管理员忘记密码的问题</title>
		<link>http://wlb.sicau.org/2010/07/%e6%9c%89%e5%85%b3%e7%bb%87%e6%a2%a6cms%e5%90%8e%e5%8f%b0%e7%ae%a1%e7%90%86%e5%91%98%e5%bf%98%e8%ae%b0%e5%af%86%e7%a0%81%e7%9a%84%e9%97%ae%e9%a2%98/</link>
		<comments>http://wlb.sicau.org/2010/07/%e6%9c%89%e5%85%b3%e7%bb%87%e6%a2%a6cms%e5%90%8e%e5%8f%b0%e7%ae%a1%e7%90%86%e5%91%98%e5%bf%98%e8%ae%b0%e5%af%86%e7%a0%81%e7%9a%84%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 03:19:07 +0000</pubDate>
		<dc:creator>hewei</dc:creator>
				<category><![CDATA[cms应用]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[密码]]></category>
		<category><![CDATA[管理员]]></category>
		<category><![CDATA[织梦]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=186</guid>
		<description><![CDATA[第二次安装织梦cms的过程中，我忘记记录或者说更改后台登陆密码了，想登陆后台&#8230;..就是问题了。在网上一搜索，有关这类似的帖子还是比较多！在此记录只是为了我们办公室以后有同志学习织梦cms提供方便。具体方法如下：
1.到织梦cms论坛网站下载一个名叫radminpass.rar的文件。官方[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/07/%e6%9c%89%e5%85%b3%e7%bb%87%e6%a2%a6cms%e5%90%8e%e5%8f%b0%e7%ae%a1%e7%90%86%e5%91%98%e5%bf%98%e8%ae%b0%e5%af%86%e7%a0%81%e7%9a%84%e9%97%ae%e9%a2%98/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>第二次安装织梦cms的过程中，我忘记记录或者说更改后台登陆密码了，想登陆后台&#8230;..就是问题了。在网上一搜索，有关这类似的帖子还是比较多！在此记录只是为了我们办公室以后有同志学习织梦cms提供方便。具体方法如下：<br />
1.到织梦cms论坛网站下载一个名叫radminpass.rar的文件。官方网站只有一个连接，到论坛的，但是论坛需要注册才有权限下载。<br />
2.下载，解压后。里面有连个文件，一个是GBK的另一个是UTF-8的，具体要看你的网站是哪个一个格式的哈。是哪个格式就用哪个里面的radminpass.php文件。将这个文件放到uploads文件夹下面。<br />
3.到浏览器里输入，指向radminpass.php这个文件就ok了好哈，它会提示你怎么修改哈，也很简单。就是特别注意如果你是服务器网站上的网站的话那你用了那个文件后必须删除哦，不然你的网站就很危险哦！！！！！！！</p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/07/%e6%9c%89%e5%85%b3%e7%bb%87%e6%a2%a6cms%e5%90%8e%e5%8f%b0%e7%ae%a1%e7%90%86%e5%91%98%e5%bf%98%e8%ae%b0%e5%af%86%e7%a0%81%e7%9a%84%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows下手动配置Apache+PHP</title>
		<link>http://wlb.sicau.org/2010/06/windows-apache-php/</link>
		<comments>http://wlb.sicau.org/2010/06/windows-apache-php/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 13:34:10 +0000</pubDate>
		<dc:creator>耗子吴</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=179</guid>
		<description><![CDATA[安装apache的时候遇到错误提示：
“（OS 10048)通常每个套接字地址 (协议/网络地址/端口) 只允许使用一次:
make_sock: could not bind to address 0.0.0.0:80&#8230;”
查看程序端口，发现是Thunder 监听80端口，关闭thund[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/06/windows-apache-php/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">安装apache的时候遇到错误提示：</div>
<div id="_mcePaste">“（OS 10048)通常每个套接字地址 (协议/网络地址/端口) 只允许使用一次:</div>
<div id="_mcePaste">make_sock: could not bind to address 0.0.0.0:80&#8230;”</div>
<div id="_mcePaste">查看程序端口，发现是Thunder 监听80端口，关闭thunder，即可安装Apache2</div>
<div id="_mcePaste">附其他分析办法：</div>
<div id="_mcePaste">一般是IIS或其他程序占用了80端口引起的</div>
<div id="_mcePaste">分析：</div>
<div id="_mcePaste">netstat -a</div>
<div id="_mcePaste">查看相应端口，是否有程序占用</div>
<div id="_mcePaste">netstat -ab</div>
<div id="_mcePaste">查看具体占用程序</div>
<div id="_mcePaste">两种解决方法:</div>
<div id="_mcePaste">1、打开 控制面板-&gt;服务 找到 IIS admin 等相应服务 关闭并禁用</div>
<div id="_mcePaste">2、如果不想关闭IIS服务 可将apache使用的端口改成其它端口</div>
<div id="_mcePaste">将apache2/conf/httpd.conf 中的</div>
<div id="_mcePaste">Listen 80 改为 Listen （你要使用的端口） 如 Listen 8080</div>
<div id="_mcePaste">不过这时在你访问你的apache 下的Web服务时 在域名后要加上端口号</div>
<div id="_mcePaste">如： http://localhost:8080</div>
<div id="_mcePaste">然后用CMD进入命令行模式 进入你安装apache的目录 /apache2/bin</div>
<div id="_mcePaste">输入</div>
<div id="_mcePaste"><strong>httpd  -k install</strong></div>
<div id="_mcePaste"><strong>httpd  -k start</strong></div>
<p>一定进行这一步，否则依旧是错误。</p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><strong>配置Apache、PHP</strong><br style="line-height: normal;" /> 安装PHP很简单，但是主要的挑战在于Apache和PHP的协作配置上,这是配置PHP运行环境整个过程的重点，也是难点。<br style="line-height: normal;" /><br style="line-height: normal;" />为了后面说明的更容易，在此我先把本人配置PHP运行环境时各软件安装目录先说明一下：<br style="line-height: normal;" />apache目录为:C:/apache, php目录为C:/php, mysql目录为C:/mysql, 存放PHP文件的文档目录为：E:/myphp。<br style="line-height: normal;" /><strong>一、php的安装：</strong></span></p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><strong> </strong>php目录里找到php.ini-dist 重命名为 php.ini 并拷到 windows系统目录下(特殊情况:win2k系统目录为winnt)如我的php.ini是拷到 c:/windows目录</span></p>
<p><span style="font-family: Arial; color: #494040; font-size: medium;"><span style="line-height: normal; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; color: #000000; font-size: small;"><span style="line-height: 19px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px;"><br />
</span></span></span></span></p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">再将php安装目录里的 php5ts.dll,libmysql.dll,libmcrypt.dll,libmhash.dll拷到 系统目录系统目录如我的是c:/windows 里(也可以是c:/windows/system32,php.ini也可以放在c:/windows/system32里。不过本人一直认为打开c:/windows这个文件夹比打开c:/windows/system32这个文件夹时间来得更快，所以本人一直用c:/windows)。</span></p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">先说明一下：php5ts.dll,libmysql.dll这两年文件在其它的PHP环境配置教程里常看到，libmcrypt.dll,libmhash.dll这两个文件却看不到，不过最新版的phpmyadmin运行需要这个环境，所以—-。<br style="line-height: normal;" />实际的操作上，我总是先把php5ts.dll,libmysql.dll,libmcrypt.dll,libmhash.dll拷到c:/windows里,然后将php.ini配置好再把php.ini拷到c:/windows里。<br style="line-height: normal;" /><strong>二、php.ini的配置：</strong><br style="line-height: normal;" />编辑php.ini，相应设置如下（记住先搜寻相应设置项，找到后再开始设置）：<br style="line-height: normal;" /><span style="line-height: 1.8em;">doc_root =&#8221;E:/myphp&#8221;</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">extension_dir =&#8221;C:/php/ext&#8221;</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">session.save_path = &#8220;C:/WINDOWS/Temp&#8221;</span><br style="line-height: normal;" />把你想要的extension前面的注释分号去掉，比如我的：<br style="line-height: normal;" /><span style="line-height: 1.8em;"><span style="line-height: normal;">extension=php_zip.dll</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">extension=php_gd2.dll</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">extension=php_sockets.dll</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">extension=php_mysql.dll</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">extension=php_mbstring.dll</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">extension=php_mcrypt.dll</span></span></span></p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><span style="line-height: 1.8em;"><span style="line-height: 1.8em;"> </span><br style="line-height: normal;" /></span><strong>三、配置Apache文件httpd.conf</strong><br style="line-height: normal;" />该文件路径为：C:\Apache2\conf\httpd.conf（一般在WIN开始菜单里的程序菜单里就能找到httpd.conf的快捷方式）。<br style="line-height: normal;" /><strong>更改默认www文件夹：</strong>找到DocumentRoot”C:/Apache2/htdocs”，将其改为：DocumentRoot “E:/myphp”。<br style="line-height: normal;" />找到&lt;Directory “C:/Apache2/htdocs”&gt;将其改为：&lt;Directory “E:/myphp”&gt;<br style="line-height: normal;" /><strong> </strong></span></p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><strong>添加PHP支持</strong></span></p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">找到“#LoadModule ssl_module modules/mod_ssl.so”，在后面一行增加：LoadModule php5_module “c:/php/php5apache2_2.dll”<br style="line-height: normal;" />找到“AddType application/x-gzip .gz .tgz”，在后面一行增加：AddType application/x-httpd-php .php<br style="line-height: normal;" /></span></p>
<p><strong>添加主页文档</strong></p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">找到<br style="line-height: normal;" /><span style="line-height: 1.8em;"><span style="line-height: normal;">&lt;IfModuledir_module&gt;</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">DirectoryIndex index.html</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">&lt;/IfModule&gt;</span><br style="line-height: normal;" /></span>将其改为：<br style="line-height: normal;" /><span style="line-height: 1.8em;"><span style="line-height: normal;">&lt;IfModuledir_module&gt;</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">DirectoryIndex index.php index.html index.htm</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">&lt;/IfModule&gt;</span><br style="line-height: normal;" /></span>以便Apache能够认到index.php的Welcome文件。</span></p>
<p><span style="font-family: Arial; line-height: normal; font-size: 14px; color: #494040; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><strong>配置端口：</strong>找到<br style="line-height: normal;" /><span style="line-height: 1.8em;"><span style="line-height: normal;">#Listen 12.34.56.78:80</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">Listen 80</span><br style="line-height: normal;" /></span>将80改为你需要的端口，一般情况是不用改的。（不过本人习惯将#Listen 12.34.56.78:80<br style="line-height: normal;" />改为：#Listen 127.0.0.1:80）<br style="line-height: normal;" />重启apache,在E:\myphp里放一个PHP文件index.php,其内容为：<br style="line-height: normal;" /><br style="line-height: normal;" /><span style="line-height: 1.8em;">&lt;?php</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">phpinfo();</span><br style="line-height: normal;" /><span style="line-height: 1.8em;">?&gt;</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/06/windows-apache-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows下配置Apache+PHP+MySQL</title>
		<link>http://wlb.sicau.org/2010/06/windows-apachephpmysql/</link>
		<comments>http://wlb.sicau.org/2010/06/windows-apachephpmysql/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 06:59:30 +0000</pubDate>
		<dc:creator>hewei</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=152</guid>
		<description><![CDATA[一. Apache的配置
1.到www.apache.org下载Apache服务器软件。也可点击这里下载<a href="http://hewei.ratwu.net/xiazhai/apache2.2.4.zip">Apache-2.2.4-win32-x86-no-ssl.msi</a>
2.安装，
<a href="http://wlb.sicau.org/wp-content/uploads/2010/06/1.jpg"><img class="alignnone size-medium wp-image-155" title="1" src="http://wlb.sicau.org/wp-content/uploads/2010/06/1-300x231.jpg" alt="" width="300" height="231" /></a>
<a href="http://wlb.sicau.org/wp-content/uploads/2010/06/1.jpg"></a>一直按next，到
<a href="http://wlb.sicau.org/wp-content/uploads/2010/06/2.png"><img class="alignnone size-medium wp-image-157" title="2" src="http://wlb.sicau.org/wp-content/uploads/2010/06/2-300x227.png" alt="" width="300" height="227" /></a>
<a href="http://wlb.sicau.org/wp-content/uploads/2010/06/2.png"></a>，选择“only for the current,on port 8080&#8230;&#[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/06/windows-apachephpmysql/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>一. Apache的配置</p>
<p>1.到www.apache.org下载Apache服务器软件。也可点击这里下载<a href="http://hewei.ratwu.net/xiazhai/apache2.2.4.zip">Apache-2.2.4-win32-x86-no-ssl.msi</a><br />
2.安装，</p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/1.jpg"><img class="alignnone size-medium wp-image-155" title="1" src="http://wlb.sicau.org/wp-content/uploads/2010/06/1-300x231.jpg" alt="" width="300" height="231" /></a></p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/1.jpg"></a>一直按next，到</p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/2.png"><img class="alignnone size-medium wp-image-157" title="2" src="http://wlb.sicau.org/wp-content/uploads/2010/06/2-300x227.png" alt="" width="300" height="227" /></a></p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/2.png"></a>，选择“only for the current,on port 8080&#8230;&#8230;.”（即选用的是8080端口，因为现在有些软件是使用的80端口<br />
，避免出现冲突就选用8080端口&#8211;作者建议）<br />
3.当到</p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/3.png"><img class="alignnone size-medium wp-image-160" title="3" src="http://wlb.sicau.org/wp-content/uploads/2010/06/3-300x230.png" alt="" width="300" height="230" /></a></p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/3.png"></a>setup type界面时选择custom。<br />
4.在选择路径时，我选用的是D:\Apache2.2\。</p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/4.png"><img class="alignnone size-medium wp-image-161" title="4" src="http://wlb.sicau.org/wp-content/uploads/2010/06/4-300x229.png" alt="" width="300" height="229" /></a><br />
5.安装完后。成到D盘的Apache2.2文件下面的bin文件里面，运行httpd.exe。<br />
6.到浏览器输入http://localhost:8080/。马上就会显示出你想看到的界面<a href="http://wlb.sicau.org/wp-content/uploads/2010/06/6.png"><img class="alignnone size-medium wp-image-163" title="6" src="http://wlb.sicau.org/wp-content/uploads/2010/06/6-300x195.png" alt="" width="300" height="195" /></a>。<br />
二.安装与配置PHP环境<br />
1.到www.php.net下载PHP文件。也可以点击这里下载<a href="http://hewei.ratwu.net/xiazhai/php-5.3.1-Win32-VC9-x86.zip">PHP-5.25-win32-install.msi</a><br />
2.下载后安装到D:\PHP\</p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/7.png"><img class="alignnone size-medium wp-image-166" title="7" src="http://wlb.sicau.org/wp-content/uploads/2010/06/7-300x234.png" alt="" width="300" height="234" /></a></p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/7.png"></a>&#8230;&#8230;.当到</p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/8.png"><img class="alignnone size-medium wp-image-168" title="8" src="http://wlb.sicau.org/wp-content/uploads/2010/06/8-300x233.png" alt="" width="300" height="233" /></a></p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/8.png"></a>选择Apache2.2xModule。<br />
3.到Apache configuration directory页面时，路径选择D:\apache2.2\<a href="http://wlb.sicau.org/wp-content/uploads/2010/06/9.png"><img class="alignnone size-medium wp-image-169" title="9" src="http://wlb.sicau.org/wp-content/uploads/2010/06/9-300x131.png" alt="" width="300" height="131" /></a><br />
4.Select the way you want features to be installed页面下的路径选择D:\PHP\<br />
5.进入到D:\Apache2.2\conf文件下查看http.conf信息。<br />
6.进入D：\apache2.2\htdocs文件夹下，创建一个test.php文件。其内容是   (?php<br />
phpinfo();<br />
?&gt;<br />
7.进入D:\PHP\打开php.ini配置文件。修改其中的short_open_tag=Off改成short_open_tag=On<br />
8.打开浏览输入http://localhost:8080/test.php<br />
你将看到的是你的PHP服务器的各种配置。<br />
三.安装和测试MySQL数据库<br />
1.下载MySQL  www.mysql.com  点击这里也可以下载<a href="http://hewei.ratwu.net/xiazhai/mysql-essential-5.1.40-win32.zip">mysql-essential-5.1.40-win32.zip</a><br />
2.解压安装，到下图时候，选择custom。</p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/10.png"><img class="alignnone size-medium wp-image-176" title="10" src="http://wlb.sicau.org/wp-content/uploads/2010/06/10-300x229.png" alt="" width="300" height="229" /></a></p>
<p><a href="http://wlb.sicau.org/wp-content/uploads/2010/06/10.png"></a>安装到D:\MySQL\<br />
一路安装即可哈。到现在为止，你的php服务器就算基本完成了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/06/windows-apachephpmysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最近团委服务器的问题及解决方法</title>
		<link>http://wlb.sicau.org/2010/06/tw-sicau-errors/</link>
		<comments>http://wlb.sicau.org/2010/06/tw-sicau-errors/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 07:43:41 +0000</pubDate>
		<dc:creator>耗子吴</dc:creator>
				<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=149</guid>
		<description><![CDATA[最近团委服务器总是出问题，前后大概有一周了。到现在总算一一解决。记录在此，方便以后网工部同学查看，以便有参考的解决方法。
1、<strong>硬盘问题</strong>。
这学期开学初就出现了很严重的硬盘故障，以至于网络中心老师想办法都没有解决，最后把服务器搬到校外才完成的数据恢复，这次有出现了硬盘故障，重装系统以后（ghost恢复[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/06/tw-sicau-errors/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>最近团委服务器总是出问题，前后大概有一周了。到现在总算一一解决。记录在此，方便以后网工部同学查看，以便有参考的解决方法。</p>
<p>1、<strong>硬盘问题</strong>。</p>
<p>这学期开学初就出现了很严重的硬盘故障，以至于网络中心老师想办法都没有解决，最后把服务器搬到校外才完成的数据恢复，这次有出现了硬盘故障，重装系统以后（ghost恢复）就只能看到C盘了，用系统自带的磁盘管理给其他盘分配盘符，D盘可以正常分配，一旦给E盘分配盘符，机器就马上卡死，重启后就进不了系统了。及时安装磁盘管理工具<a href="http://www.onlinedown.net/soft/9570.htm" target="_blank">DiskGenius</a>也无济于事。</p>
<p>最后的<strong>解决方法</strong>：进入DOS工具箱的一个dos环境下的分区工具（忘记名字了，DOS下直接格式化应该也可以），把E盘和F盘格式化，再进Windows2003，再格式化一遍，分配盘符，OK。</p>
<p>这个问题的难点是，这是服务器什么接口的硬盘，用PE系统进会提示缺少hpxxxx.sys(没记清楚名字)驱动，然后就进不了PE，功能强大点的PE系统，能进得去，但是识别不了电脑上的硬盘。如果用Windows2003或者XP的原版安装盘格式化硬盘，只能发现C盘，更别提格式化其他盘了。</p>
<p>还好的是能进入DOS，而且可以识别服务器硬盘，这时候平时罕用的DOS命令就大显身手了。</p>
<p>雨林木风、深度、萝卜家园那些制作的光盘真的很好用，集成的维护工具特别多，DOS界面很多都给你中文化了，还集成很多DOS环境下的工具。即使咱不用它的系统，这个工具也绝对是必备的。</p>
<p><strong>2、联网问题。</strong></p>
<p>搬动显示器的功夫，就把服务器重启了，看日志、找原因。最后惊愕的发现，不能联网是因为网线松脱了！</p>
<p>今天下午网站又打不开，ping不通，网卡灯也在闪，就是连不起网。ping网关，不通。网络中心老师的提示下，禁用掉网卡再启用，稍等两分钟后恢复。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/06/tw-sicau-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>discuz的MYSQL连接错误问题</title>
		<link>http://wlb.sicau.org/2010/06/discuz-mysql-error/</link>
		<comments>http://wlb.sicau.org/2010/06/discuz-mysql-error/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 03:55:34 +0000</pubDate>
		<dc:creator>耗子吴</dc:creator>
				<category><![CDATA[cms应用]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=145</guid>
		<description><![CDATA[最近<a href="http://bt.sicau.org" target="_blank">思可觅</a>论坛总是会出现mysql连接错误，提示Can’t connect to MySQL server on ‘localhost’ (10061)，刷新页面又会马上恢复。
原因:微软9月9日发布了TCP/IP更新补丁（KB967723），如果服务器开启自动更新或者有自动更新软件下载更新了这个补[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/06/discuz-mysql-error/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>最近<a href="http://bt.sicau.org" target="_blank">思可觅</a>论坛总是会出现mysql连接错误，提示Can’t connect to MySQL server on ‘localhost’ (10061)，刷新页面又会马上恢复。</p>
<p>原因:微软9月9日发布了TCP/IP更新补丁（KB967723），如果服务器开启自动更新或者有自动更新软件下载更新了这个补丁，那么就会出现这个问题。有人可能会问，为什么9号出现的补丁，到现在才发现问题？大家都知道，服务器不是每天都重启的，有的服务器可能一个月或者一年半载重启一次，有的可能在9月9日以后重启过服务器，所以补丁生效了（我个人这么认为）。<strong>症状：</strong> Can’t connect to MySQL server on ‘localhost’ (10061)</p>
<p><strong>解决方案：</strong></p>
<p>老方法：卸载KB967723<strong>补丁：</strong>登录服务器，进入控制面板 — 添加和删除程序 — （勾选上方的“显示更新”）在里面可以看到更新的KB967723这个补丁，然后就想卸载普通软件一样卸载，卸载中会提示你，如果卸载可能导致程序运行出错，没关系，选择“是”，继续卸载。卸载完成后程序服务器，一切正常！</p>
<p><strong>新方法：微软给出…</strong><strong>重要 </strong>此部分、 方法，或任务包含告诉您如何修改注册表的步骤。 但是，如果错误地修改注册表，就可能发生严重的问题。 因此，请确保认真执行这些步骤。 添加的保护注册表之前先备份您修改它。 然后，发生问题时可以还原注册表。 有关如何备份和还原在注册表的详细信息，单击下面的文章编号，以查看 Microsoft 知识库中相应：</p>
<p>322756 (http://support.microsoft.com/kb/322756/ ) 如何备份和还原在 Windows 注册表</p>
<p>默认最大的临时 TCP 端口的数是 5000 适用于一节中包含的产品中。 在这些产品中添加一个新参数。 要提高临时端口的上限，请按照下列步骤操作：</p>
<ol>
<li>启动注册表编辑器。（开始—运行—REGEDIT）</li>
<li>在的注册表中找到以下子项，然后单击 <strong>参数 </strong>：HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters</li>
<li>在 <strong>编辑 </strong>菜单上单击 <strong>新建 </strong>，，，然后添加下面的注册表项：数值名称： <strong>MaxUserPort </strong><br />
值类型: DWORD<br />
值数据： 65534 (注意是十进制)<br />
有效范围： 5000-65534 (十进制)<br />
默认值： 0×1388 (5000 十进制)<br />
说明： 此参数将控制程序从系统请求任何可用的用户端口时使用的最大端口数。 通常，1024 的值和包含的 5000 之间分配临时的 （短) 端口。</li>
<li>退出注册表编辑器，并重新启动计算机。</li>
</ol>
<p><strong> 请注意 </strong>其他的 TCPTimedWaitDelay 注册表参数确定在多长时间关闭的端口等可重复使用已关闭的端口。 <strong>微软原文链接：<a href="http://support.microsoft.com/kb/q196271">http://support.microsoft.com/kb/q196271</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/06/discuz-mysql-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>discuz7.2 utf-8 帖子标题80字符限制完美解决方案</title>
		<link>http://wlb.sicau.org/2010/06/discuz7-2-utf-8-80/</link>
		<comments>http://wlb.sicau.org/2010/06/discuz7-2-utf-8-80/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 04:10:39 +0000</pubDate>
		<dc:creator>耗子吴</dc:creator>
				<category><![CDATA[cms应用]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[帖子标题80字符限制]]></category>

		<guid isPermaLink="false">http://wlb.sicau.org/?p=141</guid>
		<description><![CDATA[完美解决discuz7.0 utf-8版帖子标题只有26个字以上却报告超过80字符警告的问题！
以下是修改步骤：
以下修改都是相对论坛根目录的路径，也就是你上传到服务器的路径
include文件夹里面的js文件夹里面的post.js
查找
1. } else if(mb_strlen(theform[......]<p class='read-more'><a href='http://wlb.sicau.org/2010/06/discuz7-2-utf-8-80/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>完美解决discuz7.0 utf-8版帖子标题只有26个字以上却报告超过80字符警告的问题！<br />
以下是修改步骤：<br />
以下修改都是相对论坛根目录的路径，也就是你上传到服务器的路径<br />
include文件夹里面的js文件夹里面的post.js<br />
查找</p>
<p>1. } else if(mb_strlen(theform.subject.value) &gt; 80) {</p>
<p>复制代码<br />
将80改为255<br />
下面一行的</p>
<p>1. s = &#8216;您的标题超过 80 个字符的限制。&#8217;;</p>
<p>复制代码<br />
将80 改为85<br />
修改后的样子</p>
<p>1. } else if(mb_strlen(theform.subject.value) &gt; 255) {<br />
2. s = &#8216;您的标题超过 85 个字符的限制。&#8217;;</p>
<p>include文件夹js文件夹里面的viewthread.js<br />
查找</p>
<p>1. } else if(mb_strlen(theform.subject.value) &gt; 80) {<br />
2. dalert(&#8216;您的标题超过 80 个字符的限制。&#8217;);</p>
<p>参照上一个文件，改为下面的样子即可</p>
<p>1. } else if(mb_strlen(theform.subject.value) &gt; 255) {<br />
2. dalert(&#8216;您的标题超过 85 个字符的限制。&#8217;);</p>
<p>include文件夹里面的post.func.php<br />
查找</p>
<p>1. if(strlen($subject) &gt; 80) {</p>
<p>将80改为255<br />
成为</p>
<p>1. if(strlen($subject) &gt; 255) {</p>
<p>modcp文件夹里面的editpost.inc.php<br />
查找</p>
<p>1. if(strlen($subjectnew) &gt; 80) {</p>
<p>将80 改为255，也就是</p>
<p>1. if(strlen($subjectnew) &gt; 255) {</p>
<p>templates文件夹下的default文件夹里面的messages.lang.php<br />
查找</p>
<p>1. &#8216;post_subject_toolong&#8217; =&gt; &#8216;对不起，您的标题超过 80 个字符，请返回修改标题长度。&#8217;,</p>
<p>将80改为85，也就是</p>
<p>1. &#8216;post_subject_toolong&#8217; =&gt; &#8216;对不起，您的标题超过 85 个字符，请返回修改标题长度。&#8217;,</p>
<p>templates文件夹下的default文件夹里面的wap.lang.php<br />
查找</p>
<p>1. &#8216;post_subject_toolong&#8217; =&gt; &#8216;标题超过80字节&#8217;,</p>
<p>将80改为85，也就是</p>
<p>1. &#8216;post_subject_toolong&#8217; =&gt; &#8216;标题超过85字节&#8217;,</p>
<p>修改完后，以管理员身份进入论坛后台，找工具，数据库&#8212;-“升级”<br />
输入：<br />
ALTER TABLE `cdb_threads` CHANGE `subject` `subject` VARCHAR(255) NOT NULL;<br />
ALTER TABLE `cdb_posts` CHANGE `subject` `subject` VARCHAR(255) NOT NULL;</p>
<p>成功后，再更新一下缓存，即可，然后自己发一个标题字数为85个字的帖子试验一下，就可以了！<br />
注意：<br />
255就已经是最大数字了，不要再大过255，<br />
如果认为，标题不需要85个汉字，可以将其中的80改为你自己想要设定的数字，而以上修改中出现的255,就相应的改为你限定的数字再乘3即可，如<br />
你想要40个汉字，那么，凡是在修改中出现85的地方，改成40，凡是在修改中出现255的地方，改成120，就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlb.sicau.org/2010/06/discuz7-2-utf-8-80/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

