LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-15-2010, 02:14 AM   #1
worldofchat
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
server name directive


Hi there

So im setting up my own server never done it before so should be interesting Im going to install apache but it says in my instructions

First thing is make sure you open up /etc/httpd/conf/httpd.conf and at least change the ServerName directive

So ive found the file, and i managed to open it with hte command

ed httpd.conf

But it just showed a 5 or 6 digit number.

Do i need to edit this and why ?

What command should i use to edit? what should i put into this file ? how do i close the file when ive edited it?

Woc

Last edited by worldofchat; 01-15-2010 at 02:16 AM.
 
Old 01-15-2010, 04:45 AM   #2
nileshgr
Member
 
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84

Rep: Reputation: 16
LOL ! ed is not an editor.

Use vim or vi to edit if you are familiar with it. Otherwise use some GUI editor like gedit.
 
Old 01-15-2010, 08:12 AM   #3
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
GNU nano is quite an easy editor.
 
Old 01-17-2010, 06:39 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Actally, ed is a really old school editor, pre-cursor to vi. However, these days I'd definitely use vim (may be symlinked from the name vi).
http://linux.die.net/man/1/ed
 
Old 01-27-2010, 10:32 AM   #5
nileshgr
Member
 
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84

Rep: Reputation: 16
Quote:
Originally Posted by chrism01 View Post
Actally, ed is a really old school editor, pre-cursor to vi. However, these days I'd definitely use vim (may be symlinked from the name vi).
http://linux.die.net/man/1/ed
vi and vim are different.

vim stands for vi improved. vim has a pleothra of features as compared to its predecessor vi.
 
Old 01-27-2010, 11:54 AM   #6
Kluk-Kluk!
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian, Ubuntu, RedHat, CentOS and others
Posts: 3

Rep: Reputation: 0
Both vi and vim are great editors. They however have quite a steep learning curve. If you are new to Linux I would recommend nano as it is easy to use....
 
Old 01-27-2010, 07:43 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Different editors, but some distros do symlink the name vi to point to vim. You can usually access it from via the full path.
 
  


Reply


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
apache and order directive h725 Linux - Server 2 08-31-2009 02:36 PM
%config directive sandricky Linux - Software 0 01-30-2009 07:57 PM
OpenVPN - server directive network/netmask combination is invalid anthonysaulnier Linux - Networking 4 11-18-2008 09:41 PM
GRUB 0.95 Color Directive RJEmery Linux - Newbie 1 04-19-2005 08:38 AM
Apache Directive sopiaz57 Linux - Security 2 12-09-2003 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration