# Apache/2.4.38 (Debian) Server at localhost Port 80

**URL:** <https://farmos.discourse.group/t/apache-2-4-38-debian-server-at-localhost-port-80/930>\
**Category:** Hosting farmOS\
**Created:** [September 16, 2021, 5:29am UTC](https://farmos.discourse.group/t/apache-2-4-38-debian-server-at-localhost-port-80/930 "2021-09-16T05:29:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![raheel](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@raheel](https://farmos.discourse.group/u/raheel)\
**Post date:** [September 16, 2021, 5:29am UTC](https://farmos.discourse.group/t/apache-2-4-38-debian-server-at-localhost-port-80/930/1 "2021-09-16T05:29:49Z")

</div>

I am facing this issue on the localhost when i try to access it on browser it show me this

 ![Screenshot_9](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/a25caa50a9b798c8dec96eb89607d4cef0f64f5e.png)  
Also i tried to change the port to 81 in .yml file i still get the same issue.

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [September 16, 2021, 12:58pm UTC](https://farmos.discourse.group/t/apache-2-4-38-debian-server-at-localhost-port-80/930/2 "2021-09-16T12:58:48Z")

</div>

Hi @raheel, can you paste your entire `docker-compose.yml` file?

---

<div class="post-metadata">

**Author:** ![raheel](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@raheel](https://farmos.discourse.group/u/raheel)\
**Post date:** [September 16, 2021, 1:12pm UTC](https://farmos.discourse.group/t/apache-2-4-38-debian-server-at-localhost-port-80/930/3 "2021-09-16T13:12:23Z")

</div>

version: ‘3’

services:

db:

```
image: postgres:12

volumes:

  - './db:/var/lib/postgresql/data'

ports:

  - '5432:5432'

environment:

  POSTGRES_USER: farm

  POSTGRES_PASSWORD: farm

  POSTGRES_DB: farm

```

www:

```
depends_on:

  - db

image: farmos/farmos:2.x-dev

volumes:

  - './www:/opt/drupal'

ports:

  - '80:80'

environment:

  XDEBUG_MODE: debug

  XDEBUG_CONFIG: client_host=172.17.0.1

  # Enable these for PHPStorm:

  #XDEBUG_SESSION: PHPSTORM

  #PHP_IDE_CONFIG: serverName=localhost

```

# Enable this service when executing javascript tests.

# chrome:

# image: selenium/standalone-chrome:latest

i have disabled the application which was using port 80, also i tried 81:80 still getting the same issue.

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [September 16, 2021, 8:19pm UTC](https://farmos.discourse.group/t/apache-2-4-38-debian-server-at-localhost-port-80/930/4 "2021-09-16T20:19:28Z")

</div>

What operating system are you running Docker on?

I wonder if it is a permissions issue with the `www` directory that is being bind-mounted into the container.

It strikes me as similar to the issue that @gmagnusson encountered in [Hosting with Docker - #6 by mstenta](https://farmos.discourse.group/t/hosting-with-docker/923/6)

---

<div class="post-metadata">

**Author:** ![raheel](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@raheel](https://farmos.discourse.group/u/raheel)\
**Post date:** [September 17, 2021, 3:39am UTC](https://farmos.discourse.group/t/apache-2-4-38-debian-server-at-localhost-port-80/930/5 "2021-09-17T03:39:51Z")

</div>

I am running docker on Windows 10, with virtualization on in BIOS.

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [September 17, 2021, 2:17pm UTC](https://farmos.discourse.group/t/apache-2-4-38-debian-server-at-localhost-port-80/930/6 "2021-09-17T14:17:28Z")

</div>

I don’t have experience running Docker with bind-mounted volumes on Windows. I would assume it can handle the permissions properly, but maybe that’s not the case.

One way to test if this is the issue or not is to _remove_ the following lines from your `docker-compose.yml` file and try installing farmOS again (BUT READ MY WARNING BELOW):

```auto
volumes:
  - './www:/opt/drupal'

```

WARNING: without these lines, as soon as you shut down your Docker container you will lose everything and have to start fresh. Those lines ensure that data persists outside of the Docker container, which is considered ephemeral.
