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 05-02-2004, 09:34 AM   #1
squirellplaying
Member
 
Registered: Mar 2004
Posts: 93

Rep: Reputation: 15
Setting up HTTP server


I just installed redhat 9 on my machine and would like to use it as a webserver and also ftp to get my work from school to my home computer. This is my first time with linux so I don't know what to do. I've looked around redhat some, but this is very confusing to me. Is there a site I could read on how to set up my http server? I am very lost. Thanks.
 
Old 05-02-2004, 09:46 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
For setting up a webserver I would look at:
http://lamps.efactory.de/e-lamps-2-0.shtml

For ftp I would reccomend vsftpd but if at all possible just forget ftp and stick to scp as it is much more secure.
 
Old 05-02-2004, 10:28 AM   #3
squirellplaying
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
Sorry for being ignorant but what is scp and will it be as easy as drag and drop once I get it set up?

Thanks for the site.
 
Old 05-02-2004, 10:32 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
scp stands for "Secure CoPy" and you can get graphical clients to connect with, you can even use WinSCP in windows. If you already have openssh running then scp should already work unless you have disabled it in your config file.
 
Old 05-02-2004, 05:35 PM   #5
squirellplaying
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
I read through and was following but I think I installed apache with redhat right? I don't know anything about the file system and I can't find the apache files. Where would they be?
 
Old 05-02-2004, 05:39 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
You should have /var/www (place for your files). As root try to run
service httpd start
It should start Apache. If it doesn't you may not have it installed (but it's not a big problem, you need to install it from the cds).
 
Old 05-02-2004, 06:09 PM   #7
squirellplaying
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
Thanks. I found the /vars/www files. I was logged on as root and selected run program and typed in "service httpd start" but nothing happened. The dialog closed. I can get to apache config from under server settings. Am I doing something wrong?
 
Old 05-02-2004, 06:28 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
First check if apache is running -- try typing 'ps auxw | grep httpd' and see if there are any results. You can also try running 'netstat -tan | grep :80' to see if anything is listening on port 80 the default http port). You can also do 'rpm -q apache' to see if you have Apache installed (it should be). The Apache configuration files and binaries are often located in /usr/local/apache or /usr/local/apache2 -- I *think* this is where RH 9 has them, but I generally compile Apache from scratch so I'm not totally sure. Setting up Apache can be a little intimidating at first, but once you have the hang of it, it gets to be pretty easy.

I'm not sure what happened when you tried 'service httpd start' -- Apache's logs tend to be in the /var/log/httpd directory. Check the error_log to see if something went wrong on server startup. There is a bin directory under the Apache directory with a program called apachectl (use find if you can't find it any other way) and you can try typing apachectl start and see if it provides any usefull output.

Also, if you are going to run network services, you'll need to be carefull keep up with security patches to make sure your machine isn't broken into.
 
Old 05-02-2004, 06:57 PM   #9
squirellplaying
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Rep: Reputation: 15
Alright, it said apache was not installed. I guess I'll have to install it. Thanks guys.
 
  


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
Setting up Apache HTTP server Micro420 Linux - Networking 32 03-26-2005 04:53 AM
Setting up a server , FTP, HTTP, POP3, SMTP, DNS merman63769 Linux - Newbie 2 09-20-2004 12:44 PM
setting up intranet site (eg: http://something) mhuggins Fedora 2 01-22-2004 04:55 PM
problem setting up router in linux http server mkepler1 Linux - Networking 1 12-18-2003 12:42 PM
Setting up Apache HTTP Webserver darklord75 Linux - Networking 6 04-19-2003 05:13 PM


All times are GMT -5. The time now is 10:17 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