Go Back   Web Server Hosting Forum by BODHost > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-08, 14:14
BOD Member
 
Join Date: Jan 2008
Location: India
Posts: 8
Send a message via Yahoo to mayur
Smile need help with server administration

Hi Mates,

M newbie here, I have a linux dedicated server with bodhost !!
The server is fully managed & Bodhost helps me all time but I want to learn managing my server myself.
I have sshed with putty some times but don't know all putty commands. Like just I have to remove a dns entry from httpd.conf but I have no Idea, I don't know how to edit files with putty, I am totally new to these things but want to learn it all. I shall be grateful to you if you can show me some resources / Tutorials regarding server administration / SSH Commands, installation.

Thanks in Advance !!
Reply With Quote
  #2 (permalink)  
Old 01-25-08, 15:05
BOD Member
 
Join Date: Mar 2006
Location: Scotland
Posts: 201
Default

Hello Mayur,

Welcome to Bodhost forum.

I think you should look for a list of basic Linux/Unix commands - this will help you get around via the command line. You should be very careful about editing httpd.conf .
If you want to try out opening the file, you can start by changing into the correct directory:

cd /usr/local/apache/conf/

(cd means change directory)

First step is to make a backup of the file you want to edit:

cp httpd.conf httpd.conf.bak

(cp means copy)

Then use the pico program (pico is a good simple text editor) to view the file:

pico httpd.conf

Control + O to save the file, Control + X to exit.

If you make a change, then you must restart Apache for it to take effect. The command can differ accross different versions, but usually it is:

apachectl restart

If the restart fails, you can always revert back to your old version:

mv httpd.conf httpd.conf.broken
mv httpd.conf.bak httpd.conf
apachectl restart

(mv means move, so in the above you use move to rename the broken httpd.conf file and then move the .bak file to replace the broken one)
Reply With Quote
  #3 (permalink)  
Old 01-25-08, 21:54
BOD Member
 
Join Date: Jan 2008
Location: NYC
Posts: 94
Default

Welcome, and congratulations on wanting to learn more about the geekier side of Linux and server administration. The Linux learning curve can be steep, but at least you only have to learn it once.

You can find a set of basic Linux commands here. But before playing with them on a live server, let me make a couple suggestions:

1. Remember the old proverb: "He who hacks much at root will kill tree."

2. ALWAYS make a backup before editing critical files. This may mean backing up the file itself (the cp command is your friend), or it may even mean making a VZ backup if you're doing something really, really dangerous.

3. Buy a good book about Linux. There are tons of them out there. You are probably running centOS on your VPS, which is almost identical to RedHat; so you may want to buy a "Dummies" book for RedHat (or centOS, if one is available).

4. I strongly advise you to buy an old laptop on eBay. Anything with at least a 1 GHz CPU and at least 512 MB RAM oughtta do ya. Then download centOS or Fedora and install it on the laptop. (If you buy a book, there may be a CD included that you can install.) Then practice on your laptop before you start hacking your server.

You can also install Linux on an older PC that no longer runs Windows well, or even build your own Linux box out of spare parts, if you want. Either way, I think it's good to practice on a machine that's not a live Web server until you're comfortable with Linux.

Linux is about as close to a miracle as there in is IT. That something that originated with a college kid's desire for a cheap Unix box should become such a stable, elegant platform as it is still amazes me.

Good luck,

Richard
Reply With Quote
  #4 (permalink)  
Old 01-26-08, 06:54
BOD Member
 
Join Date: Jan 2008
Location: India
Posts: 8
Send a message via Yahoo to mayur
Default

Thanks mate, It worked, I successfully removed the domain entry from httpd.conf

Cheers !

Quote:
Originally Posted by carl View Post
Hello Mayur,

Welcome to Bodhost forum.

I think you should look for a list of basic Linux/Unix commands - this will help you get around via the command line. You should be very careful about editing httpd.conf .
If you want to try out opening the file, you can start by changing into the correct directory:

cd /usr/local/apache/conf/

(cd means change directory)

First step is to make a backup of the file you want to edit:

cp httpd.conf httpd.conf.bak

(cp means copy)

Then use the pico program (pico is a good simple text editor) to view the file:

pico httpd.conf

