デフォルトでapache2のvariantが入るらしい。
sudo port install php4 +mysql5 +postgresql8
---> Activating php4 @4.4.9_6+apache2+macosx+mysql5+postgresql8
To customize php, copy
/opt/local/etc/php4/php.ini-dist (if this is a development server) or
/opt/local/etc/php4/php.ini-recommended (if this is a production server) to
/opt/local/etc/php4/php.ini and then make changes.
If this is your first install, you need to activate PHP in your web server.
To enable PHP in Apache, run
cd /opt/local/apache2/modules
/opt/local/apache2/bin/apxs -a -e -n "php4" libphp4.so
* copy /opt/local/etc/php4/pear.conf.sample to /opt/local/etc/php4/pear.conf
---> Cleaning php4
sudo cp /opt/local/etc/php4/php.ini{-recommended,}
cd /opt/local/apache2/modules
/opt/local/apache2/bin/apxs -a -e -n "php4" mod_php4.so
sudo vi /opt/local/apache2/conf/httpd.conf
LoadModule php4_module modules/mod_php4.so
懇切丁寧に教えてくれるので助かる。助かるが、これもやっといてくれないかな・・・。