LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-26-2003, 08:21 PM   #1
drsib
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Rep: Reputation: 0
how to set up internet server with Red Had 9


Hi i have red had 9 installed under the server version so i have all the required programs to do it but i dont know how to get it all to work. I found the configuration stuff but when i run it everything configs fine but when i try to go to localhost or even my ip i get a pop up message saying connection refused. Also there is no window that says the server is running like there was in windows. Can some one give me a hand
 
Old 06-26-2003, 08:51 PM   #2
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
Two things.....

One you can check to see if apache is running by typing

ps -ef | grep httpd

if you see a bunch off httpd deamons running....grats


second, turn off your firewall. Connection refused usually means that port 80 is blocked by netfilter.

iptables -F
 
Old 06-27-2003, 12:20 AM   #3
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
type setup enter pass and go the serveices look for the httpd if it has a star near it that means it activates during boot if you dont have a star near it put it then go to command prombt

su root
/sbin/service httpd start \\starts the server
/sbin/service httpd stop \\stops

then type localhost in the browser to test. after putting a start or if it was there dont do the service commands cause it is already runnig go directly to localhost
 
Old 06-27-2003, 10:34 AM   #4
drsib
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Ok i am really new to linux, where do i type all this stuff in. Do i put it in a file and run it or do i use the run commands i put them in the terminaly but all it said that things were not there or didnt exsist?

Last edited by drsib; 06-27-2003 at 10:46 AM.
 
Old 06-27-2003, 10:57 AM   #5
drsib
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
well i went into service configuration and tryed to start httpd and it gave me this

httpd failed. The error was: Starting httpd: Syntax error on line 270 of /etc/httpd/conf/httpd.conf:
ServerName takes one argument, The hostname and port of the server
[FAILED]
 
Old 06-27-2003, 11:00 AM   #6
drsib
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
never mind i figured it all out thx for you trouble
 
Old 06-27-2003, 12:24 PM   #7
drsib
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
ok actulay now i have another problem. It all works and im getting the test page but i cant seam to acces my files. i put them in the /var/www/html/ dir and there is an index, so i dont know why it isent working
 
Old 06-28-2003, 05:58 PM   #8
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
if you have index.html it should be working but if its not open redhat-config-http or -httpd change it to opint your file
 
Old 06-28-2003, 06:51 PM   #9
Pesti
LQ Newbie
 
Registered: Jun 2003
Location: Wisconsin
Posts: 3

Rep: Reputation: 0
Verify that all directories above the target file are executable. They must be executable to be able to traverse the directories. Also, make sure the target file is readable.

One last note, if it is not installed, go and install Webmin at http://www.webmin.com

This tool is rather handy for getting servers up and running. DocumentRoot should be set to the correct path as well as DirectoryIndex being set to index.html in the config files.
 
Old 06-30-2003, 11:54 AM   #10
drsib
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
yeah i kinda fooled around alot and i think i figured it out. But the one thig that still remains unsloved is the fact that i dont know how to creat mysql databases.
 
Old 09-24-2005, 03:29 PM   #11
7w337y
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Thumbs down

when i try to start apache, i get this message

[root@schumacher bin]# apachectl -t
Syntax error on line 285 of /etc/httpd/conf/httpd.conf:
ServerName takes one argument, The hostname and port of the server

how can i fix it?!?!
 
  


Reply



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
How do I set my Apache server to be seen in the Internet? jun_tuko Linux - Networking 9 11-14-2005 02:35 PM
How do I set up the web server on Red Hat 8.0 RSNServer Linux - Software 7 07-30-2005 06:29 AM
How To Set Up A Apache Server On Red Hat9 sameermanagoli Linux - Newbie 2 06-27-2003 04:39 AM
how to set up FTP server on Red Hat Linux 8 therock Linux - Newbie 1 01-14-2003 05:08 AM
Set-up Internet Server (Apache) hotrodowner Linux - Networking 4 06-28-2002 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:31 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
Open Source Consulting | Domain Registration