# \#site-shell

**URL:** https://community.localwp.com/tag/site-shell/136.md

[Latest](https://community.localwp.com/latest.md) · [Categories](https://community.localwp.com/categories.md) · [Tags](https://community.localwp.com/tags.md)

---

## [Site shell wp db cli connecting to wrong port](https://community.localwp.com/t/site-shell-wp-db-cli-connecting-to-wrong-port/47331)

<div class="topic-metadata">

**Author:** [@jimihenrik](https://community.localwp.com/u/jimihenrik)\
**Replies:** 7\
**Last updated:** [March 17, 2026, 10:18am UTC](https://community.localwp.com/t/site-shell-wp-db-cli-connecting-to-wrong-port/47331 "2026-03-17T10:18:39Z")

</div>

What issue or error are you experiencing? wp db cli in the public folder doesn’t work without editing WP-config Other wp db have similar problems but that doesn’t really matter for the problem itself. If this is the ex…

---

## [Create a hook to run a custom script after launching a site shell](https://community.localwp.com/t/create-a-hook-to-run-a-custom-script-after-launching-a-site-shell/41222)

<div class="topic-metadata">

**Author:** [@efc](https://community.localwp.com/u/efc)\
**Replies:** 3\
**Last updated:** [July 23, 2025, 9:36am UTC](https://community.localwp.com/t/create-a-hook-to-run-a-custom-script-after-launching-a-site-shell/41222 "2025-07-23T09:36:57Z")

</div>

It would be really helpful for Local to call a custom script after launching a site shell. For example, there might be a conf/shell folder with a script in it or a conf/custom.sh file that starts out empty but is availab…

---

## [Open site shell from WSL2](https://community.localwp.com/t/open-site-shell-from-wsl2/50067)

<div class="topic-metadata">

**Author:** [@denisenadal](https://community.localwp.com/u/denisenadal)\
**Replies:** 0\
**Last updated:** [May 7, 2025, 8:33pm UTC](https://community.localwp.com/t/open-site-shell-from-wsl2/50067 "2025-05-07T20:33:23Z")

</div>

Hey all, I haven’t see this solution posted in the forum so I’m adding it in. While I was able to get Local to run on my WSL2 ubuntu instance, the links in the app UI to open Adminer, MailPit, and the Site Shell don’t wo…

---

## [PHP Code Sniffer through VS Code](https://community.localwp.com/t/php-code-sniffer-through-vs-code/49673)

<div class="topic-metadata">

**Author:** [@lagom-jim](https://community.localwp.com/u/lagom-jim)\
**Replies:** 3\
**Last updated:** [April 18, 2025, 12:14pm UTC](https://community.localwp.com/t/php-code-sniffer-through-vs-code/49673 "2025-04-18T12:14:04Z")

</div>

What issue or error are you experiencing? I am attempting to run PHP Code Sniffer, but am open to other solutions in order to have an automated way to stick to WP coding standards through VS Code and Local. I have tried …

---

## [Getting the Site shell button to work on Linux](https://community.localwp.com/t/getting-the-site-shell-button-to-work-on-linux/47229)

<div class="topic-metadata">

**Author:** [@seashell](https://community.localwp.com/u/seashell)\
**Replies:** 4\
**Last updated:** [March 7, 2025, 3:07pm UTC](https://community.localwp.com/t/getting-the-site-shell-button-to-work-on-linux/47229 "2025-03-07T15:07:23Z")

</div>

What issue or error are you experiencing? On Ubuntu 24.04.2 running KDE, the “Site shell” button does nothing. Has anyone figured out how to get it working? I have tried adding a script to my $PATH that mimics gnome-term…

---

## [Site shell error](https://community.localwp.com/t/site-shell-error/42536)

<div class="topic-metadata">

**Author:** [@ProgramadorWP](https://community.localwp.com/u/ProgramadorWP)\
**Replies:** 2\
**Last updated:** [April 24, 2024, 9:48pm UTC](https://community.localwp.com/t/site-shell-error/42536 "2024-04-24T21:48:46Z")

</div>

What issue or error are you experiencing? Warning: PHP Startup: Unable to load dynamic library ‘php\_imagick.dll’ (tried: C:/Users/Rafa Carvalhido/AppData/Roaming/Local/lightning-services/php-8.1.23+0/bin/win64/ext\\php\_im…

---

## [Local site shell not working properly](https://community.localwp.com/t/local-site-shell-not-working-properly/42496)

<div class="topic-metadata">

**Author:** [@ProgramadorWP](https://community.localwp.com/u/ProgramadorWP)\
**Replies:** 4\
**Last updated:** [April 24, 2024, 1:02am UTC](https://community.localwp.com/t/local-site-shell-not-working-properly/42496 "2024-04-24T01:02:53Z")

</div>

What issue or error are you experiencing? After I run a wp-cli command such as wp db export database.sql, it says ‘grep’ is not recognized as internal or external command. Warning: Failed to get current character set of …

---

## [Error: Cannot connect to MySQL server on 'localhost' during wp db import in Local Site Shell](https://community.localwp.com/t/error-cannot-connect-to-mysql-server-on-localhost-during-wp-db-import-in-local-site-shell/42302)

<div class="topic-metadata">

**Author:** [@farhan](https://community.localwp.com/u/farhan)\
**Replies:** 1\
**Last updated:** [April 9, 2024, 1:38pm UTC](https://community.localwp.com/t/error-cannot-connect-to-mysql-server-on-localhost-during-wp-db-import-in-local-site-shell/42302 "2024-04-09T13:38:29Z")

</div>

---

## [Site URL, localhost: port](https://community.localwp.com/t/site-url-localhost-port/39638)

<div class="topic-metadata">

**Author:** [@itserika18](https://community.localwp.com/u/itserika18)\
**Replies:** 1\
**Last updated:** [October 26, 2023, 5:57pm UTC](https://community.localwp.com/t/site-url-localhost-port/39638 "2023-10-26T17:57:34Z")

</div>

What issue or error are you experiencing? Hello Local Community, I’m encountering a problem when I go to open the site the tab is opened under localhost: port. I would simply like to know how I can open my site under the…

---

## [WP-CLI in Site Shell emits PHP warnings](https://community.localwp.com/t/wp-cli-in-site-shell-emits-php-warnings/30125)

<div class="topic-metadata">

**Author:** [@weston](https://community.localwp.com/u/weston)\
**Replies:** 11\
**Last updated:** [October 4, 2023, 11:04pm UTC](https://community.localwp.com/t/wp-cli-in-site-shell-emits-php-warnings/30125 "2023-10-04T23:04:09Z")

</div>

Bug Summary When I select PHP 8.0.0 and open Site Shell, running any WP-CLI command results in the following being printed to STDERR: Cannot load Zend OPcache - it was already loaded And then the command runs as expect…

---

## ['wp-scripts' error when using site shell](https://community.localwp.com/t/wp-scripts-error-when-using-site-shell/39309)

<div class="topic-metadata">

**Author:** [@JakePowell](https://community.localwp.com/u/JakePowell)\
**Replies:** 1\
**Last updated:** [September 27, 2023, 2:30pm UTC](https://community.localwp.com/t/wp-scripts-error-when-using-site-shell/39309 "2023-09-27T14:30:16Z")

</div>

What issue or error are you experiencing? I’m following the guide to create a block (Scaffold your first block | Learn WordPress). I’ve done it previously with no issues but now I’m getting Error: Command failed with e…

---

## [SSH command not working in Local Site Shell (Win 11)](https://community.localwp.com/t/ssh-command-not-working-in-local-site-shell-win-11/38360)

<div class="topic-metadata">

**Author:** [@nickpish](https://community.localwp.com/u/nickpish)\
**Replies:** 4\
**Last updated:** [August 1, 2023, 8:05pm UTC](https://community.localwp.com/t/ssh-command-not-working-in-local-site-shell-win-11/38360 "2023-08-01T20:05:29Z")

</div>

For some reason, when I try to run an SSH command in the Local Site Shell on Windows 11 (22H2), I get a “‘ssh’ is not recognized as an internal or external command…” error. However, if I open a normal command prompt (Ter…

---

## [Fish shell - libc version requirements in Site SSH on Fedora](https://community.localwp.com/t/fish-shell-libc-version-requirements-in-site-ssh-on-fedora/38131)

<div class="topic-metadata">

**Author:** [@Ferro](https://community.localwp.com/u/Ferro)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 2:40pm UTC](https://community.localwp.com/t/fish-shell-libc-version-requirements-in-site-ssh-on-fedora/38131 "2023-07-19T14:40:59Z")

</div>

Bug Summary libcstdc++.so is incompatible with Fish shell on Fedora Linux. Opening site shell shows errors, closing the terminal window automatically. Steps to reproduce Test on Fedora Linux 38 Set fish shell as user d…

---

## [Open Site Shell not working in Linux Mint 21.1 (Vera), Xfce edition](https://community.localwp.com/t/open-site-shell-not-working-in-linux-mint-21-1-vera-xfce-edition/37547)

<div class="topic-metadata">

**Author:** [@gpgp](https://community.localwp.com/u/gpgp)\
**Replies:** 3\
**Last updated:** [June 21, 2023, 12:37am UTC](https://community.localwp.com/t/open-site-shell-not-working-in-linux-mint-21-1-vera-xfce-edition/37547 "2023-06-21T00:37:22Z")

</div>

Issue Summary Open Site Shell not working in Linux Mint 21.1 (Vera), Xfce edition Troubleshooting Questions Does this happen for all sites in Local, or just one in particular? All sites Are you able to create a ne…

---

## [macOS 13 Ventura and Open Site Shell](https://community.localwp.com/t/macos-13-ventura-and-open-site-shell/33870)

<div class="topic-metadata">

**Author:** [@emmtre](https://community.localwp.com/u/emmtre)\
**Replies:** 49\
**Last updated:** [May 25, 2023, 4:14pm UTC](https://community.localwp.com/t/macos-13-ventura-and-open-site-shell/33870 "2023-05-25T16:14:20Z")

</div>

I can’t start Open Site Shell in Local app for any sites after installing macOS 13.0 Ventura. I can however start site shell directly in Terminal after finding the correct script. I’m using Local 6.4.3. Anyone else with…

---

## [Null is not allowed to open documents in Terminal when trying to open site shell](https://community.localwp.com/t/null-is-not-allowed-to-open-documents-in-terminal-when-trying-to-open-site-shell/34977)

<div class="topic-metadata">

**Author:** [@maximebj](https://community.localwp.com/u/maximebj)\
**Replies:** 4\
**Last updated:** [January 5, 2023, 9:40am UTC](https://community.localwp.com/t/null-is-not-allowed-to-open-documents-in-terminal-when-trying-to-open-site-shell/34977 "2023-01-05T09:40:35Z")

</div>

Issue Summary When clicking on Open site Shell, an error occurs: (Null) is not allowed to open documents in Terminal on a brand new install of LocalWP. Troubleshooting Questions Does this happen for all sites in Lo…

---

## [PHP imagick issue on Windows 10](https://community.localwp.com/t/php-imagick-issue-on-windows-10/28936)

<div class="topic-metadata">

**Author:** [@kaleb](https://community.localwp.com/u/kaleb)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 9:36am UTC](https://community.localwp.com/t/php-imagick-issue-on-windows-10/28936 "2022-06-15T09:36:07Z")

</div>

Bug Summary Following up on the issue flagged in this comment by @SirLouen, there is a problem with opening Site Shell on Windows 10 and it appears to be a bug in Local WP Steps to reproduce On Windows 10, attempt to op…

---

## [Open Site Shell not working. Exits before loading .sh file](https://community.localwp.com/t/open-site-shell-not-working-exits-before-loading-sh-file/31759)

<div class="topic-metadata">

**Author:** [@Gray](https://community.localwp.com/u/Gray)\
**Replies:** 1\
**Last updated:** [May 26, 2022, 4:33am UTC](https://community.localwp.com/t/open-site-shell-not-working-exits-before-loading-sh-file/31759 "2022-05-26T04:33:28Z")

</div>

Issue Summary When I try to fire up “open site shell” for any of my sites, my terminal opens, attempts to load the .sh file, but then exits before loading it and creating the environment. Last login: Thu May 19 16:22:15…

---

## [Open site shell opens and quits in Mac OS Big Sur](https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860)

<div class="topic-metadata">

**Author:** [@djave](https://community.localwp.com/u/djave)\
**Replies:** 3\
**Last updated:** [October 14, 2021, 5:38pm UTC](https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860 "2021-10-14T17:38:34Z")

</div>

Bug Summary Right clicking the site name and selecting open site shell opens a terminal window. The following output occurs: \*\*$\*\* /Users/djave\_co/Library/Application\\ Support/Local/ssh-entry/iLyU0kruE.sh ; exit; Settin…

---

## [Wrong PHP version in site shell](https://community.localwp.com/t/wrong-php-version-in-site-shell/24835)

<div class="topic-metadata">

**Author:** [@fps](https://community.localwp.com/u/fps)\
**Replies:** 9\
**Last updated:** [March 17, 2021, 10:12am UTC](https://community.localwp.com/t/wrong-php-version-in-site-shell/24835 "2021-03-17T10:12:42Z")

</div>

Issue Summary I open the site shell. It says: PHP: 7.3.5. When I type php -v it says PHP 7.4.16. I am expecting to see PHP 7.3.5. Troubleshooting Questions This happens for all sites, even ones I create from scrat…

---

## [Open Site Shell no longer works in Mac BigSur](https://community.localwp.com/t/open-site-shell-no-longer-works-in-mac-bigsur/22984)

<div class="topic-metadata">

**Author:** [@cliff](https://community.localwp.com/u/cliff)\
**Replies:** 11\
**Last updated:** [March 8, 2021, 5:53pm UTC](https://community.localwp.com/t/open-site-shell-no-longer-works-in-mac-bigsur/22984 "2021-03-08T17:53:42Z")

</div>

Issue Summary Right-click \> Open Site Shell no longer works, whether I have Terminal or iTerm in my Preferences No errors or anything, just nothing happens. Troubleshooting Questions Does this happen for all sites in…

---

## [Open Site Shell (Local v5.9.8 )still not working with macOS Big Sur](https://community.localwp.com/t/open-site-shell-local-v5-9-8-still-not-working-with-macos-big-sur/24174)

<div class="topic-metadata">

**Author:** [@en\_dche](https://community.localwp.com/u/en_dche)\
**Replies:** 6\
**Last updated:** [February 3, 2021, 1:04am UTC](https://community.localwp.com/t/open-site-shell-local-v5-9-8-still-not-working-with-macos-big-sur/24174 "2021-02-03T01:04:54Z")

</div>

Issue Summary I tried to access the flywheel using “open site shell”. It shows me a new terminal but the terminal doesn’t go into the flywheel, meaning I’m still on host server. I know this should be solved from local v…

---

## [Open Site Shell not working macOS Big Sur](https://community.localwp.com/t/open-site-shell-not-working-macos-big-sur/22270)

<div class="topic-metadata">

**Author:** [@aaronmclayton](https://community.localwp.com/u/aaronmclayton)\
**Replies:** 33\
**Last updated:** [December 17, 2020, 8:22pm UTC](https://community.localwp.com/t/open-site-shell-not-working-macos-big-sur/22270 "2020-12-17T20:22:20Z")

</div>

I am running the latest beta of macOS Big Sur, and Open Site Shell is not opening at all. Is there a manual way to access the site shell from macOS? Thank you!

---

## [Nothing happens when clicking "Open site ssh"](https://community.localwp.com/t/nothing-happens-when-clicking-open-site-ssh/16261)

<div class="topic-metadata">

**Author:** [@KoenG](https://community.localwp.com/u/KoenG)\
**Replies:** 0\
**Last updated:** [January 1, 2020, 2:40pm UTC](https://community.localwp.com/t/nothing-happens-when-clicking-open-site-ssh/16261 "2020-01-01T14:40:32Z")

</div>

As the title suggests, nothing happens when I click “Open site ssh” in the menu. My default shell is bash and if I open up a terminal and execute the .sh script in ssh-entry it works… I am running Bunsenlabs (Debian ba…
