valavanp has asked for the wisdom of the Perl Monks concerning the following question:

Apache Web Servers are preferable than IIS for CGI-perl. Why? What are the extra features apache have than IIS. Some features i know are it's free and faster. Is there any other reason to go for apache. Please Explain?

Replies are listed 'Best First'.
Re: Apache web servers for CGI-perl.
by kabeldag (Hermit) on Jun 22, 2006 at 07:58 UTC
    Apache web server is better to use with Perl because:
    • Apache web server is open-source
      (you can customize it to your CGI needs, Interface Perl with a wider array or open-source applications
      which provide more benefits or scope, get access to more documentation and support more easily)
    • It is available for multiple platforms. (speaks for itself)
    • Apache is easily scalable as compared to IIS
      (you can run it and Perl on lesser resource specs and still acheive good performance)
    • It isn't Microsoft
    • It's free. And so is Perl.

    Haven given all these general points about why HTTPD is better than IIS which may or may not completely relate
    to CGI itself. Please note that I have never benchmarked the 2 web servers on any tests (including CGI Perl or mod_perl). And you may think I am biased. That's probably because I am. But for good reason.

    I guess that running Perl with Apache on Linux/UNIX is a good match cause of the nature of the Perl API. But there is no reason to not run Perl on a Microsoft box. Perl can run on anything. Apache just knows more about Perl than IIS. I could be completely wrong in any of my points and I am not qualified to comment really. But still. I just had to reply :)

Re: Apache web servers for CGI-perl.
by GrandFather (Saint) on Jun 22, 2006 at 02:38 UTC

    If you tell us what are the features that are important to you for a Web server we may be able to help you make your decision.

    DWIM is Perl's answer to Gödel
Re: Apache web servers for CGI-perl.
by McDarren (Abbot) on Jun 22, 2006 at 02:38 UTC
    "..Please Explain?"

    Explain what? Why I shouldn't do your homework for you?

    C'mon - do a bit of research. Make an effort to answer this yourself - or at least show some signs that you have. Ever heard of google? 2 minutes of googling should give you a wealth of information.

    Darren :)

    PS. If it's not homework, then I apologise in advance for my first remark, but the second remark stands

Re: Apache web servers for CGI-perl.
by gawatkins (Monsignor) on Jun 22, 2006 at 14:54 UTC

    My suggestion is to find out by doing some testing, you can easily set them both up to run on the same system (different ports). Once you have done that, you can perform testing that will be very meaningful to you. After you have tested both with CGI, compare those results to Mod-Perl for Apache. As for my experience, I run both for some internal only sites, and both have their strong points and weaknesses.

    Thank you,
    Greg W.