LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-15-2004, 03:35 AM   #1
Moebius
Member
 
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 67.180.191.116] /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.

.htaccess
Code:
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
Code:
<VirtualHost *:80>
  ServerName ffs.ath.cx
  DocumentRoot /var/users/ffs/www
  <Directory "/var/users/ffs/www">
    AllowOverride All
    allow from all
    Options +Includes
  </Directory>
  ErrorLog /var/users/ffs/logs/error.log
  LogLevel debug
  ServerAdmin zac@zacwittedesign.com
</VirtualHost>
And the file I'm trying to load, Home.php:
Code:
<Html>
<Head>
<Title>Fight for Sight</Title>

<!-- CODE BY CULTURE GRAPHIC -->
<!-- -www.culturegraphic.com -->

<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.
Thanks.
 
Old 10-15-2004, 05:05 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
I'll try to help even though I have never used SSIs. According to this tutorial you have:
1st, add:
Code:
AddHandler server-parsed .html .htm
2nd, make your header and footer pages executable
Code:
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
Moebius
Member
 
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?

Thanks.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 AM.

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