LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-17-2017, 01:01 PM   #1
syspklc53
LQ Newbie
 
Registered: May 2014
Location: Katy, Texas
Distribution: DSL Ubuntu 16.04 openSUSE 42.3
Posts: 20

Rep: Reputation: Disabled
Question Howto connect my LAMP stack to the internet?


LAMP stack installed (openSUSE 42.2 LEAP) on Dell Inspiron 192.168.1.125 wlan0 (connecting to the internet wirelessly)
Dell Inspiron 3487 (dual boot Win10/Ubuntu 16.04) 192.168.1.168 eth0 wired to ISP (ComcasT)
Domain name skykingent.com
I don’t know what my next step(s) are to complete my project.
 
Old 08-17-2017, 03:46 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Can you post some information about your project and its goals?

Is skykingent.com a registered domain?

I assume you have a typical home account from Comcast with a dynamic IP address?
 
Old 08-17-2017, 08:31 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
First, check the terms of service of your ISP. Most U. S. ISPs ban public facing servers on anything less than a business account. It's irritating, but it is a logical move to prohibit spammers, however annoying the policy may be. (You also typically need a business-level account to get a static ip address with a U. S. ISP. Some, like mine, go so far as to as to block port 80.)

You need a proper domain name from a legitimate domain registry.

If you have a DHCP address and still want to give it a shot, you will find a lot of information at noip.com. I gave it a shot with noip.com and found them to be rock-solid before I put my website on a hosting service seven years ago.

Last edited by frankbell; 08-17-2017 at 08:34 PM.
 
Old 08-18-2017, 03:00 PM   #4
syspklc53
LQ Newbie
 
Registered: May 2014
Location: Katy, Texas
Distribution: DSL Ubuntu 16.04 openSUSE 42.3
Posts: 20

Original Poster
Rep: Reputation: Disabled
@Micheal
I’m retiring from IT (mainframe) in six months and chose (webhosting) to do after my career is over. I have a friend and my family have websites that I can host. Two weeks ago I purchased my domain name from Godaddy.com. When I inquired about their tech support they said they don’t provide support for 3rd party vendor software. (Hence why I am here) Yes, this is a home account. What’s the difference between a dynamic IP Address and a Static IP Address. Well, I know static IP’s never change and dynamic IP’s constantly change. So, you’re insinuating every time I log on the internet my IP is going to be in the range 192.168.1.0/255?
@frank
I’ve registered my domain name with godaddy.com
I just want the experience of being able to do this. I can transition to a business account to avoid TOS agreements later. I’ll research the link you provided. And just want you to know I’m in this for the long term. Before we get started I referee football and basketball so my availability is going to be very sporadic the next several months so don’t view my absence of response(s) as a lack of interest.
Dynamic Host Configuration Protocol (DHCP) is what I must have or Comcast provides.
 
Old 08-18-2017, 03:35 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
"Comcast" allow port 80?

https://www.xfinity.com/Corporate/Cu...Agreement.html

Last edited by Habitual; 08-18-2017 at 06:27 PM.
 
Old 08-18-2017, 04:22 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
192.168.xxx.xxx is a private LAN and for most devices the default is DHCP and therefore the IP address is assigned by the router. The WAN side of your router is also assigned an IP address by Comcast which for the typical home account is dynamic. As stated by others I believe that Comcast used to block web servers for home accounts.

While GoDaddy does not provide third party software support you could host the site with them and still use LQ for all of your questions...

With a registered domain you will need to pay for static IP address and use GoDaddy's managed DNS servers to point to your address. Then just forward port 80 to your server's IP address. You will need to also configure your web server with a static LAN IP address or just add an IP reservation in the router. Once you allow web traffic through the server's firewall if running it should be now accessible by the outside world.
 
Old 08-23-2017, 12:11 PM   #7
sethanath
LQ Newbie
 
Registered: Aug 2017
Posts: 19

Rep: Reputation: Disabled
Hi,

I have my experimental setup with Ubuntu Server 16.04. I installed Apache2 and TomEE on it.
Here are the steps that I have been using.

1. I picked my free domain from dot.tk. Let's say my domain is myfreedomain.tk, in this case.
2. Since dot.tk only give me free domain, I would need to use www.cloudflare.com for my free DNS. I signed up with cloudflare, and cloudflare asked me to go back to Dot.tk to change my dot.tk nameservers to something like the following.

Code:
Dot.tk: "Use custom nameservers (enter below)"     "Change Nameservers to:"

Nameserver1: xyzxyz.freenom.com                    something.cloudflare.com (This piece is given by cloudflare, when you signed up)
Nameserver2: abcabc.freenom.com                    something.cloudflare.com (This piece is also given by cloudflare, when you signed up)
Nameserver3:                                              
Nameserver4:
Nameserver5:
Please note that cloudflare would really want you to leave Nameserver3, Nameserver4, and Nameserver5 empty.

3. Once you are done with step 2, go back to cloudflare.com, you will need to look for "Manage your Domain Name System (DNS) settings" tab, and enter something like below.

Code:
Type   Name              Value                                   TTL         Status
A      myfreedomain.tk   My external IP Address "11.22.333.444"  Automatic   DNS Only
CNAME  www               is an alias of myfreedomain.tk          Automatic   DNS Only
The two rows above mean I now have "myfreedomain.tk" points to my external IP Address, and "www" is now a sub domain of myfreedomain.tk. Please note that this external IP address is quite important, as it is given by my Internet Services Provider. I heard the rumor that the ISP might change it every six months or so. If they do, I will need to go back to cloudflare.com and change "my external IP Address" to the new one.

