Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-15-2004, 03:35 AM   #1
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Rep: Reputation: 30
apache SSI error with Invalid command 'AddOutputFilter'

I'm trying to use SSI to add a header and a footer to each of my pages. And I'm getting a 500 internal server error whenever I try to go to that site. The error log says:

[Fri Oct 15 01:01:16 2004] [alert] [client] /var/users/ffs/www/.htaccess: Invalid command 'AddOutputFilter', perhaps mis-spelled or defined by a module not included in the server configuration

I know the mod_include is installed because "apache-modconf apache query mod_include" returns "mod_include". Also, it's in the apache modules list in webmin.

DirectoryIndex Home.php
Options Indexes FollowSymLinks +Includes
AddType application/x-httpd-cgi .cgi
#AddType text/x-server-parsed-html .php
#AddType text/x-server-parsed-html .htm
AddType text/html .htm
AddType text/html .html
AddType text/html .php
AddOutputFilter INCLUDES .html
AddOutputFilter INCLUDES .php
AddOutputFilter INCLUDES .shtml
XBitHack on

The reletive part of httpd.conf
<VirtualHost *:80>
  DocumentRoot /var/users/ffs/www
  <Directory "/var/users/ffs/www">
    AllowOverride All
    allow from all
    Options +Includes
  ErrorLog /var/users/ffs/logs/error.log
  LogLevel debug
And the file I'm trying to load, Home.php:
<Title>Fight for Sight</Title>

<!-- -->

<Meta Http-Equiv="Content-Type" Content="text/html; charset=iso-8859-1" />

<!--#include file="Top.htm" -->

Fight for Sight^�s mission is to encourage and finance research in ophthalmology, vision and related sciences $
<!--#include file="Bottom.htm" -->
I appriciate any help.
Old 10-15-2004, 05:05 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,170

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
I'll try to help even though I have never used SSIs. According to this tutorial you have:
1st, add:
AddHandler server-parsed .html .htm
2nd, make your header and footer pages executable
chmod +x Top.htm Botton.htm
Try also to add: AddOutputFilter INCLUDES .htm and remove the: AddOutputFilter INCLUDES .shtml

Good luck
Old 10-15-2004, 12:18 PM   #3
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Original Poster
Rep: Reputation: 30
OK I tried making those changes, but I still get the same error.

"Invalid command" makes me think the module it needs isn't working or something. Is there anything else I should check for besides mod_include? Or is there anything else I have to do to activate it?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache error - Invalid Command 'AddType'... humbletech99 Linux - Networking 0 11-28-2005 08:22 AM
Apache/tomcat/webapps: Invalid command 'WebAppDeploy' (and WebAppInfo) jeroenvrp Debian 2 10-18-2004 02:07 AM
Invalid SSL/TLS toolkit base dir error while compiling Apache 2 basse- Linux - Software 2 03-20-2004 12:23 PM
SSI and Apache 2 krumholz Linux - General 6 10-05-2003 07:50 PM
ssi in apache lustra Linux - Networking 0 02-28-2002 06:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration