From PC-BSD Wiki
Jump to: navigation, search
#AddType application/x-gzip .tgz                                                
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

<IfModule dir_module>
  DirectoryIndex index.html index.php
Add the required PHP options to Apache. Open /usr/local/etc/apache22/httpd.conf in an editor and look for this AddType line that begins with a pound (#) sign, and then add the highlighted lines directly below it.

Look for this IfModule section and add the highlighted text as shown.