Apache

What is the different between Apache Module and CGI ?

Andrew
andrewyuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shiversCommented:
An Apache module is compiled into the server - and usually parses HTML files, runs scripts, etc.

A CGI is an external program living in a directory that is accessible by remote users- the output of the CGI is piped directly thourgh to the user's browser
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
andrewyuAuthor Commented:
Thank you very much !

Does it mean that I can write a event for a action ? Anyway, when do I use Apache Module and when do I use CGI ?

Andrew
0
shiversCommented:
use apache modules where you want to add extra functionality to the server (like being able to process another inline scripting language)

use CGI to perform dynamic functionality on your web sites - i.e. as a hit counter, email form processor, etc

event/action?  er - the module is essentially (AFAIK) just a handler for a particular type of file - a CGI can be invoked by accessing it's URL - the server will then execute the CGI program and return it's output through the net to the user's browser
0
andrewyuAuthor Commented:
I understood, thank you very much !

Andrew
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.