You are not logged in.

#1 2008-10-30 02:06:48

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

[solved] Setting up a LAMP

Well, I followed the guide in the wiki: http://wiki.archlinux.org/index.php/LAMP
Everything assumed to work fine, http://localhost worked. Mysql works, php works, ect.
However, when going to my IP address I get "Failed to connect" error with firefox. I figured maybe my ISP was blocking port 80, so I tried
8080, also tried 1234(just to be random). None work. Conclusion... works on local, but not the world wide web sad

Last edited by twiistedkaos (2008-10-30 22:47:21)

Offline

#2 2008-10-30 02:37:56

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [solved] Setting up a LAMP

Have you setup port forwards on your router?

Can you ping the box from outside world?

tcpdump -lnn -i ethX host <remote computer>

Replace ethX with the interface of your net connection, and <remote computer> with the IP address of the computer outside your network that you can ping from. If the pings are going to the box, then they should come up in the tcpdump. Try accessing Apache too and that should show. If nothing it showing, then the packets aren't getting through to the box.

Last edited by fukawi2 (2008-10-30 02:38:07)

Offline

#3 2008-10-30 03:04:45

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [solved] Setting up a LAMP

It's most likely your router's firewall blocking all incoming ports. You should be able to access its configuration menu through your browser and change the firewall settings. Check

netstat -nr

to get the gateway address, then navigate to that in your browser ("http://xxx.xxx.xxx.xxx" where "xxx..." is your gateway's ip).

If that doesn't work, check the manual.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2008-10-30 04:15:49

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: [solved] Setting up a LAMP

Yes, I did set port forwarding on my router. I even thought maybe I would have to restart the router before it would take place, those were a no go.

Offline

#5 2008-10-30 07:02:05

mycow
Member
From: Athens / Greece
Registered: 2008-09-28
Posts: 10
Website

Re: [solved] Setting up a LAMP

Have you tried an online port scanner to see what ports are open?

Offline

#6 2008-10-30 07:44:07

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: [solved] Setting up a LAMP

Some routers have trouble doing port forwarding correctly when you try to access their WAN interface from the LAN side. Try SSH'ing into a remote box and see if it works from there, ask a friend at a different IP to try and access it, or try an online port scanner.


The suggestion box only accepts patches.

Offline

#7 2008-10-30 20:14:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [solved] Setting up a LAMP

Port 80 on the LAN side normally redirects to the router's configuration interface, right?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2008-10-30 22:00:52

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: [solved] Setting up a LAMP

neotuli wrote:

Some routers have trouble doing port forwarding correctly when you try to access their WAN interface from the LAN side. Try SSH'ing into a remote box and see if it works from there, ask a friend at a different IP to try and access it, or try an online port scanner.

Um, 192.168.1.1:80 goes to my routers homepage.
192.168.1.46:80 goes to my apache server.
71.121.68.169:80(my ip) goes no where.

71.121.68.169 I've asked other to connect to before even posting, and was a no go.

screenjy2.png
showing port forwarding in routers settings

Last edited by twiistedkaos (2008-10-30 22:08:30)

Offline

#9 2008-10-30 22:11:30

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [solved] Setting up a LAMP

I tried to connect to http://71.121.68.169 in firefox and received no error. I can ping it as well and I used nmap to check which ports were open:

PORT     STATE SERVICE
80/tcp   open  http
4567/tcp open  unknown

The problem seems to be a permissions one on your machine, not your LAN. I hope this helps.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2008-10-30 22:21:03

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: [solved] Setting up a LAMP

Xyne wrote:

I tried to connect to http://71.121.68.169 in firefox and received no error. I can ping it as well and I used nmap to check which ports were open:

PORT     STATE SERVICE
80/tcp   open  http
4567/tcp open  unknown

The problem seems to be a permissions one on your machine, not your LAN. I hope this helps.

Do you get just a white page? If so, that's the index.html. Hmm if you get a whitepage I guess something I was tinkering with last night actually worked. Only if I knew what..

Offline

#11 2008-10-30 22:42:39

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [solved] Setting up a LAMP

Yeah, I get a pure white page. I checked the source and there is nothing there.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#12 2008-10-30 22:47:07

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: [solved] Setting up a LAMP

Xyne wrote:

Yeah, I get a pure white page. I checked the source and there is nothing there.

Thats correct then, thanks for your help smile

Offline

Board footer

Powered by FluxBB