Ще модифицираме httpd.conf, за да накараме Apache да разпознава PHP скриптове.
chown-Rnobody:nobody /apachesed
-e's/\/var\/log/\/apache\/logs/' /apache/etc/apache/httpd.conf > /tmp/httpd.confmv /tmp/httpd.conf /apache/etc/apache/httpd.conf sed
-e's/DirectoryIndex/# DirectoryIndex/' /apache/etc/apache/httpd.conf > /tmp/httpd.confmv /tmp/httpd.conf /apache/etc/apache/httpd.conf cat
<<END_OF_APACHE_CONF>> /apache/etc/apache/httpd.conf<IfModule mod_php5.so> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> DirectoryIndex index.html index.php
END_OF_APACHE_CONF



DirectoryIndex, за да можем да я добавим
по-късно.
DirectoryIndex,
за да накараме Apache да зарежда index.php и index.html, когато те
съществуват в директория.This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.
For questions about FreeBSD, read the documentation before contacting <[email protected]>.
For questions about this documentation, e-mail <[email protected]>.