a2enmod command not found in apache server using cpanel in linux vps
Asked Answered
T

3

10

after going to /etc/httpd/conf/httpd.conf and even after changing

Allow override none -> Allow override All , and then restarting the server using 

service httpd restart

and then i type the command

 a2enmod proxy

then i get an error :

bash- a2enmod command not found. . 

Can you please help me? i am getting an error in the developer tools console when i am using web-sockets and so for that i need to enable web-sockets proxy.

Teacup answered 25/4, 2018 at 12:33 Comment(3)
Go and try SuperUser instead of StackOverflowUnvalued
Possible duplicate of Apache2 command such as a2enmod and a2ensite no working its showing command not found in UbuntuBassinet
I had the same problem too! worked after using sudo. Did nothing else. Just used sudo a2enmod. worked like a charmCooe
G
11

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 update
sudo apt-get install apache2 libapache2-mod-wsgi

Then,

sudo a2enmod wsgi

Then, you might also want to try sudo a2enmod instead of just a2enmod

Gastrolith answered 25/3, 2019 at 15:27 Comment(0)
C
6

On Debian a2enmod is located at /usr/sbin/a2enmod and sometimes /usr/sbin is not in your PATH.

Curtice answered 12/2, 2022 at 14:8 Comment(0)
S
0

In my case below lines worked

sudo apt-get update
sudo apt-get install apache2 libapache2-mod-wsgi-py3
Satinwood answered 10/2 at 14:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.