Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > setting up web server - NOOB Q

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-17-2005   #1 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 23
setting up web server - NOOB Q

That's my first time ever trying to host a website on my PC. While I can see the html file when I type http://127.0.0.1/ or when I type my IP http://xx.x.x.xxx/, other people tell me they cannot access the site.

I seem to have installed Apache correctly - it was confirmed by a console message I got. I also have Webmin installed as I read somewhere it is useful.

I just don't know where to start. How, for example am I to check whether the site is 'visible' on the net? It is not, and I have no idea what I'm doing wrong. I've looked at httpd.conf file, but being a noob I don't know what to edit there.

I'd appreciate some step by step tips. Not everyone started off as a guru. THANKS!
times is offline  


Reply With Quote
Old 09-17-2005   #2 (permalink)
Just Joined!
 
Join Date: Sep 2005
Location: Waterford Irl.
Posts: 17
Same here.I have been going round in circles for the last few hours trying get a few simple instructions to get me started.Thanks in advance to any kind person who will take pity on me and times
pardinum is offline   Reply With Quote
Old 09-17-2005   #3 (permalink)
Linux Newbie
 
Join Date: Jul 2005
Location: ~/home
Posts: 105
is the server directly connected to the internet,
or is it behind a router?

in case it's behind a router, search google for portforwarding.
__________________
Help me getting a Opera licence
Beginning with debian? -> read THIS!
alain_ is offline   Reply With Quote
Old 09-17-2005   #4 (permalink)
Linux Newbie
 
Join Date: Jul 2005
Location: Turn Around
Posts: 202
Send a message via AIM to DoctorDan
if its behind a firewall or router u must allow traffic thru port 80 with port forwarding

keep in mind some IPSs dont allow port 80 to be used to hosting websites
DoctorDan is offline   Reply With Quote
Old 09-17-2005   #5 (permalink)
Just Joined!
 
Join Date: Sep 2005
Location: Waterford Irl.
Posts: 17
Thanks both, I think my problem is with the darned ISP, will check with them Monday.
pardinum is offline   Reply With Quote
Old 09-18-2005   #6 (permalink)
Linux Engineer
 
Join Date: Oct 2004
Location: Vancouver
Posts: 1,366
Send a message via AIM to genesus Send a message via Skype™ to genesus
you can always change to port 8080, usually the isp will not block that high, also make sure you reload httpd whenever you change settings, and set up portforwarding to the correct station on the router.
__________________
Operating System: GNU Emacs
genesus is offline   Reply With Quote
Old 09-18-2005   #7 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 23
Quote:
Originally Posted by genesus
you can always change to port 8080, and set up portforwarding to the correct station on the router.
How do I do that
I have a direct connection to the Internet, I think. It's a LAN connection, which means I have Internet access as soon as my PC boots. Thank you.
times is offline   Reply With Quote
Old 09-19-2005   #8 (permalink)
Linux Engineer
 
Join Date: Oct 2004
Location: Vancouver
Posts: 1,366
Send a message via AIM to genesus Send a message via Skype™ to genesus
well, before you do do that call your isp and make sure that they do in fact block port 80. Then with your registrar forward the domain to your ip with :8080 after it...so if you are bill.com, you would use bill.com:8080...and you would have to configure apache through httpd.conf to use 8080, you can make sure that you open the port correctly with
Code:
nmap -sT localhost
It is still kind of rare that isps will block 80, so run the above command and make sure that it is open on your end...also in httpd.conf what does your line that has "listen" look like?
__________________
Operating System: GNU Emacs
genesus is offline   Reply With Quote
Old 09-19-2005   #9 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 23
Quote:
Originally Posted by genesus
Code:
nmap -sT localhost
This returns the following:

Code:
(The 1654 ports scanned but not shown below are in state: closed)
PORT      STATE SERVICE
21/tcp    open  ftp
25/tcp    open  smtp
80/tcp    open  http
111/tcp   open  rpcbind
443/tcp   open  https
631/tcp   open  ipp
1013/tcp  open  unknown
6000/tcp  open  X11
10000/tcp open  snet-sensor-mgmt

Nmap finished: 1 IP address (1 host up) scanned in 0.357 seconds
Quote:
Originally Posted by genesus
also in httpd.conf what does your line that has "listen" look like?
I haven't changed any settings here, here's what I have:

Code:
<IfDefine APACHEPROXIED>
    Port 8080
    Listen 8080
</IfDefine>
<IfDefine !APACHEPROXIED>
    Port 80
    Listen 80
</IfDefine>
What else should I configure to have my site up and running? Thanks in advance.
times is offline   Reply With Quote
Old 09-19-2005   #10 (permalink)
Linux Engineer
 
Join Date: Oct 2004
Location: Vancouver
Posts: 1,366
Send a message via AIM to genesus Send a message via Skype™ to genesus
ok, everything looks good; however, if you want to use port 8080, nmap is not detecting it as open, but it does have port 80 open...what is the site, so we can try to get to it and see the error message?
__________________
Operating System: GNU Emacs
genesus is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:35 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2