Archive for PHP

Apache + mpm_worker + mod_fastcgi + php-cgi

之前大神rafan 等長輩都寫過要怎麼搞這種東西,不過我試的時候總是因為某些奇怪的原因沒有跑起來,直到昨天 ckmarkhsu 也說他做作業也跑起來了,我今天早上又試了一下終於成功了 :Q
Read the rest of this entry »

Comments (4)

manual upgrade patch for php5

PHP 5.2.2 和 4.4.7 都已經 release 幾天了,但是 FreeBSD ports 因為 xorg 的原因 ports freeze 沒有更新,portaudit 又已經把漏洞列入 database,造成不少人的困擾。

於是 maintainer 先把 patch 放出來了 (PHP4 的在),有需要的人可以自己先抓 patch 回來升級,等 ports unfreeze 之後這些也會被 commit 進去。

Just apply it, relax, and stop bugging us. Thanks :)

Leave a Comment

install Apache+PHP+MySQL from ports

ports 是 FreeBSD 裡面我最喜歡用的一樣功能,我認為它比 rpm 好用多了 (FreeBSD 的 ports 裡面也有 rpm,但是應該沒什麼人在用才對 :Q)

底下是個小小的示範用 ports 把 Apache, PHP, MySQL 三個現在架網頁伺服器常用的軟體安裝過程。範例裡面用到的軟體版本只供參考,要安裝不同的版本換個目錄名稱就可以了。例如想安裝 Apache 2.2.2 的話就到 www/apache22/ 而不是範例中的 www/apache20/。
Read the rest of this entry »

Comments (3)

MySQL 4.1 new password hashing

MySQL 在 4.1 版的時候把它的 password hashing 方式改了,和舊的 client 不相容。但是 php4-Win32 裡面的 libmysql.dll 一直還是用 3.23 的 client library,所以在 Windows 上面跑 PHP4 + MySQL 4.1 以上的版本就會出問題。
Read the rest of this entry »

Leave a Comment