<!-- Free Hosting WebNG.com --> 
<center>
<script type="text/javascript" charset="utf-8">

  var redvase_ad = { version: 1.5 };

  redvase_ad.publisher = 'webng';

  redvase_ad.kind      = 'leaderboard';

  redvase_ad.content   = 'creative'

  redvase_ad.refurl    = encodeURI('**URL_HERE**');

  </script>

<script src="http://redvase.bravenet.com/javascripts/redvase.js" type="text/javascript" charset="utf-8"></script>

</center>
<!-- Free Hosting WebNG.com --> 
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[○白子○ 的Blog]]></title> 
    <link>http://www6.webng.com/seaboat/</link> 
    <description><![CDATA[关注互联网，拥抱开源，记录工作和生活的点点滴滴]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2009, ○白子○ 的Blog]]></copyright> 
    <webMaster><![CDATA[ouzhiwei@gmail.com (Jlake Ou)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Mon, 23 Nov 2009 04:35:17 -0500</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[Windows 下构建 PHP 开发环境： WampServer + Xdebug]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=764]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Wed, 30 Sep 2009 05:30:49 -0400</pubDate> 
      <description><![CDATA[1. 下载 WampServer <br />网址：　<a href="http://www.wampserver.com/en/download.php" title="http://www.wampserver.com/en/download.php" target="_blank">http://www.wampserver.com/en/download.php</a><br /><br />2. 安装 WampServer<br />Windows 的标准安装步骤，连续点“下一步”即可。<br /><br />3. 下载 Xdebug<br />网址：　<a href="http://xdebug.org/download.php" title="http://xdebug.org/download.php" target="_blank">http://xdebug.org/download.php</a><br /><br />页面上有好几个版本，刚开始一定会被迷惑，不知道该用哪个版本。<br />经过试验，我的环境（Windows XP）最终能用的是 5.3 VC6 (32 bit）。<br />（Apache 以外的服务器需用　nts 版本）<br /><br />下载之后把文件移动（或复制）到 WampServer 的 php 的 ext 目录。<br />]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=764]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Zend Framework 组件所需的 PHP 扩展模块]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=756]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Tue, 01 Sep 2009 20:46:57 -0400</pubDate> 
      <description><![CDATA[Zend Framework 的组件，不少要用到 PHP 的扩展模块。<br />详情见：<br /><a href="http://www.mikaelkael.fr/doczf/zh/requirements.extensions.html" title="http://www.mikaelkael.fr/doczf/zh/requirements.extensions.html" target="_blank">http://www.mikaelkael.fr/doczf/zh/requirements.extensions.html</a><br /><br />我整理了一下其中比较常用的模块，列举如下：<br /><br />apc<br />ctype<br />curl<br />dom<br />gd<br />hash<br />iconv<br />json<br />ldap<br />libxml<br />mbstring<br />memcache<br />mime_magic<br />pdo_mysql<br />pdo_pgsql<br />pdo_sqlite<br />posix<br />Reflection<br />session<br />SimpleXML<br />soap<br />SPL<br />Sqlite<br />xml<br />zlib<br /><br />搭建环境，编译 PHP 的时候，最好把以上模块包含进去，以免用到的时候再次编译 PHP。]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=756]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[通过 Subversion 的 hook 自动更新代码]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=751]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Mon, 27 Jul 2009 21:15:16 -0400</pubDate> 
      <description><![CDATA[用 subversion (以下简称 svn) 做版本管理，可以免去 ftp 上传代码的过程，具体方法是通过 svn 的 commit hook 自动更新代码。<br /><br />以下是设置的步骤:<br /><br />切换到 root 用户。<br /><span style="color:blue"># su -</span><br /><br />导出项目。<br /><span style="color:blue"># cd /home<br /># svn checkout  --username USER_NAME --password USER_PASS <a href="http://localhost/svn/PROJECT_NAME/trunk/" title="http://localhost/svn/PROJECT_NAME/trunk/" target="_blank">http://localhost/svn/PROJECT_NAME/trunk/</a> PROJECT_NAME<br /># chown -R USER_NAME PROJECT_NAME</span><br /><br />编写 shell 脚本。<br /><span style="color:blue"># vi /home/USER_NAME/bin/svn_auto_update.sh</span><br />输入<div class="code">#!/bin/sh</div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=751]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[CentOS 下安装配置 Subversion （简明实用）]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=747]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Wed, 08 Jul 2009 03:20:51 -0400</pubDate> 
      <description><![CDATA[用 yum 安装 apache 模块。<div class="code"># yum install mod_dav_svn</div>创建库。<div class="code"># cd /home<br /># mkdir svnrepo<br /># cd svnrepo<br /># svnadmin create project1<br /># svn mkdir file&#58;///home/svnrepo/project1/trunk file&#58;///home/svnrepo/project1/tags file&#58;///home/svnrepo/project1/branches -m &quot;initial repository layout&quot;</div>更改目录的所有者为 apache 用户。<div class="code"># chown -R apache.apache project1</div>创建用户认证文件（采用Digest）。 <br />]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=747]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[修复 Debian/Ubuntu/Mint 软件包依赖关系]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=741]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Sat, 23 May 2009 09:05:52 -0400</pubDate> 
      <description><![CDATA[在 Mint 下安装一些 deb 的软件包，把系统的依赖关系给搞乱了，结果再运行 apt-get 和 dpkg 都出错。<br />最后找到解决办法如下：<div class="code">sudo dpkg --configure -a<br />sudo aptitude -f remove<br />sudo apt-get update<br />sudo apt-get upgrade</div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=741]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[老系统(Redhat AS3)下编译安装 Subversion 1.5.5]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=720]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Wed, 24 Dec 2008 03:46:51 -0500</pubDate> 
      <description><![CDATA[<b>1. 下载</b><br /><br />wget <a href="http://subversion.tigris.org/downloads/subversion-1.5.5.tar.bz2" title="http://subversion.tigris.org/downloads/subversion-1.5.5.tar.bz2" target="_blank">http://subversion.tigris.org/downloads/subversion-1.5.5.tar.bz2</a><br />wget <a href="http://subversion.tigris.org/downloads/subversion-deps-1.5.5.tar.bz2" title="http://subversion.tigris.org/downloads/subversion-deps-1.5.5.tar.bz2" target="_blank">http://subversion.tigris.org/downloads/subversion-deps-1.5.5.tar.bz2</a><br /><br /><b>2. 编译安装</b><br /><br />tar -zxvf subversion-1.5.5.tar.bz2<br />tar -zxvf subversion-deps-1.5.5.tar.bz2<br />cd subversion-1.5.5<br />./configure<br />make<br /><br /><span style="color:orangered">报警：没有 Berkley DB</span><br /><br /><span style="color:red">出错：<br />/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory<br /></span>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=720]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[xCache 的安装及使用]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=681]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Fri, 25 Jan 2008 00:37:53 -0500</pubDate> 
      <description><![CDATA[<b>1. 安装</b><br /><span style="color:blue">$ wget <a href="http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz" title="http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz" target="_blank">http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz</a><br />$ tar -zxvf xcache-1.2.2.tar.gz<br />$ cd xcache-1.2.2<br />$ phpize<br />$ ./configure --enable-xcache --with-php-config=/usr/local/bin/php-config<br />$ make<br />$ make test<br />$ make install</span><br /><br /><b>2. PHP 的 ini 设置</b><br /><span style="color:blue">$ cd /usr/local/lib<br />$ cp php.ini php.ini.bak <br />$ vi php.ini</span><br />追加<div class="code">[xcache-common]<br />zend_extension </div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=681]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[eAccelerator 的安装及使用]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=680]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Thu, 24 Jan 2008 19:57:26 -0500</pubDate> 
      <description><![CDATA[<b>1. 安装</b><br /><span style="color:blue">$ wget <a href="http://nchc.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.2.tar.bz2" title="http://nchc.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.2.tar.bz2" target="_blank">http://nchc.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.2.tar.bz2</a><br />$ tar -jxvf eaccelerator-0.9.5.2.tar.bz2 <br />$ cd eaccelerator-0.9.5.2<br />$ phpize<br />$ ./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config<br />$ make<br />$ make test<br />$ make install</span><br /><br />若有必要，先安装 re2c：<br /><span style="color:blue">$ wget <a href="http://nchc.dl.sourceforge.net/sourceforge/re2c/re2c-0.12.3.tar.gz" title="http://nchc.dl.sourceforge.net/sourceforge/re2c/re2c-0.12.3.tar.gz" target="_blank">http://nchc.dl.sourceforge.net/sourceforge/re2c/re2c-0.12.3.tar.gz</a><br /></span>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=680]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[PHP: 带附件的邮件发送(转发)]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=665]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Wed, 05 Dec 2007 02:38:26 -0500</pubDate> 
      <description><![CDATA[以下代码，用到了Pear::Mail_Mime。<div class="code">&lt;?php<br />require_once &#39;Mail.php&#39;; <br />require_once &#39;Mail/mime.php&#39;; <br /><br />/**<br />&nbsp;* <br />&nbsp;* 邮件发送或转发（可带附件）*<br />&nbsp;* @param        $mail_info     :邮件内容*<br />&nbsp;* @param        $forward_to    :转发地址*<br />&nbsp;* @return       发送结果*<br />&nbsp;* @author       Jlake OU   2007/12/05<br />**/<br />function MAIL_forward($mail_info, $forward_to)<br />{<br />&nbsp;$mailObject = Mail::factory(&quot;mail&quot;);<br /><br />&nbsp;$mimeObject = new Mail_Mime(&quot;\n&quot;);</div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=665]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[vsftpd 服务启用 passive mode 的设定]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=664]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Tue, 04 Dec 2007 00:03:25 -0500</pubDate> 
      <description><![CDATA[连接 vsftpd 的服务器，总是报错，仔细一看，原来是不接受被动模式( passive mode )。<br />网上搜了一下，找到了解决办法：<br />在 vsftpd 的配置文件（一般是 /etc/vsftpd/vsftpd.conf）中追加<div class="code">#enable passive mode<br />pasv_min_port=40000<br />pasv_max_port=40080<br />pasv_promiscuous=YES</div>之后重启 vsftpd 即可。命令一般是：<br /><span style="color:blue">/etc/init.d/vsftpd restart</span><br /><br />当然了，被动模式的端口范围要根据实际情况而定，若有防火墙，要看防火墙的设定。]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=664]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
