LinuxQuestions.org
Visit Jeremy's Blog.
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 09-03-2006, 07:12 AM   #1
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Rep: Reputation: 15
Webserver - Red Hat Enterprise


Hi, i'm new to linux but how do i start a webserver on Red Hat Enterprise Version 4? Is their a link to how to start one with FTP server, DNS, server etc... (Yes i installed all the server components when i installed linux.

thank you
 
Old 09-03-2006, 08:45 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
There's different ways to start a service. Most services are started automagically on boot (or by changing runlevel) because they have the right linkage in the /etc/rc.d/rc.$RUNLEVEL/ hierarchy: this is set with "chkconfig" ("man chkconfig" for more info). (Other common places services are started from are /etc/inittab or /etc/rc.d/rc.local but these aren't as flexible with respect to starting stopping.)

A way to start a service manually could be to use the "service" command ("man service" for more info): Apache would then be started with "service httpd start". Another way to start a service manually could be to use the initscript in /etc/rc.d/init.d/: Apache would then be started with "/etc/rc.d/init.d/httpd start". Initscripts take away much of the burden of restarting services in the right order, remembering the right flags to use, modules to preload, firewall rules to set etc, etc but some distributions thought it wise to not make systems management easier. On those boxen you will have to start the service manually. For Apache that means using "apachectl".


I hope this gives you an idea of the different ways to start a service. Now, if this is a freshly installed box then please do yourself a favour and make sure you have only installed what you need now (everything that spells "I'll check that out later" should be removed and only installed when you are going to check it out), make sure you run a firewall and make sure you apply updates when they are released. Next to that you should look for basic GNU/Linux tutorials there (the RHEL site has a few good tutorials about administrative tasks) and here at LQ.
 
Old 09-04-2006, 10:09 AM   #3
shorun
Member
 
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148

Rep: Reputation: 15
this won't really help your problem. but try using "webmin"

it's a web-based wizard like configuration tool for, well, just about anything. not as powerfull as command line and maybe not that safe. a great way to learn linux and to manage your apache early on.

it has a real shitload of options, so check it out.
www.webmin.com
 
Old 09-04-2006, 10:33 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
this won't really help your problem. but try using "webmin"
So it's more like, uh, and ad?


it's a web-based wizard like configuration tool for, well, just about anything.
Actually I would recommend learning GNU/Linux using available tools before succumbing to web-based UI's.
You are more likely to have a better chance at troubleshooting and fixing things if you fsck up, then.


not as powerfull as command line and maybe not that safe.
Uhuh. Like I said :-]
 
Old 09-04-2006, 11:27 AM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
I was looking at Webmin at one time but decided against it as it is a very poor way to administer linux. Stick to good ol telnet.
 
Old 09-04-2006, 12:43 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
jstephens84 wrote:
Quote:
Stick to good ol telnet
Actually, jstephens84's message is right, but telnet is wrong. Most distros don't even enable telnet access anymore, as it transmits usernames and passwords in plain text. SSH is the way to administer things, as everything is encrypted. Anyone sniffing around your connection gets your name and pass through telnet, but not through SSH. But yes, abstain from using GUI tools, and figure out how to do things at the command line. It is a steeper learning curve, but once you get your feet under you, it is the most powerful and easy way to run a linux system.

Peace,
JimBass
 
Old 09-04-2006, 12:48 PM   #7
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Thanks JimBass. Forgot about that. SSH is better. And if you are using a windows machine then use putty. It will do ssh.
 
Old 09-05-2006, 04:21 AM   #8
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Original Poster
Rep: Reputation: 15
Ahhhh i also can't port foward on my Linux PC i log into the router go to Port Forwarding enter my PCs IP (192.168.0.12) and it doesn't work. It says, "The NAPT server is not a valid LAN host" but i can port forward fine on this PC (IP: 10.0.0.1)

Whats up with this?
 
Old 09-05-2006, 09:57 AM   #9
sysconfig
Member
 
Registered: Sep 2006
Location: (.)
Posts: 44

Rep: Reputation: 15
Install the webmin rpm and then manage it remotly/locally usign web interface, it could be very tricky for newbie.
 
Old 09-05-2006, 10:05 AM   #10
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Quote:
Originally Posted by sseeker
Ahhhh i also can't port foward on my Linux PC i log into the router go to Port Forwarding enter my PCs IP (192.168.0.12) and it doesn't work. It says, "The NAPT server is not a valid LAN host" but i can port forward fine on this PC (IP: 10.0.0.1)

Whats up with this?
Your have several ranges of ip address'?

Not sure how that works, you may only be able to port forward along the same ip range (or maybe just the same subnet?)

Which could indicate the error message is coming up as the NAPT/NAT server isn't on the same set of ips as the client?

just a guess
 
Old 09-05-2006, 10:07 AM   #11
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Original Poster
Rep: Reputation: 15
Didn't setup the network, wouldn't have a clue. :S
 
Old 09-05-2006, 10:51 AM   #12
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by sysconfig
Install the webmin rpm and then manage it remotly/locally usign web interface, it could be very tricky for newbie.
Webmin is really not a good way to administer your server. You should use ssh.
 
Old 09-05-2006, 11:07 AM   #13
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Original Poster
Rep: Reputation: 15
See this post: http://www.linuxquestions.org/questi...d.php?t=480553 And you'll know what i'm on about
 
  


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
Project made in Red Hat Enterprise 4 need to be able to run on Red Hat Enterprise 3 Elin Linux - Software 1 07-13-2006 01:22 PM
Project on Red Hat Enterprise 4 run on Enterprise 3? Elin Linux - Enterprise 1 07-12-2006 06:21 AM
Project on Red Hat Enterprise 4 run on Enterprise 3? Elin Linux - Newbie 1 07-12-2006 05:03 AM
Upgrading Red Hat 9 to Red Hat Enterprise Server 3 AS louisb Linux - Software 7 02-23-2004 11:25 PM
Red Hat Enterprise vs. Red Hat Linux Project RedHatMN Linux - Distributions 2 07-29-2003 05:16 AM


All times are GMT -5. The time now is 04:49 AM.

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