[mac][php]MacPortsでphpをインストールする備忘録
MacPortsでphp 5.3.0をインストールする備忘録
- MacPortsのインストール
- ~/.bashrc(~/.bash_profile)でPATHとMANPATHにMacPorts(port)のパスを通す
- php5をインストール(+apache2) (variablesで確認する)
- apache拡張ツール(apxs)でphp5を認識させる
- httpd.confにInclude conf/extra/mod_php.confを追記
- 適当に拡張入れたり
- sudo port install php5-exif php5-gd php5-http php5-iconv php5-imagick php5-mbstring php5-mcrypt php5-mysql php5-openssl php5-syck php5-xdebug
参考: