Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-12-2008, 04:35 PM   #1
Registered: Feb 2008
Posts: 109

Rep: Reputation: 15
General Knowledge about man pages and config files...

I've been uncertain about this since I started using Ubuntu, and I haven't found in any config files I've been through a clarification for setting things up.

When you have a config file with blocks commented out, is it usually expected that you uncomment that block, or that you write your own block below it?

The most recent example taht I can think of is this:
Taken from /etc/apache2/apache2.conf:

# Alias /error/ "/usr/share/apache2/error/"
# <Directory "/usr/share/apache2/error">
# AllowOverride directive-type .htaccess
# Options IncludesNoExec
# AddOutputFilter Includes html
# AddHandler type-map var
# Order allow,deny
# Allow from all
# LanguagePriority en cs de es fr it nl sv pt-br ro#
# ForceLanguagePriority Prefer Fallback
# </Directory>
As you can see, I want to change AllowOverride to enable .htaccess files (originally AllowOverride None)

Now do I need to change this and leave it commented (althought it would seem to defeat the purpose), uncomment it (which so far has caused an error... syntax?), or simply copy/paste my own version just below this?

This is so basic it's embarassing, but knowing for sure would help me a lot in future troubleshooting.

Old 08-12-2008, 04:39 PM   #2
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Commented out lines in config files are typically a) examples, and/or b) default values for your information. They become self-documenting examples of usage.

Leave the commented values, and add your own uncommented version below. This will allow easy diffs in the future when there are updates.
Old 08-12-2008, 06:37 PM   #3
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,815
Blog Entries: 27

Rep: Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111

I like to leave the commented examples as they are. I will then use the examples to produce my own. I will time stamp the new along with comments for what has been done and why.
Old 08-12-2008, 11:20 PM   #4
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Ok, thanks for the advice!


comment, conf, config, htaccess, man, pages

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
general knowledge of *NIX arnuld Linux - Distributions 34 07-10-2007 08:52 AM
need help with general knowledge jazzon Linux - Newbie 6 05-16-2004 12:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration