# Can't use router mode Site Domains

**URL:** <https://community.localwp.com/t/cant-use-router-mode-site-domains/39521>\
**Category:** Support\
**Tags:** linux-ubuntu\
**Created:** [October 13, 2023, 4:13am UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521 "2023-10-13T04:13:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![coded\_chris](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/coded_chris/32/19829_2.png) [@coded\_chris](https://community.localwp.com/u/coded_chris)\
**Post date:** [October 13, 2023, 4:13am UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/1 "2023-10-13T04:13:29Z")

</div>

### What issue or error are you experiencing?

* * *

When trying to Router mode to Site Domains I get the message “Heads up! Local’s router is having trouble starting” Looking at the logs I’m getting bind() to 0.0.0.0:80 failed (13: Permission denied)  
I’ve tried to correct nginx capabilities manually using setcap but no change. Localhost works find but I’d prefer to use Site Domains if possible. This hasn’t been a problem in the past. Started happening a couple of versions ago.

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Switching router mode to Site Domains and starting a site.

* * *

### System Details

- **Local Version:**  
Version 8.0.0+6475
- **Operating System (OS) and OS version:**  
Ubuntu 23.04

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))  
[local-lightning.log](https://community.localwp.com/uploads/short-url/7znxIuiqCjvjBn6MTulCxOLnucn.log) (70.7 KB)

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 13, 2023, 1:18pm UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/2 "2023-10-13T13:18:42Z")

</div>

Hi @coded_chris

Usually this means there is a port conflict going on, or something is blocking Local. This could be antivirus, firewall or security related. It could also be competing developer applications if you’re also using something like XAMP or MAMP.

More details on troubleshooting this here: [What is Router Mode? - Local](https://localwp.com/help-docs/advanced/router-mode/)

---

<div class="post-metadata">

**Author:** ![coded\_chris](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/coded_chris/32/19829_2.png) [@coded\_chris](https://community.localwp.com/u/coded_chris)\
**Post date:** [October 13, 2023, 6:30pm UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/3 "2023-10-13T18:30:26Z")

</div>

Hwy @Nick-B Nah port 80 is clear. On linux so not using any of that.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 13, 2023, 7:56pm UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/4 "2023-10-13T19:56:17Z")

</div>

You said it used to work for you on a previous version. If you downgrade are you able to get things working?

> **[Downgrade Local Version](https://localwp.com/help-docs/troubleshooting/downgrade-local-version/)**
>
> Downgrading Local may be used to troubleshoot issues presented with a newer version or other various reasons. We recommend running Local on the latest version available when possible.

How many sites do you have in Local? Are any using Apache?

---

<div class="post-metadata">

**Author:** ![coded\_chris](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/coded_chris/32/19829_2.png) [@coded\_chris](https://community.localwp.com/u/coded_chris)\
**Post date:** [October 13, 2023, 11:30pm UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/5 "2023-10-13T23:30:22Z")

</div>

Downgraded to 7.1.2 and it works perfectly. Then I upgraded to 7.2.0 and it happens again. I can work with 7.1.2 for now.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 14, 2023, 1:22pm UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/6 "2023-10-14T13:22:00Z")

</div>

Glad to hear that’s working @coded_chris! I’ll check with the team on this to review but glad you have a workaround in the meantime.

---

<div class="post-metadata">

**Author:** ![coded\_chris](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/coded_chris/32/19829_2.png) [@coded\_chris](https://community.localwp.com/u/coded_chris)\
**Post date:** [October 15, 2023, 1:31am UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/8 "2023-10-15T01:31:41Z")

</div>

Awesome @Nick-B thanks so much for your help. Really appreciated.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 17, 2023, 2:52pm UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/9 "2023-10-17T14:52:09Z")

</div>

Hi @coded_chris - One of the devs reminded me we had a user come in with the same issues recently. There is some more insight and debug steps at the link below:

> [@V7.2.1 - Local's router is having trouble starting \[bind() Address already in use\]](https://community.localwp.com/t/v7-2-1-locals-router-is-having-trouble-starting-bind-address-already-in-use/39197/9):
>
> I’m sorry Local isn’t working for you with site domains, @maartendwd. I’m a developer on the Local team interested in helping you to fix this. I looked at the logs you helpfully shared and saw this line repeated, reformatted for clarity: SiteProcessManagerService… Error: User did not grant permission. Error executing command as another user: Request dismissed This message could appear on Linux if Local presented someone with a dialog like the one below, and they chose “cancel”, accidentally p…

---

<div class="post-metadata">

**Author:** ![coded\_chris](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/coded_chris/32/19829_2.png) [@coded\_chris](https://community.localwp.com/u/coded_chris)\
**Post date:** [October 18, 2023, 2:11am UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/10 "2023-10-18T02:11:11Z")

</div>

Hey @Nick-B cheers. I went through that one a while back but no luck. I did notice that on the 7.1.2 after switching router modes I would get the dialogue box asking for root permissions but on the new versions it didn’t seem to come up. I tried seeting them manually with setcap but no luck there either.

---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [October 30, 2023, 12:07pm UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/11 "2023-10-30T12:07:28Z")

</div>

Sorry for the glitch here, @coded_chris.

If you have time, it could be helpful for us to have the output of these commands from your system:

1. `ls -al /usr/sbin/getcap`
2. `ls -al ~/.config/Local/lightning-services/`
3. `/usr/sbin/getcap ~/.config/Local/lightning-services/nginx-1.16.0+5/bin/linux/sbin/nginx`
4. `/usr/sbin/getcap ~/.config/Local/lightning-services/nginx-1.16.0+6/bin/linux/sbin/nginx`

---

<div class="post-metadata">

**Author:** ![coded\_chris](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/coded_chris/32/19829_2.png) [@coded\_chris](https://community.localwp.com/u/coded_chris)\
**Post date:** [October 31, 2023, 3:52am UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/12 "2023-10-31T03:52:36Z")

</div>

Sure thing @nickc  
1.  
-rwxr-xr-x 1 root root 14648 Jun 7 23:55 /usr/sbin/getcap  
2.  
total 36  
drwxrwxr-x 9 chris chris 4096 Oct 14 12:28 .  
drwx------ 19 chris chris 4096 Oct 31 16:45 …  
drwxr-xr-x 4 chris chris 4096 Oct 11 20:05 mailhog-1.0.0+3  
drwxr-xr-x 5 chris chris 4096 Oct 11 20:05 mariadb-10.4.10+4  
drwxr-xr-x 6 chris chris 4096 Oct 11 20:06 mysql-8.0.16+6  
drwxr-xr-x 6 chris chris 4096 Oct 11 20:06 nginx-1.16.0+7  
drwxr-xr-x 7 chris chris 4096 Oct 14 12:28 php-8.1.22+1  
drwxr-xr-x 7 chris chris 4096 Oct 11 20:06 php-8.1.23+0  
drwxrwxr-x 7 chris chris 4096 Oct 11 20:23 php-8.2.10+1

No directory found for 3 + 4 but if I do 1.16.0+7 I get  
/home/chris/.config/Local/lightning-services/nginx-1.16.0+7/bin/linux/sbin/nginx cap\_net\_bind\_service=ep

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [January 29, 2024, 3:52am UTC](https://community.localwp.com/t/cant-use-router-mode-site-domains/39521/13 "2024-01-29T03:52:38Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
