MacPortsでPHP5をインストールする
MacPortsでPHP5をインストールしようと思います。
MacPortsでPHP5をインストールする
$ sudo port install php5 +apache2 +mysql5 +postgresql83 +pear
- インストールされたのは、5.2.8でした
- MySQLと、apache2と、postgresql8.3をインストールしていたので、オプションで設定
- pearも使いたいので、オプションに追加
- 細かい設定は下記を参照しました
- MacPortsでPHP5をインストール - my scratch pad
- Apacheのモジュールについて調べてみました
- apxsでapacheにモジュールを追加する
オプションのリスト
調べてみると、色々とコンパイルのオプションが多いようです。
これは、迷うなあ。
$ port variants php5php5 has the variants: darwin_6: Platform variant, do not select manually darwin_7: Platform variant, do not select manually macosx: Platform variant, do not select manually no_web: Don't include any web server support apache: Add Apache 1 web server module apache2: Add Apache 2.2 web server module (default) fastcgi: Add FastCGI web server 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 universal: Build for multiple architectures