I'm not familiar with how Debian or Ubuntu install Apache as I install it from source. But the essential prerequisites for server sides includes are:
1. mod_include compiled in Apache:
Code:
[root@vps] cd /usr/local/apache2/bin
[root@vps] ./httpd -l | grep mod_include
mod_include.c
Your path to the httpd binary may be different. If you don't see "mod_include.c" then it's not compiled.
2. SSI directives active:
The following lines must appear in httpd.conf (for global application -- i.e., all domains) or in a specific virtualhost:
Code:
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
3. Option 'Includes' (or '+Includes' to merge it with existing options) for the directory where the file is being served (applies to subdirectories):
Code:
<Directory /some/path/here>
Options +Includes
</Directory>
4. An HTML file with the extension ".shtml". An example include might be:
Code:
"<!--#echo var="DATE_LOCAL" --> ".