Peter Woodall's picture
After installing I noticed that the instance has no web shell icon on the server instance on the Hub. I tried to use the port with the URL but no luck. But I had previously managed to break Webmin so it no longer responds (no idea what I did) so this may be related. Is the web shell icon supposed to showup? Looks like a destroy/ recreate is in the cards. I am new to Drupal and it says to use composer to do core updates, add themes, etc. What userid should I be using to do the updates? Appreciate any help!
Forum: 
Jeremy Davis's picture

Because of the inclusion of a Webmin terminal module, we've removed Webshell. Obviously that is an issue if Webmin is broken!

I'm happy to assist with fixing Webmin, but unfortunately you'll need to log in via SSH to access a shell. If you are using Linux, OSX or Windows 10 build 1809 (or later), then you can use OpenSSH. It should be preinstalled by default, so open a terminal (IIRC you need to open PowerShell) and use the 'ssh' command - e.g.:

ssh root@IP_OR_DOMAIN

If you are using an older version of Windows and don't have OpenSSH you can install it. If you search for "install openssh windows" (or similar) you should find plenty of tutorials.

Or if you are using Windows and prefer a GUI based app, then you have a couple of options:

Once logged in, if you like you can use our built in "helper"/"wrapper" script/s to run composer and/or drush as the webserver user (www-data). The wrappers are 'turnkey-composer' and 'turnkey-drush' respectively. E.g.:

turnkey-composer COMMAND
turnkey-drush COMMAND

If you prefer to use composer/drush directly, then you'll need to manually run them as the webserver user. You can use the preinstalled su command. E.g. for composer:

su - www-data -s /bin/bash -c "cd /var/www/drupal10 && composer COMMAND"

Or install sudo:

apt update
apt install sudo

And then use that. E.g. for composer:

sudo -u www-data composer COMMANDS

As for Webmin, I'm more than happy to help you fix that. First try restarting the Webmin service:

systemctl restart webmin

And if that still doesn't get you going, please give me the output of these:

turnkey-version
netstat -tlnp
systemctl status webmin
journalctl -u webmin --since="10 minutes ago"

Please be sure to run the last line within 10 minutes of restarting Webmin and trying to access it.

Also it will likely be useful if you share your current Webmin miniserver config:

cat /etc/webmin/miniserv.conf
Peter Woodall's picture

Thanks for getting back to me on this. I had not had the time to investigate this for a few days and when I started the instance (I keep it stopped as I am evaluating whether to migrate from Wordpress to Drupal for my personal site) Webmin started just fine. When I ran into the issues with Webmin I was restarting quickly so not sure if that fed into it. Anyway all seems good for the time being. I also tried using 'turnkey-composer' and that works fine as well. Thanks again for your help. Peter

Add new comment