聽 Aleiku 說 Mediawiki 需要使用到 php-xml 模組,想說用 make install clean 會比較輕鬆一點。開始設定 wiki 的時候後出現沒有 php-xml 的錯誤訊息,這時候去查了一下 ports,還蠻正常的啊
> pkg_info | grep php
php5-5.2.3 PHP Scripting Language (Apache Module and CLI)
php5-bz2-5.2.3 The bz2 shared extension for php
php5-ctype-5.2.3 The ctype shared extension for php
php5-gd-5.2.3 The gd shared extension for php
php5-gettext-5.2.3 The gettext shared extension for php
php5-iconv-5.2.3 The iconv shared extension for php
php5-mbstring-5.2.3 The mbstring shared extension for php
php5-mcrypt-5.2.3 The mcrypt shared extension for php
php5-mysql-5.2.3 The mysql shared extension for php
php5-mysqli-5.2.2 The mysqli shared extension for php
php5-openssl-5.2.2 The openssl shared extension for php
php5-openssl-5.2.3 The openssl shared extension for php
php5-pcre-5.2.3 The pcre shared extension for php
php5-readline-5.2.3 The readline shared extension for php
php5-session-5.2.2 The session shared extension for php
php5-session-5.2.3 The session shared extension for php
php5-simplexml-5.2.3 The simplexml shared extension for php
php5-spl-5.2.3 The spl shared extension for php
php5-xml-5.2.3 The xml shared extension for php
php5-zlib-5.2.2 The zlib shared extension for php
php5-zlib-5.2.3 The zlib shared extension for php
在去看 /usr/local/etc/ 才知道原來 php.ini 裡面並沒有 extension 的設定,而是另外存在 php/etensions.ini 裡面所以要自己在 php.ini 中加入設定檔的位置:Include php/extensions.ini
好了以後再 apachectl restart。