LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-15-2012, 05:15 PM   #1
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 188

Rep: Reputation: 15
have my own server


Hi All,

Well, this is my first time to try to have a server for a website.

Here is what I want to do:
I've already bought a domain name for myself; now what I want is to host my website on my own (Linux, of course) box using this domain that I just bought - how may I do this?
I want to test my website and test any- and everything I do before it becomes official.
Any link or document will be very appreciated.

thanks, faizlo.

Last edited by faizlo; 12-15-2012 at 05:35 PM.
 
Old 12-15-2012, 05:37 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,096

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
it depends, if you are using a standard 'residential' service internet connection, than chances are you also have a dynamic IP address for your internet connection, which is problematic at best for a real domain, you would have to talk to your ISP and acquire a static IP for your internet connection, which usually costs extra $$$$, as well as some ISPs block inbound port 80.
once you establish that, then you configure your router to forward port 80 to your server.

unfortunately, the easiest way is not to use your own PC as a server, but to pay for hosting on an actual website hosting provider such as Godaddy, either way you are going to have to pony up some dough.
 
Old 12-16-2012, 12:28 PM   #3
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 188

Original Poster
Rep: Reputation: 15
Hi Frieza

Thank you for your reply. So you say there is only one option, which is to buy some hosting from a hosting server.
Well, if I can have a static IP from my ISP, what else should I do?

~hatim
 
Old 12-16-2012, 01:28 PM   #4
notsure
Member
 
Registered: Jun 2012
Location: Detroit
Distribution: Arch x86_64
Posts: 109

Rep: Reputation: 8
Well, depending on how important your site is.... My IP addresses (multiple residential locations) have not changed in about 2 years or more.

or look into dynamicDNS
 
Old 12-16-2012, 01:49 PM   #5
nobuntu
Member
 
Registered: Mar 2012
Distribution: Debian for server, CrunchBang for everything that's not a server
Posts: 143

Rep: Reputation: 24
Quote:
Originally Posted by notsure View Post
Well, depending on how important your site is.... My IP addresses (multiple residential locations) have not changed in about 2 years or more.

or look into dynamicDNS
My IP address seems to only change when I power-cycle my modem.

If you have a dynamic IP and are using DNS services from freedns.afraid.org, they have some Dynamic DNS clients worth looking into.
 
2 members found this post helpful.
Old 12-16-2012, 03:06 PM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,096

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by faizlo View Post
Hi Frieza

Thank you for your reply. So you say there is only one option, which is to buy some hosting from a hosting server.
Well, if I can have a static IP from my ISP, what else should I do?

~hatim
then you configure your server with a static ip inside your local IP set, point port 80 at it, (or whatever service port you need for your server) with your router, and then point the A record of your domain at your static public IP provided by your ISP.
 
Old 12-19-2012, 02:55 PM   #7
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 188

Original Poster
Rep: Reputation: 15
Hi all,

I have been reading about this for sometime. I learned a lot, but I still need a tutorial or some guide to lead me through the process of configuring my box to run as a server. Any help?
 
Old 12-19-2012, 10:19 PM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Have you installed a LAMP stack? That is, apache, mysql and php? If not (and assuming this is for ubuntu or one of its derivates).

Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lamp-server^
The first command updates the list of packages, the second command updates your system; these two do the same as what the update manager does). The third one is the one that you're actually looking for.

'sudo' will ask you for your normal user password.

While the latter command installs mysql, you will be asked to provide a password for the mysql root user that you want to use; provide one and don't forget it.

For remote access (uploading files and configuration), you need a secure way of accessing your system; install ssh-server. If you need email functionality from your website, you need to install a mail server.

An alternative route is to install tasksel (see e.g. http://www.unixmen.com/install-lamp-...ick-meerkat/); it provides you with a UI to select packages that you want to install.

Next do finetuning on the server.

Next read up on securing your server!

And lastly start writing your website.

Last edited by Wim Sturkenboom; 12-19-2012 at 10:21 PM.
 
Old 12-20-2012, 05:27 PM   #9
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 188

Original Poster
Rep: Reputation: 15
I have all these installed on my box, and they are running fine.
All I am interested in now is to configure my box to work as a server for my new domain...Any guide?
 
Old 12-20-2012, 05:50 PM   #10
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,956

Rep: Reputation: Disabled
Your question is somewhat ambiguous, and it's difficult to point you in the right direction without knowing exactly what you're asking for.

If you want to know how to configure the Apache web server to serve web pages for a particular domain, you should consult the Apache documentation (look for "virtual server").

However, your question could also be interpreted as a query regarding domain registration, DNS configuration, port forwarding, HTML design and perhaps a few other topics. Unsurprisingly, no single guide or document covers everything.
 
Old 12-20-2012, 08:08 PM   #11
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 188

Original Poster
Rep: Reputation: 15
OK, and sorry if I am not clear enough (which is part of the problem)
I have bought a domain name (example.com) from a registered domain name registrar. All I want now is to use my box as the hosting server for my web site. I am experimenting a new web site and I want to be able to do everything on my own. hosting it on my box is the goal of this post.
I do have everything required to host web pages. MySQL, PHP, JS, Apache are all installed and running very well. I will have to worry about security once I can set everything up right and my domain can be reached from any place via the Internet.

I hope I could explain it better this time.

Thanks again for your patience.
 
Old 12-20-2012, 09:34 PM   #12
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,632

Rep: Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444
no-ip.com has some good tutorials on this topic.

Full disclosure: I have no connection with no-ip.com other than having been a satisfied customer for several years before I moved to my current location.

One thing you should check is your ISP's terms of service. Some are more hostile to self-hosting than others; some block port 80 and will actively try to shut you down and turn you off if they catch you putting a public-facing server on-line. One reason I no longer self-host is that my current ISP falls into that category (the other is that my site outgrew the capabilities of my home server).

Last edited by frankbell; 12-20-2012 at 09:35 PM.
 
Old 12-21-2012, 07:55 AM   #13
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Quote:
One reason I no longer self-host is that my current ISP falls into that category
Let me guess, Comcast in the Richmond area? I more or less lived in Ashland for about 3 years and they were downright hostile to anything outside of basic browsing and would clamp your speed down to as low as 256 bytes/sec.
P.S. When I was still there, I thought about seeking out your LUG, but you were a little too eastward for it to be convenient.

Last edited by Noway2; 12-21-2012 at 07:57 AM.
 
Old 12-21-2012, 08:06 AM   #14
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,958

Rep: Reputation: 605Reputation: 605Reputation: 605Reputation: 605Reputation: 605Reputation: 605
Quote:
Originally Posted by frieza View Post
it depends, if you are using a standard 'residential' service internet connection, than chances are you also have a dynamic IP address for your internet connection, which is problematic at best for a real domain, you would have to talk to your ISP and acquire a static IP for your internet connection, which usually costs extra $$$$, as well as some ISPs block inbound port 80.
i use dyndns.com to get around that problem.
 
Old 12-21-2012, 08:09 AM   #15
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,958

Rep: Reputation: 605Reputation: 605Reputation: 605Reputation: 605Reputation: 605Reputation: 605
Quote:
Originally Posted by notsure View Post
Well, depending on how important your site is.... My IP addresses (multiple residential locations) have not changed in about 2 years or more.

or look into dynamicDNS
my experience is that my ip stays static until there is a black out or i have to unplug my internet transceiver for some reason.
 
  


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
LXer: Install and Configure Samba Server as File Server on Ubuntu Server 12.04 LXer Syndicated Linux News 0 06-06-2012 12:01 PM
Unable to connect MS SQL server 2008 Remote Server through SQUID proxy server samank75 Linux - Server 5 01-19-2012 09:19 PM
Server configuration for small office server, which smtp, pop imap server and backup whitelinux Linux - Server 4 04-06-2010 11:26 AM
How to monitor web server, FTP server, Mail server and database server vodka33us Programming 1 06-16-2008 04:20 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM


All times are GMT -5. The time now is 03:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration