[Linux] Confounded by apache2 on ubuntu 7.10 server

linux@flux.org linux@flux.org
Sat, 5 Jan 2008 14:24:56 -0500


I don't know the answer for sure, but maybe I can help you figure it
out. It might be helpful to look at the command line that is used to
start apache.  In the systems I'm familiar with, I would look at the
starting script (in Fedora, the one that eventually runs when you type
"service apache restart", or perhaps ps auxww | less if you have
restarted apache recently enough so that the pages holding the command
line have not swapped out.

Then look at the man page to see which parameter on the command line
is the config file - or which might be if it is not swapped out.

Finally, consider starting apache with strace going to a file and
immediately stopping it - then egrep -i  that file for 'open|stat' to
see which files it is opening or checking existence of - likely it
opens its configuration file somewhere. :-)

On Jan 5, 2008 12:02 PM, Steven Benmosh - wordz2u@gmail.com
<+flux+simicich+8e3dc7c87a.wordz2u#gmail.com@spamgourmet.com> wrote:
> I want to run a web site on my home computer, using ubuntu 7.10 server and
> apache2. I have hosted similar sites in the past, and the configuration file
> used to be httpd.conf - you put your named virtual host information there
> and everything was fine. All the apache2 documentation I could find still
> suggest the same.
>
> Yet when I run ubuntu 7.10 server, the httpd.conf file is empty, and in its
> stead you have two subdirectories, sites-enabled and sites-available, each
> with its own default file. At this point I am not sure where I should
> include the virtual server info.
>
> The issue is not just how to get the server to run - using vmware I edited
> both sites-available and sites-enabled default files - and I can see the web
> pages. The questions are:
>
> 1. what is the right way to do it,
>
> 2. whether using httpd.conf will break things, and
>
> 3. why are these new ways of configuring not documented in a way that can be
> found by an average person reading the apache documentation in either ubuntu
> or apache web sites.
>
>
> Thanks and Happy New Year.
>
> Z.
>



-- 
A man can't live in the everglades
Where a man can hide and never be found and have no fear of the bayin' hound
But he better keep movin' and don't stand still
If the skeeters don't get him then the gators will