LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Webserver - Red Hat Enterprise (https://www.linuxquestions.org/questions/linux-newbie-8/webserver-red-hat-enterprise-479981/)

sseeker 09-03-2006 06:12 AM

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

unSpawn 09-03-2006 07:45 AM

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.

shorun 09-04-2006 09:09 AM

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

unSpawn 09-04-2006 09:33 AM

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 :-]

jstephens84 09-04-2006 10:27 AM

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.

JimBass 09-04-2006 11:43 AM

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

jstephens84 09-04-2006 11:48 AM

Thanks JimBass. Forgot about that. SSH is better. And if you are using a windows machine then use putty. It will do ssh.

sseeker 09-05-2006 03:21 AM

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?

sysconfig 09-05-2006 08:57 AM

Install the webmin rpm and then manage it remotly/locally usign web interface, it could be very tricky for newbie.

ethics 09-05-2006 09:05 AM

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

sseeker 09-05-2006 09:07 AM

Didn't setup the network, wouldn't have a clue. :S

jstephens84 09-05-2006 09:51 AM

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.

sseeker 09-05-2006 10:07 AM

See this post: http://www.linuxquestions.org/questi...d.php?t=480553 And you'll know what i'm on about ;)


All times are GMT -5. The time now is 08:24 PM.