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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI

Status
Not open for further replies.

AEBoy

Programmer
Jan 26, 2005
20
US
I am reading up on the documentation to get SSI to parse .shtml files and so far it just isn't working. I added
"<Directory "C:/Program Files/Apache Group/Apache2/htdocs/">
Options +Includes
</Directory>" as this is the directory where all my web folders containing the .shtml files will me. I also uncommented
"AddType text/html .shtml
AddHandler server-parsed .shtml"

Clearly I am doing something wrong here but I can't get it to work. Any help is appreciated, thanks.
 
AEBoy,

Have you restarted Apache after changing your httpd.conf? Are you sure that C:/Program Files/Apache Group/Apache2/htdocs/ is the correct path to your .shtml files?

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Yes I have restarted the server and it still doesn't work. And the path I have chosen is the path that leads to all of my web site folders. Every folder that I have in the htdocs folder allows me to view the website by type where webfoldername is the folder containing index.shtml.
 
I still don't see anything that I could be missing. I guess I do have a few questions though that might clear something up. It talks about this mod_include and I don't know what it is. Do I have to put something referring to mod_include in my httpd.conf file? It almost seems like it is some module that I have to install or something like that. Also, I'm not too sure where I should be putting all of this <Directory ...></Directory> and the " AddType text/html .shtml
AddOutputFilter INCLUDES .shtml"

I found a part of the httpd.conf file that speaks of SSI so I uncommented the lines of actual code and made them look like the tutorial. Then right above that I have "<Directory "C:/Program Files/Apache Group/Apache2/htdocs/">
Options +Includes
</Directory>"

Is there a certain spot in the httpd.conf file it is supposed to go?
 
Not exactly sure what I did but for some reason it works now.
 
AEBoy,

I'm not sure what you did either, but I'm glad to hear that you got it worked out.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
I got the SSI to work but then I restarted my computer for another reason and now my server won't even start. I can't win today. It keeps just telling me that the process failed and when I check the system logs it's saying it can't find sockets and some other stuff.
 
AEBoy,

If Apache refuses to start, reboot again, and then try to start it. If it still won't start, please post the relevant lines from your Apache error log.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Only one usage of each socket address (protocol/network address/ port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 no listening socket is available, shutting down"

I have no idea what this means, I haven't changed anything in my network settings in months and prior to starting my computer the web server was working. There are no other web servers running on the network either.
 
AEBoy,

Try running 'netstat -an |find /i "listening"' from a command prompt. If anything shows up in the list with ':80' on the end, then something is already set up to listen on port 80.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Something is indeed listening on port 80. It doesn't give me any information about it though. Is there any way I can change the port my server will run on or find out what is listening to port 80?
 
AEBoy,

On Windows XP and Server 2003, you can use the command 'netstat -no' to find the Process ID (PID) of the process that is listening on port 80.

From there, you can alt+ctrl+del to bring up Task Manager and find the process that corresponds to the PID. I wouldn't be suprised it if's Apache or IIS configured to run as a service, but at least you'll know what process is listening on that port.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
I did a little research and found out how to change the port it listens to in the httpd.conf file, but I wasn't content with that. I did some searching on the net and found out that in Control Panel->Services uses port 80 and for whatever reason was set to start automatically. I don't know why this was never a problem before but I set it to manual and now everything is grand. Thanks a ton for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top