由於工作用的 nb 升級了硬碟,於是我的 Mac mini 就撿了上面的硬碟來用。
換了硬碟之後,速度感覺有快了一些,好像可以當工作機了,於是準備在上面做一個測試 PHP+MySQL 的環境。
其實 Tiger 裡面就已經內建了 Apache (Version 1.3.33)的 server (上面叫 Personal Web Sharing),PHP module (Version 4.4.1) 也編好了。
由於手邊的 code 目標為最大相容性,所以不追求太新的版本,只有 MySQL 是另外裝的,以下為簡略步驟:
1. 修改 /etc/httpd/httpd.conf 把 php module 註解起來的地方拿掉
2. 到 system perference 裡面的 sharing 把 personal web share (也就是 apache 打開)
這兩步驟完成就有 apache+php 了
3. 安裝 darwinports (記得你要有 gcc 可以 build 東西,沒有就把 gcc 裝上去先吧, xcode 裡面有)
4. 找 terminal 敲敲 "port install mysql +server"
5. 依照 port 安裝完的指示,執行 mysql-install-db 以及修改權限
6. /opt/local/etc/rc.d/mysql-server.sh start
裝完就可以開始用囉
由 cclien 發表於 February 3, 2007 05:51 AMinterest of youngsters especially those people
Posted by: rado 發表於 December 22, 2011 10:00 PMjewelry jewelry brand in the worlds top
Posted by: iwc 發表於 January 10, 2012 11:21 PMShock x Adult Swim x Aqua Teen Hunger
Posted by: magical 發表於 January 11, 2012 10:16 AMgrand watches cartier tank americaine watches
Posted by: cuff 發表於 January 11, 2012 01:19 PMlink watches spring and jing ming
Posted by: debra 發表於 January 11, 2012 05:39 PMreplica parmigiani watches yachtmaster ii watches
Posted by: must 發表於 January 12, 2012 10:34 AMlink watches replica bvlgari watches
Posted by: abeille 發表於 January 15, 2012 03:56 PMthe entrepreneurial spirit Today female
Posted by: shelly 發表於 January 15, 2012 04:58 PMseamaster watches tissot watches
Posted by: tam 發表於 January 17, 2012 06:03 PMbreitling chronomat evolution cartier pasha watches
Posted by: windrider 發表於 January 17, 2012 06:03 PMcartier cpcp watches cartier cpcp watches
Posted by: walker 發表於 January 31, 2012 04:54 AMvilleret watches breitling for bentley watches
Posted by: lanieres 發表於 February 1, 2012 11:30 AMreplica bell and ross watches omega deville watches
Posted by: kevin 發表於 February 2, 2012 03:46 PM