Control + O to save the file, Control + X to exit.

If you make a change, then you must restart Apache for it to take effect. The command can differ accross different versions, but usually it is:

apachectl restart

If the restart fails, you can always revert back to your old version:

mv httpd.conf httpd.conf.broken
mv httpd.conf.bak httpd.conf
apachectl restart

(mv means move, so in the above you use move to rename the broken httpd.conf file and then move the .bak file to replace the broken one)
Reply With Quote
  #5 (permalink)  
Old 01-26-08, 06:58
BOD Member
 
Join Date: Jan 2008
Location: India
Posts: 8
Send a message via Yahoo to mayur
Smile

Thanks to you,
The link you gave is very useful for linux commands,
Are there some more resources available !! ? Like tutorials for some known problems.

Thanks for your advise, I will try it.

Quote:
Originally Posted by RichardM View Post
Welcome, and congratulations on wanting to learn more about the geekier side of Linux and server administration. The Linux learning curve can be steep, but at least you only have to learn it once.

You can find a set of basic Linux commands here. But before playing with them on a live server, let me make a couple suggestions:

1. Remember the old proverb: "He who hacks much at root will kill tree."

2. ALWAYS make a backup before editing critical files. This may mean backing up the file itself (the cp command is your friend), or it may even mean making a VZ backup if you're doing something really, really dangerous.

3. Buy a good book about Linux. There are tons of them out there. You are probably running centOS on your VPS, which is almost identical to RedHat; so you may want to buy a "Dummies" book for RedHat (or centOS, if one is available).

4. I strongly advise you to buy an old laptop on eBay. Anything with at least a 1 GHz CPU and at least 512 MB RAM oughtta do ya. Then download centOS or Fedora and install it on the laptop. (If you buy a book, there may be a CD included that you can install.) Then practice on your laptop before you start hacking your server.

You can also install Linux on an older PC that no longer runs Windows well, or even build your own Linux box out of spare parts, if you want. Either way, I think it's good to practice on a machine that's not a live Web server until you're comfortable with Linux.

Linux is about as close to a miracle as there in is IT. That something that originated with a college kid's desire for a cheap Unix box should become such a stable, elegant platform as it is still amazes me.

Good luck,

Richard
Reply With Quote
  #6 (permalink)  
Old 01-26-08, 07:10
BOD Member
 
Join Date: Jan 2008
Location: NYC
Posts: 94
Default

There are thousands. Here are a few:

http://www.linux-tutorial.info/
http://lowfatlinux.com/
http://www.ee.surrey.ac.uk/Teaching/Unix/
http://www.littleigloo.org/tutorial.php3

And some magazines:

http://www.linuxjournal.com/
http://www.linux-mag.com/

Have fun!

Richard
Reply With Quote
  #7 (permalink)  
Old 01-28-08, 09:35
BOD Member
 
Join Date: Jan 2008
Location: India
Posts: 8
Send a message via Yahoo to mayur
Default

Thanks mate, It is very useful.

Thanx
Reply With Quote
  #8 (permalink)  
Old 01-29-08, 13:24
BOD Member
 
Join Date: Mar 2006
Location: Scotland
Posts: 201
Default

Your Welcome,


Please let us know if you will face any kind of technical problem.
Reply With Quote
  #9 (permalink)  
Old 01-31-08, 14:52
BOD Member
 
Join Date: Nov 2007
Posts: 35
Default

Hello Mayur,


to bodhost forum.
Reply With Quote
  #10 (permalink)  
Old 02-01-08, 13:12
BOD Member
 
Join Date: Jul 2007
Posts: 128
Default

Welcome to Bodhost, glad to see to see you here.
Reply With Quote
  #11 (permalink)  
Old 02-10-08, 04:04
BOD Member
 
Join Date: Jan 2008
Location: India
Posts: 8
Send a message via Yahoo to mayur
Default

Thanks to all for a warm wel come, I am grateful to all.

Reply With Quote
  #12 (permalink)  
Old 02-18-08, 16:02
BOD Member
 
Join Date: Nov 2005
Posts: 206
Default

You are most welcome,


If you have any queries related to web hosting please feel free to ask here ,we will definitely try to solve it at the earliest.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:52.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.