a2enmod command not found in apache server using cpanel in linux vps

别来无恙 提交于 2021-02-19 01:22:25

问题


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.


回答1:


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




回答2:


Try installing Apache first.

sudo apt-get install apache2


来源:https://stackoverflow.com/questions/50022485/a2enmod-command-not-found-in-apache-server-using-cpanel-in-linux-vps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!