Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache2

Status
Not open for further replies.

MDEdwards

Technical User
Apr 15, 2002
61
US
I downloaded Apache2, however it had some major umm.. problems on my comptuer for some reason, so I went back to 1 -- is there any real advantage in getting Apache2 to work on my system?
 
Hi mate,

The advantages are that it is more stable and runs faster, however, if you are happy with your current set-up then there is no desperate need to change, don't worry about it..

If you want to upgrade to version 2 then the best way to do it would be to run it on a different port than your are running your current server, this allows you to test it without actually having to take your current server down..

Just set it up to run on port 8080 or similar and then access it by typing


Hope this helps Wullie

 
Apache 2.0 has some real advantages, but there are a few issues with this version that are not settled yet. Specifically, there are some unresolved difficulties in getting it to work with other software, such as PHP (4.1.x doesn't work), mod_perl, etc... These are all being worked out fairly quickly though, so I would expect within the next 2 or 3 months, it will be much easier to migrate to Apache 2.

Along with general performance enhancements and a cleaned-up codebase, there are three major advantages of Apache 2, as I understand it:

1. Each component has been modularized to a much greater extent than ever before. The details of serving HTTP data has been abstracted from the server-side processing interface, so that it is more possible for the HTTP part to be optimized for each platform. This is now called the Apache Portable Runtime, or APR. For example, the Windows version of Apache should now perform on par with the Unix version. Also, the APR on it's own can now be used as the HTTP output module for many other types of software, such as Java servlets.

2. The processing model itself has been modularized, with the concept of Multi Processing Modules (MPM). In the past, Apache handled multiple requests simply by having multiple "pre-forked" processes running. This was fine for Linux and some versions of Unix but very slow on Windows. Now, Apache can be run under three different models. a) as a preforked process, b) as a threaded process, or c) as a hybrid, with multiple processes, each handling a certain number of threads. In fact, there are other combinations of the above in the works also, such as the "perchild" model, which I don't fully understand yet.

3. The most interesting part, to me: Filtered I/O. This means that the output of one module can be used as the input of another module AS IF it were a file of its own. Let me rephrase that: For example, a mod_perl script can output data that can be then passed to PHP and parsed as a PHP script, which can then be passed as input to a server-side include, before finally being passed to the browser. The possibilities for this are endless! And it allows for easy re-working of existing web applications to plug into other applications.

These accomplishements, by the way, are a first for webserver software. I don't think there is any other webserver software (commercial OR open source) that does ANY of the three things mentioned above, much less all three. And this isn't the end. There are all kinds of other interesting enhancements. See
I think we will be busy for a few years figuring out all the cool stuff we can do with Apache 2 ;-). -------------------------------------------

"Now, this might cause some discomfort..."
(
 
I think we will be busy for a few years figuring out all the cool stuff we can do with Apache 2

As soon as we have figured it out, we will have to start again with a new version..


Now, this might cause some discomfort..."

All I can say is, I am glad that I am not in America, not that it wouldn't affect me just as much!!


Wullie

 
Just look at how long we spent with Apache 1.x? I think we will have some time to get things right.


(and off-topic, but...)

I think the discomfort of such things will be so great that the bill will never really pass, at least not in its present form. But hey, even if it passes, I'll be OK anyway, because just think what a black market there will be for those ancient 1.7 GHz computers with no copy-protection, running Linux or FreeBSD (both of which will no longer be hosted in the US). Time to stock up!! ;-)

And in my own software, I'll gladly practice some peaceful resistance against the gov't of the land of the used-to-be free, and the not-so-brave-anymore. Anyway, you would probably see a mass exodus of America's tech elite, as programmers and engineeers would find it much easier to manage their projects "offshore". America would become a third-rate techno-power so fast that Senator Hollings would probably be impeached, if not burned at stake. -------------------------------------------

"Now, this might cause some discomfort..."
(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top