Switching Painlessly from IIS to Apache?
Sheik Yerboutii asks: "The recent downtime caused by the Code Red and NIMDA worms
has prompted my Manager to start considering moving away
from IIS to Apache. I've been tasked with finding out just how difficult it will be to move to the new webserver. I've got to find out things like how to install and configure it (relatively easy, it's all documented at www.apache.org) but also, things like what do we de now that we've been working in VBScript ASP for about 6 moths?" We posted a similar question to this one,
just over a year ago. Any changes or additions to the advice given in that discussion?
"I've read that Apache::ASP exists and that's got something to
do with mod_perl but now I'm going in circles figuring out how to make this thing work. I also can't find straight answers on things like if we make the cut over, will we have to convert the VBScript ASP to Perl ASP?
Can anyone relay their experiences with cutting from IIS to Apache? Running ASP with Apache? Most importantly, what are the best resources available for Apache administrators? (hopefully something with a discussion forum)"
To just write a worm for Apache, so that way people wouldn't have to switch.
Je t'aime Stéphanie
As bad as the recent IIS worms have been, has your boss done a cost/benefit analysis of converting completely over to Apache? Depending upon how much your company has invested in VBScript ASP code, it may not be worth the extra investment to switch.
Of course, if the codebase is relatively small, rewriting the ASP stuff in Perl or Python or C or PHP or... would be an easier task. (Not that I'd want to do it...)
Invest in better network admins so you won't have the downtime with IIS when these worms are released.
I assume you saw The Apache::ASP home, a link you can find on the mod_perl home.
You can also run ASP on Apache using ChiliSoft ASP, which seems to be owned by Sun now. I've had little experience with the latter, but it seems to work out of the box with existing ASP sites and also has a web admin utility, along with the warm and fuzzy feeling of paying lots of money for something :-)
Apache and IIS are both pretty flexible, but Apache at its core is much simpler and forces you to specify what you want rather than having everything available by default and allowing you to stumble into what you might need. (Not that you'd do that, but I'll be a lot of sysadmins are wishing that IIS weren't so featureful right now...)
Chris
Chris
M-x auto-bs-mode
Is there a way to simply run ASP from within Apache for Windows?
It would be a much simpler solution...
Napster-to-go says "Fill and refill your compatible MP3 player", which is a lie. It's not MP3. It's WMA with DRM.
The Apache::ASP will, AFAIK, only work with PERL ASP code. ChiliSoft will do VBScript ASP code.
i.e. you either use ChiliSoft or do a rewrite of your code base.
The ActiveScripting people have some good options under Windows that might be helpful if you want to maximize code reuse.
Gentoo Sucks
There is an app called asp2php that claims to convert 90% of asp/vbscript to php including the DB stuff. It can be found at
http://asp2php.naken.cc/
I have not used it but it does seem to be updated.
Oh really?
No, I don't work for them, but the $500 I spent was well worth it. If you want to see it in action, e-mail me privately and I'll give you a login to poke around.
In the thread about the Gartner group recommending moving away from IIS, JediTrainer had some solid migration experience that you might find interesting.
... takes how much time?
Theres are program out there called ASP2PHP that converts ASP scripts to PHP. Can't remember the URL sorry....
- Install PHP on your IIS server.
- Convert your ASP to PHP using ASP2PHP and get it running on Windows/IIS/PHP.
- Install Apache with PHP on the Windows box. Get your site running on Windows/Apache/PHP.
- Install a new box with some securish Unix lookalike or other and move the site over.
As I have never attempted anything like this it may or may not work for you. However as ASP2PHP is GPL:ed, at least downloading it and giving it a try should be quite doable. If you have any native Windows code (aka "vendor lock in"), you'll probably have to re-write it though.Whose idea was it to put Windows servers on the 'net in the first place, anyway?
Cheers //Johan
Installed the Bubblemon yet?
It seems like ChiliSoft ASP would be a good purchase for RedHat or SuSE. That way they can opensource it and say, "See, our Apache webservers support ASP right out of the box."
For that matter, I guess they don't even need to opensource it. They could include it as part of their package.
In my experiences, the lack of ASP is the biggest turnoff for people using IIS but interested in switching to Apache. I know PHP is a good solution, but it takes a while to port hundreds of applications written in VBScript and Jscript.
The man who trades freedom for security does not deserve nor will he ever receive either. - Benjamin Franklin
Check out http://www.halcyonsoft.com/. They wrote ASP in Java - very portable.
From their home page:
"Are you looking to banish Code Red and Nimda forever by moving your ASP apps to a non-IIS server?
Instant ASP runs on ANY Java-enable platform from a Linux box to an S/390 and has NONE of the security vulnerabilities of IIS..."
The non-profit that I work for can't afford to add a bearded Unix guy to the payroll. The IT staff is me and couple people who mainly know Windows and a little Netware.
.conf files doesn't excite them.
The rest of the group would rather just keep patching IIS every couple weeks, because the setup is trivial point and click. Twiddling with
Suggestions?
I recently received the ASA (American Society of Appraisers) email newsletter. Someone wrote an article talking about the recent Nimbda and WTC.EXE attacks and how we should be careful to update our virus software, not open attachments, etc. She also mentioned the Gartner Group recommendation. However, no alternatives to IIS were discussed. I sent off an email talking about Apache's strength and popularity over IIS. I also referenced this discussion in my email. Here is the text of what I wrote:
6 0,00.html
4 Slashdot.org provides an open forum to discuss current events, news articles and various topics, all loosely tied to their relevance to information technology. The topic of this particular link is "Switching Painlessly from IIS to Apache?" A network administrator has received a mandate from management to explore a systems migration from IIS to Apache, largely due to the recent Code Red and Nimda attacks. The discussion that follows provides a plethora of informative, insightful and interesting comments.
*****
Thank you for writing your informative article regarding recent computer virus and worm attacks in the ASA BV E-Letter. Since a number of valuation analysts sometimes find themselves administering the corporate network (as two associates do at my company), the tips you provided and the accompanying links will be very helpful. I took notice to one particular passage in your article:
"On September 25, 2001, the research group Gartner warned enterprises to
'immediately' replace their Microsoft Internet Information Server (IIS)server software with a more secure server application."
I have been reading about Gartner's recommendation through various news outlets, but no one ever seems to go on and actually talk about alternatives. I would like to offer you, and any other E-Letter readers that may ask, some information on at least one alternative.
The Apache Software Foundation (www.apache.org) develops the Apache HTTP (web) Server. Here is an excerpt from their "about" page that discusses their overall mission:
"The Apache Project is a collaborative software development effort aimed at creating a robust, commercial-grade, featureful, and freely-available source code implementation of an HTTP (Web) server. The project is jointly managed by a group of volunteers located around the world, using the Internet and the Web to communicate, plan, and develop the server and its related documentation. These volunteers are known as the Apache Group. In addition, hundreds of users have contributed ideas, code, and documentation to the project. This file is intended to briefly describe the history of the Apache Group and recognize the many contributors."
Apache is actually the number one used web server on the internet. According to Netcraft, an organization that surveys the internet and collects web server and usage statistics, Apache held an approximate 60% market share of active web sites as of August 2001, versus an approximate 28% market share for Microsoft's IIS. Survey results here: http://www.netcraft.com/survey/ This survey includes over 30 million web sites and does not dilineate between corporate use, personal use, Fortune 500/100 companies, etc. (as some other surveys do).
In addition, Apache (especially when used in conjunction with UNIX-based operating systems) tends to provide a more secure web server solution. A recent Ziff-Davis (ZDNet) article from July 20 discusses the security robustness of Apache over IIS. Here is the link: www.zdnet.com/eweek/stories/general/0,11011,27928
Finally, I refer you to this link: http://slashdot.org/article.pl?sid=01/09/25/19420
Again, thank you for writing your article and I hope that some of the information I have provided you today will be helpful to our industry colleagues.
*****
Anyone in a similar situation is free to copy this letter and mark it up appropriately for their needs.
Bill Clinton: Pimp we can believe in. - The Shirt!!!
Well there is the PerlScript option ;-) )
(which would have been a more powerful thing to be writing ASP in on IIS anyways
Or there's non ASP, PHP
But more to your interest might be the idea that was kick aound awhile ago on the mod_perl list
(that some peple started implementing I belive) of a filter for Apache::ASP that would do a cached JIT VbScript->Perl translation.
Were that I say, pancakes?