Apache
/etc/rc.conf
apache22_enable=yes apache22_profiles="01" apache22_01_configfile="/usr/local/etc/apache22/httpd.01.conf"
/boot/loader.conf
accf_http_load="yes"
/usr/local/etc/apache22/httpd.01.conf (PHP mod_fcgid)
LoadModule ...
LoadModule fcgid_module libexec/apache22/mod_fcgid.so
ServerRoot "/usr/local"
Listen 80
ServerName name.domain
DocumentRoot /usr/local/www/html
ErrorLog /var/log/httpd-error.log
LogLevel warn
#CustomLog /var/log/httpd-access.log "%h %l %u %t \"%r\" %>s %b"
ServerSignature On
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
FCGIWrapper /usr/local/bin/php-cgi .php
<Directory /usr/local/www/html/>
AddHandler fcgid-script .php
Options Indexes FollowSymLinks MultiViews ExecCGI
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
No comments yet
