Your Daily Source for Apache News and Information |
Breaking News | Preferences | Contribute | Triggers | Link Us | Search | About |
\n'); } if ( plugin ) { document.write(' '); } else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)) { document.write(''); } //--> |
|
By Rich Bowen During my "Introduction to Apache Server" talk at ApacheCon, I talked about configuring your Apache compilation using the That's Well, I suppose there's really no particular reason that I talk about one over the other. Except that In my earlier column about configuring your Apache compilation, I talked mainly about So, in this article, I'll talk about using Just to be Clear Here ...
tar -zvxf apache_1.3.14.tar.gz cd apache_1.3.14 ./configure --prefix=/usr/local/apache make make install
If you want to do a default install, using tar -zvxf apache_1.3.14.tar.gz cd apache_1.3.14/src cp -f Configuration.tmpl Configuration vi Configuration ... make changes to Configuration if desired ... ./Configure make make install DisadvantagesThere are some distinct disadvantages to using First, it's not obvious that it's even an option. If you unpack the source tarball, and go into the directory, if you have any familiarity with Open Source software packages, you're probably going to be familiar with running a If you are aware of this way of doing things, the Finally, the documentation is somewhat lacking on the differences between the two ways of doing things, but seems to indicate that AdvantagesThe biggest advantage, in my mind, of using For example, when I built Apache the last time, I used something like: ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-module=auth_dbm --enable-module=auth_mysql And that was a rather simple compile. The problem is, even to type that line, I had to look up the syntax of the various arguments and try to remember what the module names were. This may not be a big deal for most people, but I rebuild Apache a lot, and it gets very irritating. The nice thing about This is also very handy if you are building Apache on a test system, and when you get it right, you want to build Apache on your production system in the same way. Simply grap that Note that although the file ./Configure -file Configuration.saved_prefs Editing the Configuration file by handIn the old days, the only way to specify compliation parameters was to edit the Configuration file by hand. Of course, we had to walk to school in bare feet, too. Uphill. In the snow. The good old days weren't all that good. Anyways, if you're going to be working with these Most of the things in there will not need to be customized, but it's good to get an idea what they are all about. At the top of the file is a brief explanation of what you are looking at. This section is reproduced here, rather than trying to explain what it talks about: # There are 5 types of lines here: # '#' comments, distinguished by having a '#' as the first non-blank character # # Makefile options, such as CC=gcc, etc... # # Rules, distinguished by having "Rule" at the front. These are used to # control Configure's behavior as far as how to create Makefile. # # Module selection lines, distinguished by having 'AddModule' at the front. # These list the configured modules, in priority order (highest priority # last). They're down at the bottom. # # Optional module selection lines, distinguished by having `%Module' # at the front. These specify a module that is to be compiled in (but # not enabled). The AddModule directive can be used to enable such a # module. By default no such modules are defined. For most of us, the main thing that you're going to be modifying is the module selection lines. The other things should, for the most part, be left for the folks that really understand what they are doing. Towards the bottom of the file, you'll see a lot of lines that look like: AddModule modules/standard/mod_cgi.o This indicates that a particular module (in this case, You can cause a module to be compiled as a DSO (shared object) by using the SharedModule modules/standard/mod_vhost_alias.so Make sure that if you do this, It is very instructive to generate Once you have made all of the changes that you want in your So, Which Should I Use?Apparently, there are folks that feel strongly about using either I would recommend that you use both. Use If you're only ever going to do a default installation of Apache, and you're never planning to change anything, it really does not matter which method you use. That's All, FolksThat's about it for this week. If you have questions and/or suggestions for future articles, please feel free to contact me via email. Thanks for reading. Related Stories: |
|
|
About Triggers | Media Kit | Security | Triggers | Login |
All times are recorded in UTC. Linux is a trademark of Linus Torvalds. Powered by Linux 2.4, Apache 1.3, and PHP 4 Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy. |