On Tue, Feb 21, 2012 at 2:17 PM, <brittany.m.pears...@accenture.com> wrote:
> I’ve recently inherited the administration duties of my team’s Apache > server. I’m new to Apache, but I’ve been picking up as much as I can > through tutorials and Google, and from what I can tell the original setup > of our server is messy. Someone decided it was a good idea to configure the > server to startup using apache2.conf, then use httpd.conf and ports.conf as > secondary configuration files. I’d like to standardize our setup – to that > end, I’ve taken a standard httpd.conf file from my company’s tutorial, > merged in all our settings from the trio of config files and attempted to > refresh Apache with the new file. It won’t start with the file named > httpd.conf, it complains that there’s no apache2.conf file to read, but > even if I name the file how the server expects I get errors that look > pretty basic to me. For example, I get the error: “ Invalid command > 'ServerType', perhaps misspelled or defined by a module not included in the > server configuration.” I receive the same error for the UserDir property, > among others. **** > > ** ** > > With the setup I’ve described, is there any way to figure out what is > going on? Why it looks for the wrong file at first, and why it can’t > recognize standard properties like ServerType? Am I missing pieces of the > installation? Or should I just keep commenting out everything that’s > causing problems? We’re running Apache version 2.2.14 on an Ubuntu > installation, version 10.04.3. > If you are using the Apache that is shipped with Ubuntu (i.e. installed through apt), you should keep the directories that way they were. Ubuntu has a great default configuration layout. If you really want to change it, you can either recompile apache to look in a different place or you can add the -t flag to your init.d which will allow you to move the configuration file http://httpd.apache.org/docs/2.2/configuring.html#main. As far as the missing "ServerType" directive: Your tutorial is probably REALLY OLD!! See http://httpd.apache.org/docs/2.0/upgrading.html - Y