$Id: php.txt,v 1.4 2009/10/20 20:47:29 jerry Exp $ php.txt ------- cd /usr/ports/lang/php5 make install In the options dialog, check the APACHE option to build mod_php5 as a loadable module for the Apache web server. This will install and configure the modules required to support dynamic PHP applications. Check to ensure the following sections have been added to /usr/local/etc/apache/httpd.conf: LoadModule php5_module libexec/apache/libphp5.so AddModule mod_php5.c DirectoryIndex index.php index.html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps cd /usr/ports/databases/php5-mysql make install Once completed, a simple call to the apachectl command for a graceful restart is needed to load the PHP module: apachectl graceful Using sessions depends on php5-extensions cd /usr/ports/lang/php5-extensions make install /*** end ***/