Web Server Help

daniel1113

Diamond Member
Jun 6, 2003
6,448
0
0
Hey guys,

I have a few questions about the IIS server running on my Windows XP machine. I have been designing websites for a long time, but I have never dealt with the server aspect of my sites as I usually use other web hosts. However, I would like to have a simple web server running on my Windows XP machine so that I can "preview" the sites I am working on before I upload them to their official web space.

I have my IIS server up and running perfect along with ActivePerl by Activestate to give me Perl support. However, I cannot get SSI scripting to work for the life of me.

Does anyone here know what settings I need to enable so that I can run SSI perl scripts in regular html documents (not .shtml)?

Incase it matters, I run my webserver on a separate hard drive from my system; however, I have Perl installed on my system hard drive. Also, here is an example of a Perl command I need to use:

<!--#exec cgi="navscripts/navbar.pl"-->

Any help would be greatly appreciated.
 

blcjr

Golden Member
Oct 28, 1999
1,010
0
0
Just taking a wild eyed guess here, but you may need to enable the "execute" permission. In Internet Services Manager, click on the "site" and right-click to get to the properties dialog. For virtual directories, there should be a tab that says "Virtual Directory". On this page, check your "Execute permissions." (For a separate web site using virtual hosting, you'll have to go to the folder in the web site and check the properties on the folder.)

If that doesn't do it -- if you have "Scripts and Executables" permission, but the scripts still don't run -- then two more things to look into are:

1. Click on the "Configuration" tab next to the Execute Permissions drop down list and look at the application mappings. You may need to add a mapping there.

2. I've also found that some scripts do not execute with "Medium Pooling" but need the "Low" application protection setting to run.

I'm taking shots in the dark. Maybe one will point you in the right direction.
 

daniel1113

Diamond Member
Jun 6, 2003
6,448
0
0
Hey blcjr,

Thanks a bunch for the help. I actually figured out what was happening. My perl scripts and SSI were working fine; however, I was testing them from the browser on my server computer, so they were not showing up. So, I tried connecting to the site with my laptop (which runs off of a different IP address) and everything worked fine. So, I now have two small problems to fix, and perhaps you know the answer:

With IIS, how do I configure the server to parse for SSI in regular html documents, and not just those with the .shtml extension?

Also, as a mentioned above, the problem I had was that my server computer does not run the SSI and perl commands when I view the site from the same computer. Is there any way for me to get around this, so that my server will view my site in the normal fashion that any other computer connecting does?

Thanks again for the help!
 

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
You need to map the .html extension to the SSI dll handler... I don't have an IIS box near me, so I can't
go into the specifics unfortunately.
 

daniel1113

Diamond Member
Jun 6, 2003
6,448
0
0
Ah yes. Thanks for the help, Mucman. I'm finally starting to figure out IIS... I am used to using Apache web servers that use the .htaccess file and such. It's all so simple... lol.
 

daniel1113

Diamond Member
Jun 6, 2003
6,448
0
0
Oh, I forgot to mention that I figured out my other problem as well, so everything has been cleared up. Thanks again to both of you for the help.