Home >Backend Development >PHP Tutorial >Configuring support for SSI_PHP tutorial
Settings
SSI~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Open the settings file And look for the following text:
#
#To use server-parsedHTMLfiles
#
#AddType text/html .shtml
#AddHandler server-parsed .shtml
Delete AddType and AddHandler The # symbol before these two lines of instructions. The AddType command will require the server to use text or HTML as the content format of the returned file when returning any web page with an attachment file name
of .shtml. AddHandler is used to instruct the server to send the file content
to mod_include for processing. Afterwards, mod_include will determine how to respond to such a file. Next, look for the following text:
There will be an options line between this line of text and the corresponding . The original setting is:
Options Indexes FollowSymLinks MultiViews Includes
Add Includes at the end of this line, and the result will look like this:
Options Indexes FollowSymLinks MultiViews Includes
This requires Apache to set it in the htdocs subroutine Execute the server-side includes program in the directory. In order for these changes to take effect, we must
restart the server. Reactivate under Unix and execute "kill -HUP `cat /usr/local/apache/logs/httpd.pid`".