LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-12-2008, 04:35 PM   #1
SimbaSpirit
Member
 
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:

Quote:
# 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.

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

Rep: Reputation: 59
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
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,064
Blog Entries: 1

Rep: Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374
Hi,

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
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

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


Reply

Tags
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


All times are GMT -5. The time now is 05:52 PM.

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