Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache/SSI and CGI

Status
Not open for further replies.

qleader

Technical User
Dec 20, 2001
31
US
Hey all,
Well I have read a previous post about Apache and getting SSI and CGI to work. I tried it a couple of ways and well it still does not work. Maybe I just missed something all together. I got through getting PHP to work.
I have Apache 1.3.20 running on W2K, and I have Active Perl installed. I have configures the http.conf file with the following. Can some one please tell me what I'm missing here??
# To use CGI scripts:
#
AddHandler cgi-script .cgi

#
# To use server-parsed HTML files
#
<Directory /htdocs>
Options Indexes FollowSymLinks
</Directory>
<Directory /htdocs>
Options Includes
</Directory>
AddType text/html .shtml

AddHandler server-parsed .shtml

I tried to Load module with the following and got an error module_include could not be found. And it is right it is not in the directory <module> or <include>. The Apache web site docs, states: &quot;Build your server with the mod_include module. This is normally compiled in by default&quot;
LoadModule includes_module modules/mod_include.so

AddModule mod_include.c

AddType text/html .shtml

AddHandler server-parsed .shtml

Any help would be great...

 
Hi,

In the Win32 version of Apache, a number of modules (incl mod_include & mod_cgi) are statically bound and, as such, you do not need the LoadModule directive to reference an external module like you do with linux/unix apache - you only need the AddModule directive.

So try it again as before but without that LoadModule directive...

Regards
 
If you don't see them in those directories then they are compiled in. On linux we can type httpd -l and it will list all the compiled in modules but I don't know if that will work on windows. If you find out they ARE compiled in, LoadModule will give you errors. I was also looking at my httpd.conf and noticed that the AddType and AddHandler directives for this were nested inside <IfModule mod_mime.c> container along with the php stuff but I don't know if that would make a difference. You can also try to change Options Includes to Options +Includes but right now I'm just grabbing at straws. Now I know why ifincham calls you guys &quot;Windoze sufferers&quot;. :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top