<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>Black Drongo's Blog  </title>
<link>http://www.koven.org</link>
<description>MyTT CMS demo site. MyTTCMS: write in php, opensource,support multiple language,the most efficient php cms in the world. </description>
<language>en_US</language>
<pubDate>2010-07-06 14:49:21</pubDate>
<item>
<title>Lighttpd + PHP Install Manual</title>
<link>http://www.koven.org/blog/lighttpd-php-install-manual.html</link>
<description><![CDATA[<p><strong>1. Install Optional Package<br /></strong>yum -y install zlib zlib-devel pcre pcre-devel</p>

<p>Solutions to some configure errors:</p>

<p><strong>configure: error: C compiler cannot create executables<br /></strong>apt-get install libc6-dev.</p>

<p><strong>configure: error: configure: error: pcre-config not found</strong>apt-get install libpcre3-dev</p>

<p><strong>configure: error: zlib-headers and/or libs where not found<br /></strong>apt-get install zlib1g-dev</p>

<p><strong>configure: error: bzip2-headers and/or libs where not found<br /></strong>apt-get install libbz2-dev</p>

<p><strong>configure: error: bzip2-headers and/or libs where not found, install them or build with --without-bzip2<br /></strong>yum -y install bzip2 bzip2-devel</p>

<p><strong>2. Install Spawn-fcgi<br /></strong>wget http://www.lighttpd.net/download/spawn-fcgi-1.6.3.tar.bz2<br />./configure --prefix=/usr/local/spawn-fcgi<br />make<br />make install</p>

<p><strong>3. Install Lighttpd</strong>wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.26.tar.bz2<br />tar xjf lighttpd-1.4.26.tar.bz2<br />cd lighttpd-1.4.26<br />./configure --prefix=/usr/local/lighttpd --sysconfdir=/etc/lighttpd<br />make<br />make install</p>

<p>mkdir /etc/lighttpd<br />cp doc/lighttpd.conf /etc/lighttpd/<br />cp doc/rc.lighttpd.redhat /etc/init.d/lighttpd<br />mkdir /var/log/lighttpd<br />mkdir /usr/local/lighttpd/bin/<br />cp ./doc/spawn-php.sh /usr/local/lighttpd/bin/<br />chown -R lighttpd:lighttpd /usr/local/lighttpd</p>

<p>groupadd lighttpd<br />useradd -g lighttpd -s /sbin/nologin -d /dev/null lighttpd</p>

<p><strong>4. Install PHP</strong>./configure \<br />--prefix=/usr/local/php-fcgi \<br />--enable-fastcgi \<br />--enable-force-cgi-redirect \<br />--enable-inline-optimization \<br />--with-config-file-path=/etc \<br />--enable-calendar \<br />--enable-bcmath \<br />--enable-calendar \<br />--enable-exif \<br />--enable-ftp \<br />--enable-gd-native-ttf \<br />--enable-libxml \<br />--enable-magic-quotes \<br />--enable-mbstring \<br />--enable-soap \<br />--enable-sockets \<br />--enable-wddx \<br />--enable-zip \<br />--enable-sqlite-utf8 \<br />--with-freetype-dir=/usr \<br />--with-gd \<br />--with-gettext \<br />--with-jpeg-dir=/usr \<br />--with-libxml-dir=/usr \<br />--with-mysql=/usr/local/mysql \<br />--with-mysql-sock=/tmp/mysql.sock \<br />--with-mysqli=/usr/local/mysql/bin/mysql_config \<br />--with-openssl=/usr \<br />--with-openssl-dir=/usr \<br />--with-png-dir=/usr \<br />--with-xmlrpc \<br />--with-xpm-dir=/usr/X11R6 \<br />--with-zlib \<br />--with-zlib-dir=/usr \<br />--with-pdo-mysql=/usr/local/mysql \<br />--with-curl</p>...&nbsp;&nbsp;<a href="/blog/lighttpd-php-install-manual.html">More&gt;&gt;</a></p>]]></description>
<category><a href="/category/development.html">Development</a> - <a href="/category/lamp.html">Linux</a></category>
<author></author>
<pubDate>2010-05-19</pubDate>
</item>
<item>
<title>LAMP Configure Memo - For Debian And CentOS</title>
<link>http://www.koven.org/blog/lamp-configure-memo.html</link>
<description><![CDATA[<p><strong>1. Option Package Install</strong></p>

<p>yum install gcc<br />yum install gcc-c++<br />yum -y install ncurses-devel<br />yum -y install libxml2-devel<br />yum -y install zlib-devel openssl-devel<br />yum -y install gd<br />yum -y install gd-devel<br />yum -y install flex<br />yum -y install diffutils<br />yum -y install curl curl-devel</p>

<p>apt-get install libncurses5-dev&nbsp;&nbsp; <br />apt-get install libncursesw5-dev<br />apt-get install libcurl4-gnutls-dev</p>

<p><strong>2. MySQL Configure And Install</strong></p>

<p>./configure \<br />--prefix=/usr/local/mysql \<br />--localstatedir=/var/mysql \<br />--with-comment=Source \<br />--with-server-suffix=-enterprise-gpl \<br />--with-mysqld-user=mysql \<br />--without-debug \<br />--with-big-tables \<br />--with-charset=utf8 \<br />--with-collation=utf8_general_ci \<br />--with-extra-charsets=all \<br />--with-pthread \<br />--enable-static \<br />--enable-thread-safe-client \<br />--with-client-ldflags=-all-static \<br />--with-mysqld-ldflags=-all-static \<br />--enable-assembler \<br />--without-ndb-debug \<br />--enable-local-infile \<br />--with-readline</p>

<p># make<br /># make install<br /># useradd mysql<br /># cd /usr/local/mysql<br /># bin/mysql_install_db --user=mysql<br /># chown -R root:mysql .<br /># chown -R mysql /data/mysql<br /># chgrp -R mysql .<br /># cp share/mysql/my-medium.cnf /etc/my.cnf<br /># cp share/mysql/mysql.server /etc/init.d/mysqld<br /># chmod 755 /etc/init.d/mysqld<br /># chkconfig --add mysqld<br /># echo "/usr/local/mysql/lib" &gt;&gt; /etc/ld.so.conf &amp;&amp; ldconfig<br /># /etc/init.d/mysqld start<br /># ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql</p>

<p><strong>3. Apache Configure And Install</strong></p>

<p><strong>APR &amp; APR-UTIL<br /></strong>./configure --prefix=/usr/local/apr --enable-threads --enable-other-child --enable-static<br />./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/ --with-mysql=/usr/local/mysql</p>

<p><strong>Apache<br /></strong>./configure \<br />--prefix=/usr/local/apache2 \<br />--enable-mods-shared=all \<br />--enable-cache \<br />--enable-file-cache \<br />--enable-mem-cache \<br />--enable-disk-cache \<br />--enable-static-support \<br />--enable-static-htpasswd \<br />--enable-static-htdigest \<br />--enable-static-rotatelogs \<br />--enable-static-logresolve \<br />--enable-static-htdbm \<br />--enable-static-ab \<br />--enable-dav \<br />--enable-so \<br />--enable-static-checkgid \<br />--disable-cgid \<br />--disable-cgi \<br />--with-apr=/usr/local/apr/ \<br />--with-apr-util=/usr/local/apr-util/ \<br />--enable-ssl \<br />--with-ssl=/usr/include \<br />--with-pcre \<br />--sysconfdir=/etc/httpd</p>...&nbsp;&nbsp;<a href="/blog/lamp-configure-memo.html">More&gt;&gt;</a></p>]]></description>
<category><a href="/category/development.html">Development</a> - <a href="/category/lamp.html">Linux</a></category>
<author></author>
<pubDate>2010-05-06</pubDate>
</item>
<item>
<title>Sendmail+SpamAssassin+MIMEDefang Anti Spam Mail</title>
<link>http://www.koven.org/blog/sendmail-spamassassin-mimedefang-install-manual.html</link>
<description><![CDATA[<P>Install SpamAssassin and MIMEDefang need a lots of optional package, you can get it from <A href="http://search.cpan.org">http://search.cpan.org</A></P>
<P>1. Install SpamAssassin</P>
<P># groupadd spamd<BR># useradd -g spamd -s /bin/false spamd<BR># tar xzvf Mail-SpamAssassin-3.0.2.tar.gz<BR># cd Mail-SpamAssassin-3.0.2<BR># export LC_ALL=C<BR># perl Makefile.PL<BR># make<BR># make install<BR># cp spamd/redhat-rc-script.sh /etc/rc.d/init.d/spamd<BR># chmod 755 /etc/rc.d/init.d/spamd<BR># chkconfig --add spamd<BR># vi /etc/rc.d/init.d/spamd</P>
<P><BR>SPAMDOPTIONS="-d -c -u spamd -H /home/spamd -m5"</P>
<P>&nbsp;</P>
<P># vi /etc/mail/spamassassin/local.cf (my local.cf)</P>
<P><BR># These values can be overridden by editing ~/.spamassassin/user_prefs.cf<BR># (see spamassassin(1) for details)</P>
<P># These should be safe assumptions and allow for simple visual sifting<BR># without risking lost emails.</P>
<P>required_hits 5.5<BR>rewrite_subject 1<BR>rewrite_header Subject *****SPAM*****<BR>report_safe 1<BR>defang_mime 0<BR>rewrite_subject 1<BR>report_header 1<BR>use_terse_report 1<BR>whitelist_from *@quickmail.51job.com<BR>whitelist_from *@gmail.com<BR>#whitelist_from *@163.com<BR>whitelist_from *@sina.com<BR>whitelist_from *@126.com<BR>whitelist_from *@21cn.com<BR>whitelist_from *@qq.com<BR>whitelist_from *@tom.com<BR>whitelist_from *@yahoo.com.cn<BR>whitelist_from *@hotmail.com<BR>whitelist_from *@sky.net.cn<BR>whitelist_from *@gddc.com.cn<BR>whitelist_from *@sharebank.com.cn<BR>whitelist_from *@pcsoft.com.cn<BR>whitelist_from *@igrand.cn<BR>whitelist_from *@iresearch.cn</P>
<P>use_bayes 1<BR>auto_learn 1<BR>skip_rbl_checks 1<BR>use_razor2 0<BR>use_dcc 0<BR>use_pyzor 0</P>
<P>score SUBJ_FULL_OF_8BITS 0.0<BR>score BASE64_ENC_TEXT 0.0<BR>score BAYES_99 0.1<BR>score BAYES_90 0.1<BR>score BAYES_80 0.1<BR>score BAYES_70 0.1<BR>score BAYES_60 0.1<BR>score FROM_ILLEGAL_CHARS 0.1<BR>score HEAD_ILLEGAL_CHARS 0.1<BR>score SUBJ_ILLEGAL_CHARS 0.1<BR>score MIME_BASE64_TEXT 0.1<BR>score FAKE_HELO_AOL 0.1<BR>score NO_RDNS_DOTCOM_HELO 0.1<BR>score MIME_HTML_ONLY 0.1<BR>score SUBJ_HAS_UNIQ_ID 0.1<BR>score HTML_SHORT_COMMENT 0.5<BR>score MISSING_SUBJECT 0.1<BR>score RCVD_DOUBLE_IP_SPAM 2.0</P>
<P>score BAYES_99 0 0 2.700 2.000<BR>score BAYES_50 0.2<BR>score BAYES_56 0.2<BR>score ADDR_NUMS_AT_BIGSITE 0.522 0.362 .543 0.699<BR>score FROM_ENDS_IN_NUMS 0.999 0.869 0.677 0.594<BR>score FROM_WEBMAIL_END_NUMS6 0.489 1.062 0.809 1.399<BR>score FROM_NUM_AT_WEBMAIL 0.506 0.501 2.100 2.100<BR>score HTML_20_30 0.691 0.474 1.572 1<BR>score HTML_30_40 0.837 0.809 1.919 1<BR>score HTML_40_50 0.870 0.474 1.898 1<BR>score HTML_50_60 0.699 0.183 1.514 2.100<BR>score HTML_60_70 0.359 0.100 1.516 2.113<BR>score HTML_70_80 0.383 0.105 1.305 2.100<BR>score HTML_80_90 0.014 0 1 1<BR>score HTML_90_100 0.308 1.073 1.5 2.187<BR>score HTML_FONTCOLOR_BLUE 1.100<BR>score HTML_FONT_BIG 0.571 0.500 0.570 0.567<BR>score HTML_MESSAGE 0.5</P>...&nbsp;&nbsp;<a href="/blog/sendmail-spamassassin-mimedefang-install-manual.html">More&gt;&gt;</a></p>]]></description>
<category><a href="/category/development.html">Development</a> - <a href="/category/lamp.html">Linux</a></category>
<author></author>
<pubDate>2010-04-15</pubDate>
</item>
<item>
<title>CentOS And Debian Frequently Configure Error Solutions</title>
<link>http://www.koven.org/blog/centos-and-debian-configure-error-solutions.html</link>
<description><![CDATA[Only For Debian And CentOS 5<BR><B>configure: error: No curses/termcap library found</B><BR>The wrong way:<BR>--with-named-curses-libs=/usr/lib/libncursesw.so.5<BR>It can config the configure error, but it will cause make time error, the right way is:<BR>yum -y install ncurses-devel<BR>debian: apt-get install libncurses5-dev<BR><BR><B>configure: error: xml2-config not found</B><BR>yum -y install libxml2-devel<BR>debian:apt-get install libxml2-dev<BR><BR><B>configure: error: Cannot find OpenSSL's <EVP.H></B><BR>yum -y install openssl-devel<BR><BR><B>configure: error: libjpeg.(a|so) not found</B><BR>yum -y install gd<BR>yum -y install gd-devel<BR>debian:apt-get install libjpeg-dev<BR><BR><B>configure: error: libpng.(a|so) not found.</B><BR>apt-get install libpng12-dev<BR><BR><B>configure: error: cannot find output from lex; giving up</B><BR>yum -y install flex<BR><BR><B>configure: error: mod_deflate has been requested but can not be built due to prerequisite failures</B><BR>yum -y install zlib-devel openssl-devel<BR>debian:apt-get install zlib1g-dev<BR><BR><B>configure: error: libXpm.(a|so) not found.</B><BR>apt-get install libxpm-dev<BR><BR><B>onfigure: error: freetype.h not found.</B><BR>apt-get install libfreetype6-dev<BR><BR><B>configure: error: ...No recognized SSL/TLS toolkit detected</B><BR>apt-get install libssl-dev<BR><BR><B>configure: error: Please reinstall the libcurl distribution - easy.h should be in <CURL-DIR>/include/curl/</B><BR>yum -y install curl-devel]]></description>
<category><a href="/category/development.html">Development</a> - <a href="/category/lamp.html">Linux</a></category>
<author></author>
<pubDate>2010-04-15</pubDate>
</item>
<item>
<title>你从什么时候不再爱我</title>
<link>http://www.koven.org/blog/when-you-do-not-love-me.html</link>
<description><![CDATA[<p>你的容颜,留下了太多的思念. <br />内心缠绵,就在那相爱的一瞬间. <br />想你一遍,感觉世间沧桑的迁变. <br />爱就在眼前,不再留恋. </p>

<p>是否听见,那天你说的谎言. <br />看你一眼,感觉那爱剩下一点点. <br />我的眷恋,总在一个落叶的秋天. <br />不知不觉,回到从前. <br />你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措. <br />你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果. <br />你已不再爱我. </p>

<p>是否听见,那天你说的谎言.看你一眼,感觉那爱剩下一点点. <br />我的眷恋,总在一个落叶的秋天.不知不觉,回到从前. <br />你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措. <br />你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果. <br />你已不再爱我. <br />你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措. <br />你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果. <br />你已不再爱我 </p>]]></description>
<category><a href="/category/dairy.html">Dairy</a></category>
<author></author>
<pubDate>2006-10-15</pubDate>
</item>
</channel>
</rss>