LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-01-2006, 11:56 PM   #1
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 107

Rep: Reputation: 16
apache mysql php remote login?


So I can login localy whit http://localhost/ I was trying to find a howto on how I could login to it remotly but so far I got nothing and was hopeing someone here could help.
 
Old 11-02-2006, 05:06 PM   #2
Jayla
Member
 
Registered: Nov 2005
Location: Suffolk, UK
Distribution: kubuntu 9.04
Posts: 188

Rep: Reputation: 30
<advice from a newbie>

Forgive me if I'm wrong, but this is how I read your question

Have you tried your machines IP from another PC?

for example, I have a LAMP setup, which I can view using http://localhost on the machine. To view this remotely I use http://192.123.22.22 (just an example), it then sends out requests for whatever is in the document root of the LAMP.

Perhaps your problem is not that simple, are you sure your box can connect to the internet? and there is no firewall or any other network issue that would stop incoming connections?

</advice from a newbie>
 
Old 11-03-2006, 05:48 PM   #3
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
First run something like whatsmyip, I use www.ipchicken.com . This will tell you what your IP address is (not your machine IP but the modem ID of your internet connection. (If you need your machines IP, please tell me and we can go through that) In most cases your ISP (internet service provider) will assign you a set of dynamic IP addresses so this can change from time to time. Example 68.145.111.11 (this is what the out side world see's and your address would be something like that) This address will change from time to time and I suggest signing up for the free service www.dyndns.com (this refreshes your IP every month and if changes it does it for you, it also gives you a free domain name instead of using an IP to connect)

Once you have the address you can try accessing from a remote location, I don't know where you are trying to access it from but I would guess work or school or something like that. The perfect example that I can think of is to put in your URL bar something like this: 68.145.111.11:80 . The reason for port 80 is because your server (linux box) is running that by default (so if you have't changed the port that should display something like a Apache Test Page. If you don't get this then you need to check the following:

1) are you behind a router? if so you need to open the port which matches to your httpd.conf file (by default this is port 80)
2) if your not behind a router then make sure that the httpd.conf file has the correct settings (from the sounds of it, it should, since you can see local host).
3) if you don't have a router it could be the firewall with in linux, make sure you open the HTTP.

Hope this helps somewhat, could be a little much and somewhat confusing but should give you some insight. Good Luck!

Last edited by bskrakes; 11-03-2006 at 05:52 PM.
 
Old 12-21-2006, 12:16 PM   #4
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 107

Original Poster
Rep: Reputation: 16
Sorry about the late reply, I was on vacation whitch is way I wanted this to work. So I could use torrentflux and stuff from my laptop. I'm home again but would still like to get it working.

I have made accounts whit both dyndns and no-ip, both have preconfiggured settings in my router.
Port 80 is forwarded to this machine.
I get an error everytime I start apache2: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
So I'm guessing there maybe something there?
I'v had a home network for years so I know a little about IPs and ports and stuff.
But now I have no way of testing remotley so...
Useing my external IP from here (home) i get "The server at **.***.***.*** is taking too long to respond" or "timout on server **.***.***.*** on port 80"
I'll try reading up on apache a bit more allthough the info I find mostly seem like greek.
 
Old 12-22-2006, 10:21 PM   #5
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
well if apache isn't starting correctly then that would explain a lot. because i am still a bit of a newbie we might be at a dead-end, like i cant trouble shoot apache. i basically re-install FC5 every time i have a problem LOL. let me know what you have found out? are you starting the HTTPD service correctly?
 
Old 12-23-2006, 05:10 PM   #6
kb2tfa
Member
 
Registered: Oct 2006
Location: Philadelphia PA
Posts: 151

Rep: Reputation: 16
What you need to connect to the outside is a different IP and setup. What you are using, or what is shown to us, is a local IP address(127.0.0.1).

With this IP you can connect locally, usually only on that PC(from my exp).

I need more information, to really help. For example how do you connect to the internet? I assume you have a constant connection like DSL or Cable.

If you do then you have a WAN IP address which looks the the IP that someone posted above 68....

If I login to my router I can choose "static IP" and choose from a list of computers connected to my router.

What this does, is if I choose a particular computer to be assigned this WAN IP, then if you use this WAN IP on the Live Internet it will go to your router and then to the pc which is assigned this WAN IP. From there provided your server is running, it will detect when an incoming request comes in on port 80.

You can access your apache via localhost, so it's up and running. it's a matter of linking you to the "real" world. Remember you cannot use any of these 127... numbers on the internet and expect to arrive at your home.

There is actually a system to these numbers. If you lookup tcp/ip you can read about it.

give that a try and let me know if it works.
ron
 
Old 12-29-2006, 02:45 PM   #7
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 107

Original Poster
Rep: Reputation: 16
I know that, witch is why I have made accounts with dyndns and no-ip that I explained above. If you had bothered to read my last post you would have seen that I symbolized my real ip like this **.***.***.*** and I allready said I don't have a static ip witch is why I have to use a dynamic one hence the dyndns and no-ip and so on. Not that it has ever changed.

Besides I do get in from other computers on my local network useing my local ip 192.168.2.1 so I know that the loop address only works on this machine.

If I ping my no-ip account it says it's getting trough to my router and my router/modem has port 80 forwarded to the apache machine but it still times out. And I'm sure I said that before too.

EDIT: And now I see he's only made this one post...fu**

Last edited by tripmix; 12-29-2006 at 02:49 PM.
 
Old 12-30-2006, 01:09 AM   #8
kb2tfa
Member
 
Registered: Oct 2006
Location: Philadelphia PA
Posts: 151

Rep: Reputation: 16
"I can't think of anything clever to say right now..."

nor will you ever, you mental midgit.

first of all I was pointing out that you can use a static setup with a dynamic wan, but you're so bright you can't see it. but you're not worth helping.

You deserve to get exactly what you have coming...
What goes around comes around

Some advice to the unprofessional.
try not being such a rear-end, and you might get somewhere. Others will see how nice you are, and they will just jump to help you, i'm sure.

Take the weekend and try very very hard to come up with something clever. I know you have it in you, you can do it tripmix (what a corny name).

There is no glory in beating up the mentally challenged, but it's late and i'm bored.

I tried to honestly help, and I did read your retarded plea for help. So now that you blast me for it, I say Go %^&^&(*&^%$#

Worst Wishes

EDIT:
I'm sorry I just realized why you're the way you are. I just saw your profile.
I also looked at you posts. Maybe you should reduce the number of posts by RTFM more often.

Last edited by kb2tfa; 12-30-2006 at 01:22 AM.
 
Old 01-16-2007, 08:24 PM   #9
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 107

Original Poster
Rep: Reputation: 16
Very helpfull, thank you.
 
  


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
connecting php to remote mysql server habibno05 Programming 13 10-08-2008 08:49 AM
MySql on Linux Remote Login cpopham Linux - Software 4 06-13-2005 01:01 PM
Remote Mysql Connection in PHP ElementNine Programming 2 05-03-2004 05:24 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 07:23 AM


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