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 11-13-2010, 10:43 AM   #1
pmarian
LQ Newbie
 
Registered: Oct 2010
Location: Romania
Distribution: CentOS 5.5 x86_64
Posts: 5

Rep: Reputation: 0
my website hosted from home


Hello guys,

I want to host my website from my own pc. How can i put my website online ?

I have one IP address and an pc with centos 5.5 installed. I had installed lamp and i don't know how to make my ip 'public'. Where can i put the website files to be 'viewed on the internet'.

1. If i install a free hosting panel will solve my problems ? I mean can i put my website online ?

2. How can i put my ip public and how can i host my website without any hosting panel installed.

I mention that i have a D-Link Wireless Router and i have ADSL connection.

Best regards.

Last edited by pmarian; 11-13-2010 at 10:44 AM.
 
Old 11-13-2010, 10:48 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If you are able to get online, you have a public IP. You simply need to forward requests for port 80 on the router to your computer.

The bigger problem is getting a domain name with a home Internet connection. You need to sign up with a domain name provider that supports dynamic IPs.
 
Old 11-13-2010, 10:52 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
1 you have a fixed ip
buy a domain name and point the dns to your ip
2 you have a dynamic ip
use dyndns
http://www.dyndns.com/index2.html

On your router you need to forward port 80 to the ip from your server
Also make sure you are allowed to run a webserver.
Some providers block port 80

To setup a webserver
http://www.rayheffer.com/36/building...ntos-5-part-1/

Kind regards
 
Old 11-13-2010, 10:58 AM   #4
pmarian
LQ Newbie
 
Registered: Oct 2010
Location: Romania
Distribution: CentOS 5.5 x86_64
Posts: 5

Original Poster
Rep: Reputation: 0
I already had a domain name. All i have to do is to create nameservers with my ip. I have a fixed ip address and by typing http://ip i can access my modem interface.

I have already a linux computer runing with lamp installed. My problem is that i don't know where to put my website files to be public and accesed from internet. For begining i want to acces via ip (i.e ip/folder) or something like that.
 
Old 11-13-2010, 11:06 AM   #5
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
??? http://yourfixedip leads to your modem interface?
WOW! that's a huge security hole!
interfaces for modems should not being accessible from outside your local network!!!
 
Old 11-13-2010, 11:41 AM   #6
pmarian
LQ Newbie
 
Registered: Oct 2010
Location: Romania
Distribution: CentOS 5.5 x86_64
Posts: 5

Original Poster
Rep: Reputation: 0
And what can i do ? Of course i should sign in with user and password but ... what can i do in this matter ?
 
Old 11-13-2010, 11:55 AM   #7
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
You don't happen to use Qwest, do you?

There is an issue with Qwest modems that cause them to show the administration page whenever somebody accesses either of the modem's IPs from "inside" the network.

Go to someone else's house (or use a proxy) to verify that, from outside, you don't get the modem admin page.

You'll also have to configure port forwarding for both your router and modem (on our Qwest modem, it's called "Advanced Port Forwarding"), if you haven't already done so.

I hope this helps.
 
Old 11-13-2010, 12:45 PM   #8
pmarian
LQ Newbie
 
Registered: Oct 2010
Location: Romania
Distribution: CentOS 5.5 x86_64
Posts: 5

Original Poster
Rep: Reputation: 0
And back to my problem... what i have to do to put my website online from my own pc. I have a linux machine with apache and mysql installed.

What i have to do next ?
 
Old 11-13-2010, 12:54 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
In the router, disable the webaccess to the login page from the outside
forward port 80 to the ip from the webserver
If you have a domainname, point the DNS to your ip

To setup a webserver
http://www.rayheffer.com/36/building...ntos-5-part-1/

To see if your webserver works, at the server, type 127.0.0.1 in the addressbar from your browser

Kind regards

Last edited by repo; 11-13-2010 at 12:56 PM.
 
Old 11-13-2010, 01:08 PM   #10
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
Quote:
Originally Posted by repo View Post
In the router, disable the webaccess to the login page from the outside
If their modem is like mine, then you can't access the login page from outside their local network.

It appears to screen (to decide whether to show the admin page or to do port forwarding) based on where you are connecting from, not which IP you connect to.

I have my own server set up like this. It is at http://jrvanwhy.homelinux.net.

If, on my local network, I visit jrvanwhy.homelinux.net, I get the modem login page. If I visit it from outside my local network, I get the website on my server.

I just wanted to clear this up. I hope this helps.
 
  


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
[SOLVED] Accessing Website Being Hosted on Virtual Machine Hi_This_is_Dev Linux - Server 10 09-02-2010 05:44 PM
viewing an externally hosted website from within a given website andrews-mark Linux - Server 6 10-07-2008 12:11 AM
set up proxy server on hosted website secretlydead Linux - Server 1 09-06-2008 04:06 AM
Virtual hosted website not found toes Linux - Networking 7 07-14-2006 03:11 PM
How Can I password protect a sub-directory of a hosted website from client PC mark001 Linux - Newbie 18 11-12-2004 02:29 PM


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