Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17854

I'm broken - apache setup - port forwarding

$
0
0

I'm cross posting this because /r/raspberry_pi couldn't resolve it and /r/linux4noobs didn't touch it with a barge pole. I'm sure that it's a pretty simple issue but I know fa about networking (or much else!)

The goal : Setup a webserver on my Raspberry Pi. Host a very basic website [1] and access it externally


What I've done:

I've set up wordpress on the Pi already, I followed a guide for that a few days back.

So If I go to 192.168.0.14 on my browser (that's on the same network) I can see the wordpress sites hello world

I'm using a Sky router (UK) and I've set up port forwarding as follows:

Outbound services

Inbound services

To check that the port forwarding is functioning I've gone to http://www.canyouseeme.org/ and entered in port 80. I get a success message for this.


What I'm expecting to happen

Now this seems to be set up I'm expecting to be able to enter my external IP address followed by the port on a different network and that it will enable me to view the wordpress page (changing that to the html page is another problem I guess)


Whats happening

But when I go to

151.xxx.xx.xx:80 

From a different network it just kind of freezes and does nothing.

I've tried to access this from Tor on my own network and I get the same error (not sure if using Tor is a proper test for this kind of thing or not? )


So...

I've no idea how to go about troubleshooting this.


Info:

ls -lha of apache directory:

pi@raspberrypi /etc/apache2 $ ls -la total 84 drwxr-xr-x 7 root root 4096 Feb 27 18:20 . drwxr-xr-x 108 root root 4096 Feb 27 14:12 .. -rw-r--r-- 1 root root 9640 Dec 22 20:59 apache2.conf drwxr-xr-x 2 root root 4096 Feb 27 18:15 conf.d -rw-r--r-- 1 root root 1465 Dec 22 20:59 envvars -rw-r--r-- 1 root root 31063 May 25 2014 magic drwxr-xr-x 2 root root 4096 Feb 7 19:39 mods-available drwxr-xr-x 2 root root 4096 Feb 14 14:53 mods-enabled -rw-r--r-- 1 root root 750 Feb 27 18:08 ports.conf drwxr-xr-x 2 root root 4096 Feb 27 17:05 sites-available drwxr-xr-x 2 root root 4096 Feb 27 17:14 sites-enabled pi@raspberrypi /etc/apache2 $ 

here's a link to a pastebin of tree ran from the apache directory

I'm not sure what else I can include to help here.

Any assistance troubleshooting this would be really appreciated though!

thanks


edit 1

/u/BigRedS pointed out running apache2ctl -S (and that it's actually informative!) so here's the output of that:

pi@raspberrypi /var/www $ apache2ctl -S /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/bbb_000-default_BACKUP:1) Syntax OK pi@raspberrypi /var/www $ 

edit 2

here's a video of me entering the information in on the local network. The wordpress site is running of the Pi, and I'm using my HP. I'm not sure if this is useful at all, show's what is working at least.

edit 3

setting up a port forward in the router


[1] the site is ~5 pages of HTML, a CSS sheet and a few pictures.

submitted by y45y564
[link][44 comments]

Viewing all articles
Browse latest Browse all 17854