On 2/3/2020 8:11 AM, Russell L. Harris wrote: > On Mon, Feb 03, 2020 at 07:05:11AM +0000, Andy Smith wrote: >> Hi Russell, >> >> On Mon, Feb 03, 2020 at 06:59:55AM +0000, Russell L. Harris wrote: >>> I receive the following error message when attempting to enable a >>> virtual host (apache2 in Debian 10): >>> >>> root@penelope:/etc/apache2/sites-available# a2ensite domain1.com.conf >>> bash: a2ensite: command not found >> >> Your shell is failing to find the "a2ensite" command. Normally it is >> found at /usr/sbin/a2ensite and is part of the apache2 package. What >> do the following commands say? >> >> (do these as root, since that seems to be how you are working) >> >> # which a2ensite >> # ls -la /usr/sbin/a2ensite > > root@penelope:/etc/apache2/sites-available# which a2ensite > > root@penelope:/etc/apache2/sites-available# ls -la /usr/sbin/a2ensite > lrwxrwxrwx 1 root root 7 Oct 15 19:53 /usr/sbin/a2ensite -> a2enmod > > root@penelope:/etc/apache2/sites-available# > > Thanks for the prompt response, Andy. It is an hour past midnight > here (central Texas), and I am about ready to pull the plug for the > night, but I would sleep better with this hurdle out of the way. > > No response to the first command. >
What is the content of your 'PATH' env? $ printf "%s\n" "$PATH" -- John Doe