This is how I find what my current external IP address is https://www.whatismypublicip.com/.

4. You will need to open port on your router, so that your server is connected to the outside world. My router, in this case, is the router given by my ISP. I found the instruction manual of my router here https://portforward.com/pace-plc/4111n-030/. The instruction manual, that ISP gave you, might not give you the information that you want, because the real instruction manual has more pages, and it has too much weight.

5. You will need to open port on your LAMP server's firewall next, or it would not be connected to the outside world.

6. Now, you will need to google a lot to start having a lot of fun with your LAMP server. Here are some of the web I used.
- https://www.digitalocean.com/communi...h-ubuntu-16-04
- https://www.digitalocean.com/communi...n-ubuntu-16-04
- https://www.digitalocean.com/communi...n-ubuntu-16-04

- https://www.outcoldman.com/en/archiv...1-dynamic-dns/
- https://discourse.osmc.tv/t/howto-fr...-your-pi/14083

7. Use the tools below if your server is not connected to the outside world no matter how much you try.

http://www.viewdns.info/

Last edited by sethanath; 08-23-2017 at 12:13 PM.
 
Old 08-23-2017, 04:01 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
comcast dose have 80 open BUT!!!!!!!
unless YOU BUY$$$$$ a business account they DO and HAVE ( at least me ) threaten me with a law suit


step 1

there is a LOT to
linux
Apache httpd2.6
MariaDB ( replaced mysql)
PHP

and a few more things like
a CMS - i liked "geek-Log"
perl for "awstats "
the php gui to mariadb "phpMyAdmin"
and so on

so the first step is TO READ the docs
Yes RTFM !!!

Step 2
NOW you ( like i am ) run SUSE
suse IS NOT!!!! RHEL or Fedora !!!!!
SUSE dose everything a bit different than EVERY OTHER rpm distro
so you NEED to read the SUSE documentation ALSO!!!
https://doc.opensuse.org/

suse is very GUI centric ( even in a text only terminal there is a ncurs GUI)

normally i like to have people build from source and install from source ( and configure the programs by hand)
for the first 6 or so installs -- To LEARN the software being used

then use zypper or dnf or yum or apt to shave 30 to 60 min. off the install by installing the premade packages

this is the OLD wiki for opensuse
https://en.opensuse.org/SDB:LAMP_setup
 
Old 08-23-2017, 09:05 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Your IP address generally does not change every time you log into the internet, but it may change when your router reboots or if you lose and regain your connection (as from a power outage), as your public IP address is the IP address assigned to your modem by your ISP.

The easiest way to find out your public IP address is to visit whatismyip.com, though you can also find it out by entering your router's configuration routine. The public IP address is the one that allows others to connect.

To make a connection happen, you need to configure your router to forward port 80 to the IP address of your local web server. Your local web server should also have a static IP address within your home network so the connection will remain stable.

I used to live in Comcast territory and self-hosted my website for five years, with the help of noip.com, while a Comcast customer, until I moved to Virginia Beach, which is not Comcast territory. I was such a small-fry that I never got noticed. (The prospect of self-hosting my website was what led me to Linux and a marvelous learning experience it was.)

At the time, the Comcast TOS banned "hosting services" from home users. I was prepared to argue that I was not offering a "hosting service," that I was merely "hosting," even as I took my site down while pleading ignorance (and, if the TOS was strictly interpreted, I was indeed not offering a "hosting service"). I have no idea what the wording of the current Comcast TOS may be.

For what it's worth, my website is now on GoDaddy, because someone whose opinion I value recommended them. I know that a lot of geeky persons seem to have it in for GoDaddy, but I have to say that my experiences with GoDaddy and their tech support have been uniformly positive.

Last edited by frankbell; 08-23-2017 at 09:23 PM. Reason: Clarity
 
Old 08-23-2017, 09:45 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
my only experience with go daddy is people asking for help with LONG unsupported versions of fedora,cent,rhel

and i do mean 5 to 8 years of missing updates

but i do suspect that is the exception

unless there are still Fedora 12 and rhel4 servers on go daddy
 
Old 08-23-2017, 10:04 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Quote:
my only experience with go daddy is people asking for help with LONG unsupported versions of fedora,cent,rhel
All I can say is that, whenever I've called them on the telephone (and I had some problems that required a number of calls in February, in addition to occasional calls over the years), their tech support staff has been prompt, knowledgeable, and competent.

And my uptime has been, as my old doctor would have said, well "within normal limits." In my experience, they give good value for my money.

I wore a headset for six years. I value competence and I'm willing to pay for it.

But that's just me.
 
  


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
[SOLVED] LAMP stack wierdness passinthru Linux - General 3 09-02-2014 12:23 PM
[SOLVED] X-server on a LAMP stack Cyrolancer Linux - General 5 01-24-2012 03:54 PM
LAMP stack for Windoze resetreset General 3 08-18-2010 09:46 AM
Howto connect to another computer over internet mickeyboa Fedora 6 06-10-2006 06:02 PM
gnome-ppp ,howto use command line to connect internet lupang Linux - Software 0 04-11-2005 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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