Local by Flywheel (now owned by WP Engine) is a great tool for developing or testing WordPress. You can easily spin up a WordPress installation within a minute or two. For Linux users, there has been a problem for a while. You cannot use the Site shell button to open a shell. As many times as you click it, nothing seems to happen.
The Site shell button should open a shell where you can use WP-CLI, access MySQL, and other things that way. There is a workaround that I have found by digging through the files in the ~/.conf/Local/
directory.
- Open Local.
- Start your site (or create one and start it).
- Click Site shell. Nothing visually will happen unless they have finally fixed the problem. What this does is create an ssh-entry file that we will use in a moment.
- Open your terminal of choice (e.g. Konsole).
- Change the current working directory with
cd ~/.config/Local/ssh-entry/
- Then execute the shell script for setting up variables with
./filename.sh
You should see two files for each site, a .bat and .sh file. The filenames will be random characters. If you have multiple sites, there may be many files. These files do not get deleted when you delete a site. So there may be many more files than sites. To find the file for your site, do a search for the first word in the name of your site with grep -ril [firstword]
which should list any files with that word in it.