MacPortsでPHPとかをインストールとか

% sudo port
MacPorts 1.600
Entering interactive mode... ("help" for help, "quit" to quit)
> sync

variantsとかいうのがあるらしいので確認してみる。

> variants php5                   
php5 has the variants:
	universal
	darwin_6
	darwin_7
	macosx
	apache: for Apple Apache
	apache2: for current Apache
	fastcgi: add fastcgi binary
	gmp: Add GNU MP functions
	dbase: Add dBase file format support
	imap: enable operation with IMAP protocol
	pspell: Add pspell spell-checking functions
	tidy: add Tidy support
	mssql: add support for MS-SQL server
	snmp: use Apple snmp
	macports_snmp: use MacPorts snmp
	mysql3: build MySQL 3 support
	mysql4: build MySQL 4 support
	mysql5: build MySQL 5 support
	oracle: Add Oracle oci8 database functions with the Oracle Instant Client
	postgresql82: provide postgresql82 support
	postgresql83: provide postgresql83 support
	sqlite: build sqlite support
	ipc: build IPC support
	pcntl: provide process control
	pear: add pear stuff
	readline: Add GNU readline functions
	sockets: Add socket communication functions
	t1lib: Add PostScript Type 1 font support with t1lib

なんかいっぱい出た!

apache2 とか mysql5 とか先に入れなきゃいけないのかなあと思いつつ、+ 付きで決行。

> install php5 +apache2 +mysql5

時間かかるーうーうー

* copy  /opt/local/etc/php.ini-dist to  /opt/local/etc/php.ini

んー、ini-dist はどうかと思うがとりあえず進める。

% sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
% sudo vim /etc/apache2/httpd.conf
LoadModule php5_module        libexec/apache2/libphp5.so
% sudo sudo apachectl restart

なんか無事に入ったみたい。php.ini の修正とかはまた明日とか。