pavement

Apache2, Installing

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(minor updates)
m (Reverted edits by DavidYoung (talk) to last revision by Map7)
Line 59: Line 59:
  
 
[[Category:FreeBSD for Servers]]
 
[[Category:FreeBSD for Servers]]
 
== A Young Girl with a Big Heart and an Old Man with a Lot of Flowers ==
 
 
When I was very young (about ten or eleven years old), I heard that our neighbor, a retired physician, had lost his wife after a long illness. He was such a dear soul, and he had the most spectacular gardens in his backyard. The whole neighborhood could see his glorious flowers from the street. The backyard was a profusion of daisies and roses, snapdragons and lilies, hyacinths and columbines. I used to think there wasnt a flower in the world that he didnt grow.
 
 
[[http://goodvillenews.com/A-Young-Girl-with-a-Big-Heart-and-an-Old-Man-with-a-Lot-of-F-lg9.html A Young Girl with a Big Heart and an Old Man with a Lot of Flowers]]
 
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 
 
== NASA Announces Undersea Exploration Mission ==
 
 
An international team of aquanauts will travel again to the bottom of the Atlantic Ocean to simulate a visit to an asteroid in the 16th expedition of NASA Extreme Environment Mission Operations (NEEMO).
 
 
[[http://goodvillenews.com/NASA-Announces-Undersea-Exploration-Mission-9Shwm3.html NASA Announces Undersea Exploration Mission]]
 
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 
 
== 15 Things You Should Give Up To Be Happy ==
 
 
Here is a list of 15 things which, if you give up on them, will make your life a lot easier and much, much happier. We hold on to so many things that cause us a great deal of pain, stress and suffering and instead of letting them all go, instead of allowing ourselves to be stress free and happy we cling on to them. Not anymore. Starting today we will give up on all those things that no longer serve us, and we will embrace change. Ready? Here we go:
 
 
[[http://goodvillenews.com/15-Things-You-Should-Give-Up-To-Be-Happy-r1EA1L.html 15 Things You Should Give Up To Be Happy]]
 
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 
 
== Change Your Life Through the Art of Self Mastery ==
 
 
There is only one corner of the universe you can be certain of improving, and thats your own SELF. ~ Aldous HuxleyI will share with you today some of the things I shared recently with an audience of close to 100 people, a topic that is very dear to my heart the Art of SELF Mastery, what really means to be true to your SELF, and the inner peace, harmony, love and the inner power that comes from being your true SELF.
 
 
[[http://goodvillenews.com/Change-Your-Life-Through-the-Art-of-Self-Mastery-tEkVh3.html Change Your Life Through the Art of Self Mastery]]
 
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 
 
== Top Five Regrets of the Dying ==
 
 
For many years I worked in palliative care. My patients were those who had gone home to die. Some incredibly special times were shared. I was with them for the last three to twelve weeks of their lives.
 
 
[[http://goodvillenews.com/Top-Five-Regrets-of-the-Dying-3L0XOd.html Top Five Regrets of the Dying]]
 
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 

Revision as of 16:30, 25 August 2012

Apache 2.0

See also Apache - Apache Controlling - Configuring Apache

We'll walk through the installation for Apache2. It's very simple to install - in earlier versions of Apache, you had to install either mods or different versions depending on whether you wanted to enable certain features (ssl, etc). With Apache2, they are incorporated into the main package, and enabled or disabled when you configure Apache. There are a few exceptions, but most everything you'll need to run a modern feature-rich webserver is included with the Apache2 port.

Note: As always, before installing any ports, update your ports tree with cvsup if it has been a while.

Let's get started:

>su
Password: (enter root password)
oyabun# cd /usr/ports/www
oyabun# ls | grep apache
apache-contrib
apache-forrest
apache-jserv
apache13
apache13+ipv6
apache13-fp
apache13-modperl
apache13-modssl
apache13-modssl+ipv6
apache13-ssl
apache20
mod_jk-apache2
mod_jk2-apache2
oyabun# cd apache20
oyabun# make install clean

First, I changed to the superuser, as we'll be installing software. I changed directory to the www section of the ports tree, and filtered a listing of that directories contents for all ports that contained the word 'apache' using grep. The one we want is apache2. I then changed to that directory, and issued the make command, with options install and clean specified, to install the software and clean up the makefiles when done.

Note that you'll want to check the file /usr/ports/www/apache2/Makefile.doc to see what modules you can build into apache2 -- e.g., LDAP or IPv6 or threading. To include the one you want, you'd want to build apache like so:

samizdata# make -DWITH_LDAP_MODULE install clean

After a few seconds, minutes, or hours (depending on whether your hardware is going to waste, reasonable, or a throwback to the early 90's), Apache2's installation will be completed, and you'll be faced with this note:

Available variables you add/set to /etc/rc.conf.
- apache2_enable (bool):      Set to "NO" by default.
                              Set it to "YES" to enable apache2.
- apache2ssl_enable (bool):   Set to "NO" by default.
                              Set it to "YES" to start apache with SSL
                              (if <IfDefined SSL> exists in httpd.conf).
- apache2limits_enable (bool):Set to "NO" by default.
                              Set it to yes to run `limits $limits_args`
                              just before apache starts.
- apache2_flags (str):        Set to "" by default.
                              Extra flags passed to start command.
- apache2limits_args (str):   Default to "-e -C daemon"
                              Arguments of pre-start limits run.

As you can see from this, ssl suport is included in Apache2, as opposed to Apache 1.3. I included this output because I have a bad habit of scrolling important stuff like this out of the buffer after installations, and it's nice to have it saved here. You don't need to worry about any of this until you configure Apache.

So, Apache2 is now installed, you just need to actually set it up.

Please visit Apache Controlling to learn how to actually start your webserver.

Personal tools