You don't have permission to access / on this server

Hi,

i had a lot of problems with the installation , most with email delivery.

But now ich get this error message wen trying to open my website.

i did nothing … it works first and after a while it didn’t work anymore.

i’m not only a beginner also my english is very bad. sorry for that !

i hope somebody can help me ?

It sounds like you have some other web server running on the system. You should not have apache or nginx installed.

2 Likes

hi

my installation setup step by step

bought virtaul server
install ubuntu server
install docker
use this install guide for discourse (https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

write server ip adress in domain setup at my serverprovider

docker issues me the following output

> docker ps -a
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS                    PORTS               NAMES
43ecc553dc2c        local_discourse/app   "/bin/bash -c 'cd /p…"   23 hours ago        Exited (1) 23 hours ago                       nervous_morse
4d4d9b1b7938        local_discourse/app   "/sbin/boot"             2 days ago          Exited (6) 37 hours ago                       app

This means that Discourse is not running, probably since it was unable to start due to another web server being installed and running.

You’ll want to remove other webserver packages from your host, e.g.: apache2, nginx

The command:

sudo ss -ltp | grep http

should let you know what’s running on that port.

2 Likes

sudo ss -ltp | grep http
sudo: unable to resolve host localhost.localdomain

:roll_eyes:

You can try this instead:

sudo ss -ltpn | grep 80

Or, run it as root without sudo.

1 Like

user@localhost:~$ sudo ss -ltp | grep 80
sudo: unable to resolve host localhost.localdomain
[sudo] password for user:
user@localhost:~$ sudo ss -ltp | grep 80
sudo: unable to resolve host localhost.localdomain
user@localhost:~$ sudo -s
sudo: unable to resolve host localhost.localdomain
root@localhost:~# ss -ltp | grep 80
root@localhost:~# ss -ltpn | grep 80
root@localhost:~# ss -ltpn | grep http
root@localhost:~#

as you can see show me “unable the resolve …” first and then ask for the password

as root it shows nothing ?

oh, OK, it’s just a warning you can ignore.

You have two conflicting facts here:

  • a webserver is responding: You don’t have permission to access / on this server
  • no webserver is listening on port 80
2 Likes

yes i see …

but i did nothing and it works for 2h

and then this …

in my opinion it would be best to start at zero :roll_eyes: