Developing with Apache

Posted on 2005-04-12
Last Modified: 2010-03-04

We are evaluating Apache as a web server and we want to build our application with it.

As I understand, there are 3 ways to write applications for Apache:
1. CGI
2. Loadble module.
3. ISAPI (though it is not recommended by Apache).

Performance is critical for our application so it seems that option 2 is the best.
However, it seems that we can write it using C and not C++. Am I right about it? Any other thoughts, suggestions for the ultimate beginner in Apache?

Question by:yronnen
    LVL 14

    Expert Comment

    You can right C++ apps for apache using cgicc.

    It's fairly easy to use but you should have mod_cgi installed in apache in order to use it.

    LVL 7

    Expert Comment

    Don't forget PHP. =) ASP. and All can be used in apache in some form or another.
    LVL 14

    Accepted Solution

    <offtopic>omg, i was really sleepy and i didn't notice that i mispelled write for right...

    If you want to do scripting then PHP is good but if you want more performance then CGI is better. Each one has it's pros and cons. Scripting will allow easy modifications and is quite easy to debug, however it can cause a little bit more on performance than CGI
    CGI allows better performance but debugging can be a bit more difficult and you have to recompile the source code just to fix it whereas PHP scripting does not need compilation. It's up to you to decide which is better.

    LVL 7

    Assisted Solution

    Don't worry, we read through the typo. Computers are all about reading between the lines. =)


    I use PHP for it's flexibility in the face of CONSTANTLY changing customer requirements.
    LVL 5

    Author Comment

    Well, the first requirement is performance. I should be able to stream live video with minimum latency.
    LVL 7

    Expert Comment

    Recommend: 50 pts to each answerer, and an administrative close on the question.
    LVL 7

    Expert Comment

    I would also like to state, for the record, in every instance I've used LAMP -- Linux/Apache/mysql and php, it's been faster than Windows 200X Server / IIS / Microsoft SQL Server and ASPX. I have to blame the GUI for some of it. Apache Linux is a good way to go for streamed connections if you prepare the hardware and software properly.


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now