Apache2
From MediaWiki
Contents |
Running Apache 2 on FreeBSD
Installation / Configuration
[buffy] ~> portinstall www/apache2 [buffy] ~> vim /etc/rc.conf/local apache2_enable="yes" [buffy] ~> sudo /usr/local/etc/rc.d/apache2.sh start Starting apache2.
Add On Modules
PHP4
[buffy] ~> grep php /usr/local/etc/pkgtools.conf
'lang/php4' => 'WITH_APACHE=yes',
[buffy] ~> portinstall lang/php4
[buffy] ~> cat /usr/local/etc/apache2/Includes/php.conf
DirectoryIndex index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Install PHP4 modules as applicable
[buffy] ~> portinstall www/php4-session devel/php4-pcre databases/php4-mysql [buffy] ~> sudo /usr/local/etc/rc.d/apache2.sh restart Performing sanity check on apache2 configuration: Syntax OK Stopping apache2. Waiting for PIDS: 34783. Starting apache2.

