[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2 virtual host



Hi Russell,

On Mon, Feb 03, 2020 at 07:11:21AM +0000, Russell L. Harris wrote:
> On Mon, Feb 03, 2020 at 07:05:11AM +0000, Andy Smith wrote:
> >(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

So a2ensite is either not present or not in your path…

> root@penelope:/etc/apache2/sites-available# ls -la /usr/sbin/a2ensite
> lrwxrwxrwx 1 root root 7 Oct 15 19:53 /usr/sbin/a2ensite -> a2enmod

So a2ensite exists as a symlink to a2enmod.

I'm guessing that however you became root ("su" instead of "su -"
perhaps?) didn't leave you with /usr/sbin in your path.

Does calling it as:

# /usr/sbin/a2ensite …

work?

If not, what is the output of:

# ls -la/usr/sbin/a2enmod

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting


Reply to: