Murmur..

Sachiko amy Kawaii accumsan urna in mi. Aenean elementum egestas tortor. Donec neque magna, auctor a, dapibus sit amet, facilisis sit amet, ligula..

Archive for March, 2007

lighttpd 1.5.0-pre

Wednesday, March 28th, 2007

一個月前(2007-02-23)所釋出的 1.5.0-pre 有說一些重大變革,其中有提到原本的 mod-fastcgi, mod-proxy, mod-scgi 這三支都改用 mod-proxy-core 所取代,目前已經有先烈試過 mod-proxy-core 是怎麼成功使用的了:

Changes
On the way from 1.4.x to 1.5.0 many things have been improved, changed and added and we try to keep track of them to make it easier for user to migrate their configuration.

IMPORTANT requires glib2-2.4.0 or higher
mod-fastcgi, mod-proxy and mod-scgi are replaced by mod-proxy-core

Must [...]

Read the rest of this entry »

FreeBSD 4.x 終於可以大致落幕了..

Wednesday, March 28th, 2007

(基本上下面是之前在 tw.bbs.comp.386bsd 貼過的舊文,但好像還是蠻多人不知道的,因此重新貼到 blog 上)
建議把資料備份,直接轉移到 6.X 新機比較快
不然就參考 linimon@ 的建議,
來更改 4.X 的機器上更新 port tress 的相關 supfile
把 cvs tag 的 . 改為 RELEASE_4_EOL 才能有辦法繼續在 4.X 上裝 port

--- /usr/share/examples/cvsup/ports-supfile~    Thu Mar  8 10:06:34 2007
+++ /usr/share/examples/cvsup/ports-supfile     Thu Mar  8 10:06:34 2007
@@ -51,7 +51,7 @@
*default host=CHANGE_THIS.FreeBSD.org
*default base=/usr
*default prefix=/usr
-*default release=cvs tag=.
+*default release=cvs tag=RELEASE_4_EOL
*default delete use-rel-suffix

Read the rest of this entry »

portscout 的裝法

Tuesday, March 13th, 2007

1. 首先,先裝好 PostgreSQL 以及 portscout,
然後作 PostgreSQL 與 portscout 的後續設定:
2. 建立 portscout 的 database 帳號
$ createuser -U pgsql -P portscout
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) [...]

Read the rest of this entry »

尷尬人,做尷尬事

Wednesday, March 7th, 2007

形容還有點貼切...,或許該更低調些...

另外,由於自認為寫 blog不是非常勤勞,因此我也順便加入『怠惰管理者同盟』 XD

Read the rest of this entry »

pecl-vld

Monday, March 5th, 2007

pecl-vld 也是蠻有趣的 pecl extension,它可以顯示 PHP 所轉譯的 opcodes (execution units)。
正如同 vld 官網介紹,其用法很簡單,假設你的 php 程式叫作 test.php ,內容大致採用先前 pecl-hidef 的例子 :
<?php
define('ANSWER', 42);
echo "The answer is ".ANSWER."\n";
?>
接著執行:
php -dvld.active=1 test.php
就會得出分析結果:

filename: /usr/local/www/test2.php
function name: (null)
number of ops: 14
line # op [...]

Read the rest of this entry »

SuperMicro 2U server with FreeBSD

Monday, March 5th, 2007

以下是在某些 SuperMicro 2U server 機器上面發現的訊息,這些機器每隔一陣子就會 kernel panic。
當時在 freebsd-stable 找到相關討論說是 ICH 晶片組的 SMM interrupt 會有問題,用了這暫時解法(因為該程式作者是以附件丟到 mailing list 上,所以我就 mirror 一份)目前過了三個月都沒再出現問題了。
fetch http://people.freebsd.org/~chinsan/patch/ich-periodic-smm-disable.c
gcc -o ich-periodic-smm-disable ich-periodic-smm-disable.c
./ich-periodic-smm-disable
並放到比如 /usr/local/bin去,
cp ich-periodic-smm-disable /usr/local/bin
然後在 /etc/rc.local 內加上下面這行,讓它每次開機都啟動
/usr/local/bin/ich-periodic-smm-disable
相關訊息提供給大家參考看看,說不定日後還會遇上類似情況...

Read the rest of this entry »

pecl-hidef

Sunday, March 4th, 2007

在 Gopal Vijayaraghavan(pecl-APC 維護者之一)的 blog 上看到有關 hidef 的介紹..

Sat, 03 Feb 2007:
My First Php Extension: hidef
After nearly a year of messing around with php extensions, I've finally sat down and written a full extension from scratch. I've used all the skeletons and ext_skel scripts, in the proper way to end up [...]

Read the rest of this entry »