a2enmod command not found in apache server using cpanel in linux vps
I had the same problem, and this answer solved my issue:
Apache2 command such as a2enmod and a2ensite no working its showing command not found in Ubuntu
Try:
sudo apt-get updatesudo apt-get install apache2 libapache2-mod-wsgi
Then,
sudo a2enmod wsgi
Then, you might also want to try sudo a2enmod
instead of just a2enmod